C Multiple Choice Questions
By Team Alpha | Computer | Mar 29, 2018

- The output of this C code?int main()
{
enum {KIWI = 12, GUAVA, PINEAPPLE = 11, APPLE};
printf("APPLE = %d
", APPLE);
}- APPLE = 12
- APPLE = 0
- APPLE = 11
- APPLE = 2
Ans. a. APPLE = 12
- The output of this C code?intmain()
{
int a = 010;
printf("%d", a);
}- 9
- 8
- 2
- 0
Ans. b. 8
- C programs are converted into machine language with the help of?
- A compiler
- An Editor
- An operating system
- None of the above
Ans. a. A compiler
- In a C Arithmetic Instruction which one is allowed?
- {}
- []
- ()
- None of above
Ans. c ()
- What is the use of perror( ) function?
- prints the error message specified by the compiler
- Work same as printf()
- prints the garbage value assigned by the compiler
- None of the above
Ans, a. prints the error message specified by the compiler
- What do you mean by C Tokens?
- The largest individual units of program
- The smallest individual units of c program
- The basic element recognized by the compiler
- b & c both
Ans. d. b & c both
- In switch statement, each case instance value must be?
- Variable
- Special symbol
- Constant
- None of these
Ans. c. Constant
- A binary tree with 27 nodes has how many null branches?
- 35
- 55
- 27
- None of above
Ans. d. None of above
- In which of the following is not a proper class storage?
- Static
- Extern
- Auto
- Dec
Ans. d. Dec
- In C Language which one is not a reserve keyword?
- Main
- Auto
- Case
- Register
Ans. a. Main
- What can Far pointer access?
- Single memory location
- All memory location
- No memory location
- First and Last Memory Address
Ans. c. All memory location
- In C an uninitialized pointer is called?
- Destructor
- Constructor
- Pointer
- Wild pointer
Ans. d. Wild pointer
- Name the following loop which executes at least once?
- If
- For
- Do-while
- While
Ans. c. Do- while
- Which symbol are used to terminates every line of code in C?
- )
- }
- .
- ;
Ans. d. ;
- How can accessed the variable from another file?
- Via the extern specifier
- Via the pointer specifier
- Via the auto specifier
- Via the global specifier
Ans. a. via the extern specifier
- CONTINUE statement can’t be used with?
- For
- Switch
- Do
- While
Ans. b. Switch
- What will be the output of this code: -?
int main ()
{
For (i=0; i<=10; i++)
Printf(“%d”, i);
}
- 10
- 9
- 0
- None of these
Ans. a. 10
- What will be the output of this code: -?
int main ()
{
For (i=10; i++; i<15;)
Printf(“%d”, i);
}
- 10
- 15
- 20
- None of these
Ans. d. None of these
- What is called when a name having a few letters, underscore, numbers & special characters?
- Tokens
- Reserved keywords
- Identifier
- Keywords
Ans. c. Identifier
- Which of the following is the integer constants?
- Octal integer constant
- Hexadecimal integer constant
- Decimal integer constant
- All of the above
Ans. d. All of the above
Share this Post
(इस पोस्ट को अपने दोस्तों के साथ शेयर करना ना भूले)Posts in Other Categories
Latest Posts
FSSAI Recruitment 2025: Assistant Manager & Othe ...
Apr 10, 2025
उत्तराखंड शादी अनुदान योजना ...
Sep 28, 2023