you have 10 mins of time to complete the test and a total of 20 questions, this test for c language
#1. Who invented ‘C’ language programming?
#2. Who invented ‘C’ language programming?
Wrong Answer: Dennis Ritchie
#3. programming originally developed by Dennis Ritchie between _____and_____ at______.
Wrong Answer: 1969, 1973, AT&T Bell Labs
#4. What is the present standard name of C language defined by ISO/IEC 9899:2011?
Wrong Answer: The current version of the standard (now known as “C11”) was approved in December 2011
#5. C programs are converted into the machine language with the help of:
#6. Which of the following is used for interacting between user and OS?
Wrong answer: none of the above
#7. In 1989, the American National Standards Institute published a standard for C called as "ANSI C".
Wrong Answer: A
#8. Which of the following language is predecessor to C Programming Language?
Wrong Answer: The new language was named “C” because its features were derived from “B”, which according to Ken Thompson was a stripped-down version of the BCPL programming language
#9. Which OS kernels were firstly implemented or coded in C language?
Wrong Answer:-In 1972 a great part of Unix was rewritten in C. By 1973, with the addition of struct types, the C
language had become powerful enough that most of the Unix kernel was now in C.
#10. Which languages are derived from C language?
Wrong Answer:-Many later languages have borrowed directly or indirectly from C, including D, Go, Rust, Java,
#11. C Language is a Structured programming language?
Wrong Answer:-C is aimed at general-purpose programming by making extensive use of subroutines, block structures, for and while loops. Programs are often composed of simple, hierarchical program flow structures. Hence C is popularly known as Structured Language
#12. C language is a Procedural Programming Language.
Wrong answer:-Procedures known as routines, subroutines, methods or functions. Procedural programming can also refer to a programming paradigm, derived from structured programming.
#13. C language is a ………………
Wrong answer:-Rather than dealing with registers, memory addresses and call stacks, high-level languages deal with variables, arrays, objects, complex arithmetic or Boolean expressions, subroutines and functions. High-level languages have language elements that translate directly into a machine’s native opcodes.
#14. Which of the following symbol is used to denote a pre-processor statement?
Wrong answer:-The preprocessor provides the ability for the inclusion of header files, macro expansions, conditional compilation, and line control. All preprocessor directives begin with #.
#15. What is the correct way to comment a line in C?
Wrong Answer:-Comments may appear either between the delimiters /* and */, or (since C99) following // until the end of the line, won’t be considered for compilation and execution.
#16. Which symbol is used as a statement terminator in C?
Wrong Anser:-In the C program, the semicolon is a statement terminator. That is, each individual statement must be
ended with a semicolon. It indicates the end of one logical entity.
#17. Which statement is correctly printing on console window?
Wrong Answer: int printf(const char *format, …);
#18. What are the valid prototypes to define main ()?
Wrong Answer:-An entry point is where control enters a program or piece of code. In C program this function is named as main where execution starts at the first statement and terminate at last statement of any C program.
#19. Which function is used to start program execution from first statement and terminate at last?
Wrong answer: B
#20. Which statement is used to define End of function?
Wrong answer:-his command terminates C program (main function) and returns 0. Control of the program returns to the calling function on reaching a ‘return’ statement.