C Programming Fundamentals Quiz

Test your knowledge of C programming language including history, syntax, pointers, structures, compilation, debugging, and related tools

17 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Who developed C languade

  1. Ken Thompson
  2. Dennis Ritchie
  3. Ken Thompson and Dennis Ritchie
  4. None
Question 2 Multiple Choice (Single Answer)

When was the C language developed

  1. 1969
  2. 1972
  3. 1984
  4. 1999
Question 3 Multiple Choice (Single Answer)

C was developed at

  1. Microsoft
  2. IBM
  3. Apple
  4. Bell Labs
Question 4 Multiple Choice (Single Answer)

Feature which is not in C

  1. Large number of Compound operators
  2. Function and data pointers supporting
  3. Small set of key words
  4. Automatic garbage collection
Question 5 Multiple Choice (Single Answer)

C was influenced by

  1. B, Algol 68
  2. Assembly, PL/I
  3. Fortran
  4. All the Above
Question 6 Multiple Choice (Single Answer)

Which symbol is used to declare a pointer variable

  1. *
  2. -
  3. +
  4. |
Question 7 Multiple Choice (Single Answer)

Which symbol is used to reference a pointer in C

  1. *
  2. ^
  3. &
  4. @
Question 8 Multiple Choice (Single Answer)

Which symbol is used to make single line & multiple line comments

  1. \
  2. * comments *\
  3. \ and * comments *\
  4. &&
Question 9 Multiple Choice (Single Answer)

Which symbol is used to access the members of a structure

  1. **
  2. &
  3. ^
  4. .
Question 10 Multiple Choice (Single Answer)

Which symbol is used as the End of Line in C

  1. .
  2. `
  3. ~
  4. ;
Question 11 Multiple Choice (Single Answer)

How will you get the assembly code from a C raw code?

  1. asmb <filename>
  2. gcc -S <filename> ; cat <filename.s>
  3. as <filename.s>
  4. None
Question 12 Multiple Choice (Single Answer)

How will you get all macro entity of a C file ?

  1. gcc -Wall <filename>
  2. macro <fileame>
  3. gcc -e <filename>
  4. gcc -E <filename>
Question 13 Multiple Choice (Multiple Answers)

How to debugg a C file ?

  1. gdb <executive file>
  2. ddd <executive file>
  3. xxgdb <executive file>
  4. none
Question 14 Multiple Choice (Single Answer)

What will the O/P of the bellow question ? ------------------- #include<stdio.h> int main(){ printf("the size of main is %d\n",sizeof(main())); //OS is Linux return 0; }

  1. 1
  2. 2
  3. 4
  4. 0
Question 15 Multiple Choice (Single Answer)

How will you read executable file ?

  1. None
  2. file <exefile>
  3. ./a.out
  4. strings <exefile>
Question 16 Multiple Choice (Single Answer)

What is the root level element in a hibernate mapping file?

  1. <session-factory>
  2. <hibernate>
  3. <hibernate-configuration>
  4. None
Question 17 Multiple Choice (Single Answer)

Hibernate.cache.use_query_cache setting true enable cache regions ?

  1. StandardQueryCache and UpdateTimestampsCache
  2. StandardQueryCache
  3. QueryCache
  4. QueryCache and TimestampsCache