TCS Papers: Sample Questions 292 - 293 of 502

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 292

» Languages » C & C Plus Plus



Which of the following concepts means adding new components to a program as it runs?


Choice (4) Response


Data hiding


Dynamic binding


Dynamic typing


Dynamic loading




  • Dynamic loading means adding new components to a program as it runs.

  • The dynamic loaded block (or library) is loaded into ram only on the execution time.

  • Here code is loaded only when it requires to be executed.

  • This type of loading takes place in object oriented programming languages like c++, java etc. achieving better memory space utilization is achieved.

Dynamic loading

Dynamic Loading

Given the image is define the dynamic loading example

Question number: 293

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What are compound statements?


  • Compound statements are made up of two or more program statements that are executed together.

  • This usually occurs when statements are executed with TRUE or FALSE evaluation.

  • Compound statements can also be executed within a loop.

  • Curly brackets {} are placed before and after compound statements.

  • A compound statement (also called a “block”) typically appears as the body of another statement, such as the “if statement”, “for statement”, “while statement” with several individual statements enclosed within a pair of braces {}.

  • Individual statements may themselves be expression statements, compound statements or control statements.

  • Unlike expression statements, a compound statement does not end with a semicolon.

  • A typical compound statement:

  1. {
  2.     pi=3.14;
  3.     area=pi*radius*radius;
  4. }
  • The particular compound statement consists of two assignment-type statements.