C / C++  Quiz Q & A 

  Set 1

Interview  Q & A

<< >>
 C / C++ Quiz Q&A : Set 1

Q1)  What are the types of linkages?

A. Internal and External
B. External, Internal and None
C. External and None
D. Internal

Q2)  Which of the following is the correct syntax of including a user defined header files in C++?

A) #include
B) #include
C) #include “userdefined”
D) #include [userdefined]

Q3)  What is the output of the following code snippet?

#include<stdio.h>

main()
{
   int const a = 5;
        a++;
   printf(“%d”,a);
}

A) 5
B) 6
C) Runtime Error
D) Compile Error

 

<< >>