Javatpoint Logo
Javatpoint Logo

C Fundamental Test 3


11) Single line comment in C language begins with _______

  1. :
  2. //
  3. */
  4. /*

The correct option is (b).

Explanation:

For giving the comment in single line two immediate forward slashes are used. For a multi line comment it begins with /* and should be terminated with */.

12) What is the data type of "PI" for the below statement:

  1. Float data type
  2. Double datatype
  3. There is no data type associated with PI
  4. Syntax error, semi colon is missing with definition of PI

The correct option is (c).

Explanation:

Text associated with macro statement gets expanded at line of call. The expanded text is by default a constant with no data type associated with PI.

13) Which operator can be used for accessing the value stored at address of a pointer variable?

  1. #
  2. *
  3. &&
  4. @

The correct option is (b).

Explanation:

The pointer operator is,

& (address operator) = It gives address of the variable

*(Value operator) = It gives value stored at particular address

14) The types of linkages in C programming language are:

  1. External linkage and None linkage
  2. Internal linkage and None linkage
  3. Internal linkage, External linkage and None linkage
  4. Internal linkage and External linkage

The correct option is (c).

Explanation:

  • Internal linkage: A functions and static variables with file scope.
  • External linkage: A global, functions and non-static variables.
  • None linkage: A local variables.

15) Which of the following is true about C Programming?

  1. Platform Independent
  2. High level language
  3. Machine Independent
  4. Assembly language

The correct option is (c).

Explanation:

C-programming language is machine independent programming language. It provides the feature of portability of code means source code written on one machine can be run on any other machines.






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA