C Programming MCQ - About and History
11. Which of these is true about embedded C?
i)Embedded C is the extension of C programming language
ii)Embedded C is used to develop micro controller based applications.
iii)Embedded C includes features not available in normal C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing.
A. Only i & ii
B. Only i & iii
C. Only ii & ii
D. All of the above
View Answer
Ans : D
Explanation: An Extension of C programming language with header files is known as embedded C. It provides the supportive framework to the processor functioning in the embedded devices for programs development. There are so many examples of embedded C programming, we use on the daily basis one of them is smart phone, other examples are RAM, ROM for limited resources. Embedded C is the extension of C programming language.Embedded C is used to develop micro controller based applications.Embedded C includes features not available in normal C like fixed-point arithmetic, named address spaces, and basic I/O hardware addressing
12. C can be used on?
A. Only MS-Dos operating System
B. Only Linux operating system
C. Only Windows operating system
D. All of the above
View Answer
Ans : D
Explanation: C can be used on all of the above operting system.MS-Dos operating SystemLinux operating systemWindows operating system
13. Which is not a character Of C?
A. $
B. ^
C. -
D. |
View Answer
Ans : A
Explanation: $ is not a character Of C
14. Which is true in case of ANSI C?
A. Comments are represented in /* and */
B. Nested comments are not allowed
C. Comments are not allowed within a string constant
D. Nested comments are allowed
View Answer
Ans : B
Explanation: Nested comments are not allowed in case of ANSI C.
15. Identify the wrong Statement?
A. #define /* symbolic constant */ Max 100
B. int /*declaration*/ a,b;
C. char c1,c2;
D. #define MAX 25;
View Answer
Ans : D
Explanation: #define MAX 25; is wrong Statement.
16. Identify the correct statement?
A. The variable names VOLUME and volume are identical
B. The variable names sun and sun are identical
C. Variables are not declared before use
D. Variable may he absent in a declaration.
View Answer
Ans : D
Explanation: Variable may he absent in a declaration is the correct statement
17. An escape sequence commence with
A. \
B. /
C. ?
D. #
View Answer
Ans : A
Explanation: An escape sequence commence with .
18. Identify the wrong statement?
A. # define is a preprocessor facility.
B. # define aids in modifying a constant value throughout the program.
C. # define uses a statement terminator.
D. # define improves the readability of the program.
View Answer
Ans : C
Explanation: # define uses a statement terminator is the wrong statement.
19. Where does the execution of every C program starts?
A. Every C program starts in the main () function.
B. Every C program starts in the begin ( ) function.
C. Every C program starts in the initialize ( ) function.
D. Every C program starts in the start ( ) function.
View Answer
Ans : A
Explanation: The execution of every C program starts from "every C program starts in the main () function".
20. Identify the separator(s) in C?
A. white space character
B. Comments
C. Semicolon
D. Both A and B
View Answer
Ans : D
Explanation: white space character and comments the separator(s) in C.
Also Check :
Discussion