CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » C » C Objective Questions for Experts

C Objective Questions for Experts : 46


Question: 1

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

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



Question: 2

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

Compiler Forum
Expert 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 Forum
Expert 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 Forum
Expert 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 Forum
Expert 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 Forum
Expert 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 Forum
Expert 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 Forum
Expert loops[Posted by: Admin | Chicago, USA]



Question: 9

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

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



Question: 10

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

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



Question: 11

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

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



Question: 12

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

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



Question: 13

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

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



Question: 14

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

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



Question: 15

(A) Yes
(B) No

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



Question: 16

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

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



Question: 17

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

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



Question: 18

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

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



Question: 19

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

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



Question: 20

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

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



Question: 21

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

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



Question: 22

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

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



Question: 23

(A) Yes
(B) No

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



Question: 24

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

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



Question: 25

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

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



Question: 26

(A) -asm
(B) -S
(C) -o(D) -c

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 27

(A) __asm__
(B) _asm_
(C) __asm(D) asm

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 28

(A) __asm__
(B) _asm_
(C) __asm(D) asm

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 29

(A) gcc -o cppbuzz.c
(B) gcc -c cppbuzz.c
(C) gcc -e cppbuzz.c(D) gcc cppbuzz.c

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 30

(A) gcc -g
(B) gcc -a
(C) gcc -e(D) gcc -b

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 31

(A) gcc -g0
(B) gcc -g1
(C) gcc -g(D) gcc -g3

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 32

(A) gcc -W
(B) gcc -w
(C) gcc -Wall(D) gcc - wall

Compiler Forum
Expert gcc[Posted by: Admin | Chicago, USA]



Question: 33

(A) D-Q
(B) D-A
(C) 67-112(D) 68-113

Compiler Forum
Expert arrays[Posted by: Admin | Chicago, USA]



Question: 34

(A) Kernig
(B) ernigh
(C) Kernigh(D) Ritch

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



Question: 35

(A) findsize a.out
(B) size a.out
(C) calc a.out(D) ls -ltr a.out

Compiler Forum
Expert compilation[Posted by: Admin | Chicago, USA]



Question: 36

(A) 412412
(B) 41649
(C) 49416(D) 41649

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



Question: 37

(A) There is no difference
(B) Union takes less memory
(C) Union is faster(D) Structure is faster

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



Question: 38

(A) Yes
(B) No

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



Question: 39

(A) write()
(B) fwrite()
(C) swrite()(D) None of the above

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



Question: 40

(A) Order members from largest to smallest
(B) Order memebers from smallest to largest
(C) By using only char data type(D) By using referencial pointer

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



Question: 41

(A) Assembly Code
(B) .i file produced by Preprocessor
(C) Object Code(D) Source Code

Compiler Forum
Expert assembler[Posted by: Admin | Chicago, USA]



Question: 42

(A) Executable Instructions
(B) Un-initialized Global Variables
(C) Un-initialized Static Variables(D) Initialized Static & Global Variables

Compiler Forum
Expert compilation[Posted by: Admin | Chicago, USA]



Question: 43

(A) Compilation Error
(B) 8
(C) 7(D) 0

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



Question: 44

(A) float
(B) short int
(C) nothing(D) compilation error

Compiler Forum
Expert operators[Posted by: Varun Kumar Reddy | Bangalore]



Question: 45

(A) str1: Hello. How are you?, str2: Hello. How are you?
(B) str1: Hello. How are you?, str2: Hello. How are you?nullnull
(C) str1: Hello. How are you?, str2: Hello. How are you?garbagevalue(D) str1: Hello. How are you?, str2: garbagevalue

Compiler Forum
Expert arrays[Posted by: Admin | Chicago, USA]



Question: 46

(A) 2 2 3 1
(B) 2 2 3 0
(C) 3 2 3 0(D) 1 1 2 1

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


Compile C++ code here Upload your Questions

Browse C++ Categories

Loops Conditional Functions Operators Structure Enum Storage Classes Union FileHandling Data Types Inheritance Pointers Classes & Objects Vtable Type Casting New & Delete Namespaces Reference Variables Static Cast Dynamic Cast Reinterpret Cast Const Cast Virtual Functions Abstract Class STL Singleton Class C++ 11 C++ 14 C++ 17 C++ 20 gcc/g++ others

Switch to C Questions