C Programming Fundamentals Quiz
Test your knowledge of C programming language including history, syntax, pointers, structures, compilation, debugging, and related tools
Questions
Who developed C languade
- Ken Thompson
- Dennis Ritchie
- Ken Thompson and Dennis Ritchie
- None
When was the C language developed
- 1969
- 1972
- 1984
- 1999
C was developed at
- Microsoft
- IBM
- Apple
- Bell Labs
Feature which is not in C
- Large number of Compound operators
- Function and data pointers supporting
- Small set of key words
- Automatic garbage collection
C was influenced by
- B, Algol 68
- Assembly, PL/I
- Fortran
- All the Above
Which symbol is used to declare a pointer variable
- *
- -
- +
- |
Which symbol is used to reference a pointer in C
- *
- ^
- &
- @
Which symbol is used to make single line & multiple line comments
- \
- * comments *\
- \ and * comments *\
- &&
Which symbol is used to access the members of a structure
- **
- &
- ^
- .
Which symbol is used as the End of Line in C
- .
- `
- ~
- ;
How will you get the assembly code from a C raw code?
- asmb <filename>
- gcc -S <filename> ; cat <filename.s>
- as <filename.s>
- None
How will you get all macro entity of a C file ?
- gcc -Wall <filename>
- macro <fileame>
- gcc -e <filename>
- gcc -E <filename>
How to debugg a C file ?
- gdb <executive file>
- ddd <executive file>
- xxgdb <executive file>
- none
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
- 2
- 4
- 0
How will you read executable file ?
- None
- file <exefile>
- ./a.out
- strings <exefile>
What is the root level element in a hibernate mapping file?
- <session-factory>
- <hibernate>
- <hibernate-configuration>
- None
Hibernate.cache.use_query_cache setting true enable cache regions ?
- StandardQueryCache and UpdateTimestampsCache
- StandardQueryCache
- QueryCache
- QueryCache and TimestampsCache