Tag: programming languages

Questions Related to programming languages

  1. CompilationFails

  2. Will Throw RunTime Error But Code will get Compiled

  3. Throws Linker Error

  4. All the above statements are invalid


Correct Option: A
  1. Complies Successfully

  2. Error Due to Duplicate Variables.

  3. RunTime Error

  4. Executes Successfully


Correct Option: A

What will be the output of the following code? #include<stdio.h> int main() {     int num,a=5;     num=-a--;     printf("%d  %d",num,a); }

  1. 5,4

  2. -4,4

  3. -5,4

  4. -4,5

  5. Compilation Error


Correct Option: C
  1. stdlib.h

  2. iomanip.h

  3. console.h

  4. conio.h


Correct Option: A
  1. catname[15] = "Millie";

  2. catname = "Millie";

  3. catname[ ] = "Millie";

  4. None are Valid


Correct Option: D
  1. identifiers

  2. constant variables

  3. floating point variables

  4. mnemonic variables


Correct Option: D