Home C C++ Java Python Perl PHP SQL JavaScript Linux Selenium QT Online Test

Home » C » C Objective Questions for Experts

C Objective Questions for Experts : 25


Question: 1

(A) Yes
(B) No
(C) Depends on Compiler
(D) Yes but run time error

Compiler
Level: Expert Category: structure
[Posted by: Admin | Chicago, USA]


Question: 2

(A) extern
(B) auto
(C) register
(D) static

Compiler
Level: Expert Category: storgeclass
[Posted by: Admin | Chicago, USA]


Question: 3

(A) Compilation Error
(B) Runtime Error
(C) Hello is printed one time
(D) Hello is printed infinite times

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 4

(A) Compilation Error
(B) Runtime Error
(C) Nothing is printed
(D) Hello is printed infinite times

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 5

(A) Hello is printed 5 times
(B) Compilation Error
(C) Runtime Error
(D) Hello is printed 4 times

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 6

(A) Hello is printed 5 times
(B) Compilation Error
(C) Hello is printed 2 times
(D) Hello is printed 3 times

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 7

(A) 0--01--12--23--34--
(B) 00--10--20--30--40--
(C) Compilation Error
(D) 00--01--02--03--04--

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 8

(A) 0 times
(B) Infinite times (Untill Stack is overflow)
(C) 1 time
(D) Nothing is printed

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 9

(A) 5 times
(B) 4 times
(C) 2 times
(D) 1 time

Compiler
Level: Expert Category: loops
[Posted by: Admin | Chicago, USA]


Question: 10

(A) 10
(B) 20
(C) 30
(D) Compilation Error

Compiler
Level: Expert Category: operators
[Posted by: Admin | Chicago, USA]


Question: 11

(A) 0
(B) 15
(C) Undefined i
(D) Any other Compiler Error

Compiler
Level: EXpert Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 12

(A) Compilation Error
(B) Runtime Error
(C) __0
(D) __30

Compiler
Level: Expert Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 13

(A) 10
(B) 0
(C) Compilation Error
(D) Undefined

Compiler
Level: Expert Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 14

(A) Operator
(B) Function
(C) Macro
(D) None of these

Compiler
Level: Expert Category: operators
[Posted by: Admin | Chicago, USA]


Question: 15

(A) Yes
(B) No

Compiler
Level: Expert Category: filehandling
[Posted by: Admin | Chicago, USA]


Question: 16

(A) 1
(B) 2
(C) 0
(D) Compilation Error

Compiler
Level: Expert Category: conditional
[Posted by: Admin | Chicago, USA]


Question: 17

(A) 1234
(B) 12340
(C) 123
(D) 0

Compiler
Level: Expert Category: function
[Posted by: Admin | Chicago, USA]


Question: 18

(A) 0
(B) 23.5
(C) 23.450000
(D) 23.4

Compiler
Level: Expert Category: function
[Posted by: Admin | Chicago, USA]


Question: 19

(A) CppBuzz10
(B) CppBuzz-10
(C) CppBuzz 10
(D) Compilation Error

Compiler
Level: Expert Category: function
[Posted by: Admin | Chicago, USA]


Question: 20

(A) a
(B) %a
(C) %%
(D) %

Compiler
Level: Expert Category: function
[Posted by: Admin | Chicago, USA]


Question: 21

(A) Linker
(B) Compiler
(C) Assembler
(D) Preprocessor

Compiler
Level: Expert Category: preprocessor
[Posted by: Admin | Chicago, USA]


Question: 22

(A) .h
(B) .exe
(C) .i
(D) .asm

Compiler
Level: Expert Category: preprocessor
[Posted by: Admin | Chicago, USA]


Question: 23

(A) Yes
(B) No

Compiler
Level: Expert Category: preprocessor
[Posted by: Admin | Chicago, USA]


Question: 24

(A) #include<stdio.h>
(B) #include"stdio.h"
(C) Both A & B

Compiler
Level: Expert Category: datatype
[Posted by: Admin | Chicago, USA]


Question: 25

(A) #pragma
(B) #error
(C) #ifndef
(D) #elseif

Compiler
Level: Expert Category: macros
[Posted by: Admin | Chicago, USA]


C Programming Test
Compile C code here | 

Browse C Categories

Preprocessor Assembler Compilation Datatypes Arrays Variables Pointers Functions Loops Switch Structures Union Enum Goto & Labels Storage Classes Malloc & free Macros Conditional Operators File Handling gcc Others

Switch to C++ Questions