Interview Questions on C C++

Home  |  About Us  |  Contact
View Questions Contribute Training Misc..

You are here : Home » Objective Questions on C Programming

Objective Questions on C Programming - 156


Question: 1

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

[Posted by: Admin | Location: Chicago, USA]



Question: 2

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

[Posted by: Admin | Location: Chicago, USA]



Question: 3

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

[Posted by: Admin | Location: Chicago, USA]



Question: 4

(A) mathio.h
(B) math.h
(C) square.h
(D) stdio.h

[Posted by: Admin | Location: Chicago, USA]



Question: 5

(A) stdio.h
(B) conio.h
(C) stdlib.h
(D) stdlib.h

[Posted by: Admin | Location: Chicago, USA]



Question: 6

(A) math.h
(B) mathio.h
(C) string.h
(D) ctype.h

[Posted by: Admin | Location: Chicago, USA]



Question: 7

(A) 6,6
(B) 6,7
(C) 7,7
(D) 0,0

[Posted by: Admin | Location: Chicago, USA]



Question: 8

(A) Operator Overloading
(B) Function Overloading
(C) Function Overriding
(D) Function renaming

[Posted by: Admin | Location: Chicago, USA]



Question: 9

(A) sum is function which takes int arguments
(B) sum is a function which takes two int arguments and returns void
(C) it will produce compilation error
(D) Can't comment

[Posted by: Admin | Location: Chicago, USA]



Question: 10

(A) 1970
(B) 1972
(C) 1978
(D) 1979

[Posted by: Admin | Location: Chicago, USA]



Question: 11

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

[Posted by: Admin | Location: Chicago, USA]



Question: 12

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

[Posted by: Admin | Location: Chicago, USA]



Question: 13

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

[Posted by: Admin | Location: Chicago, USA]



Question: 14

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

[Posted by: Admin | Location: Chicago, USA]



Question: 15

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

[Posted by: Admin | Location: Chicago, USA]



Question: 16

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

[Posted by: Admin | Location: Chicago, USA]



Question: 17

(A) 5
(B) 10
(C) 25
(D) 50

[Posted by: Admin | Location: Chicago, USA]



Question: 18

(A) cppbuzz is printed 5 times
(B) Compilation Error
(C) cppbuzz is printed 1 times
(D) Nothing is printed

[Posted by: Admin | Location: Chicago, USA]



Question: 19

(A) 55
(B) 54
(C) 1
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 20

(A) 1 time
(B) Compilation Error
(C) Infinite times
(D) Runtime Error

[Posted by: Admin | Location: Chicago, USA]



Question: 21

(A) 1 time
(B) 0 time
(C) Compilation/Runtime Error
(D) Blank Screen in Infinite Loop

[Posted by: Admin | Location: Chicago, USA]



Question: 22

(A) CppBuzz.com is printed Infinite times
(B) CppBuzz.com is printed 1 time only
(C) Nothing is printed
(D) Program gives error

[Posted by: Admin | Location: Chicago, USA]



Question: 23

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

[Posted by: Admin | Location: Chicago, USA]



Question: 24

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

[Posted by: Admin | Location: Chicago, USA]



Question: 25

(A) 0 time
(B) 1 time
(C) Compilation Error
(D) Infinite times

[Posted by: Admin | Location: Chicago, USA]



Question: 26

(A) 1 time
(B) 0 time
(C) Infinite times
(D) Error: Lvalue Required

[Posted by: Admin | Location: Chicago, USA]



Question: 27

(A) 1 time
(B) Infinite Times(Untill Stack is overflow)
(C) 2 times
(D) Error

[Posted by: Admin | Location: Chicago, USA]



Question: 28

(A) 1 time
(B) Compilation Error
(C) 0 time
(D) Infinite Times(Untill Stack is Overflow)

[Posted by: Admin | Location: Chicago, USA]



Question: 29

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

[Posted by: Admin | Location: Chicago, USA]



Question: 30

(A) 4 times
(B) 5 times
(C) 0 time
(D) Infinite times

[Posted by: Admin | Location: Chicago, USA]



Question: 31

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

[Posted by: Admin | Location: Chicago, USA]



Question: 32

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

[Posted by: Admin | Location: Chicago, USA]



Question: 33

(A) 320
(B) 60
(C) 160
(D) 64

[Posted by: Admin | Location: Chicago, USA]



Question: 34

(A) The CppBuzz.com
(B) The C
(C) The CppBuzz
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 35

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

[Posted by: Admin | Location: Chicago, USA]



Question: 36

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

[Posted by: Admin | Location: Chicago, USA]



Question: 37

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

[Posted by: Admin | Location: Chicago, USA]



Question: 38

(A) #include
(B) return 0
(C) void main(int argc , char ** argv)
(D) None of above

[Posted by: Admin | Location: Chicago, USA]



Question: 39

(A) 3.33
(B) 3.0
(C) 3
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 40

(A) Compilation Error
(B) 0
(C) CppBuzz.com
(D) CppBuzz.com11

[Posted by: Admin | Location: Chicago, USA]



Question: 41

(A) Java
(B) Php
(C) C
(D) Visual Basix

[Posted by: Admin | Location: Chicago, USA]



Question: 42

(A) 1 1
(B) 2 2
(C) 4 4
(D) Undefined

[Posted by: Admin | Location: Chicago, USA]



Question: 43

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

[Posted by: Admin | Location: Chicago, USA]



Question: 44

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

[Posted by: Admin | Location: Chicago, USA]



Question: 45

(A) Declaration
(B) Definition

[Posted by: Admin | Location: Chicago, USA]



Question: 46

(A) 20
(B) 0
(C) Undefined reference to i
(D) Linking Error

[Posted by: Admin | Location: Chicago, USA]



Question: 47

(A) True
(B) False

[Posted by: Admin | Location: Chicago, USA]



Question: 48

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

[Posted by: Admin | Location: Chicago, USA]



Question: 49

(A) 1
(B) 2
(C) No Limit
(D) Depends on Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 50

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 51

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 52

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 53

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

[Posted by: Admin | Location: Chicago, USA]



Question: 54

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

[Posted by: Admin | Location: Chicago, USA]



Question: 55

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

[Posted by: Admin | Location: Chicago, USA]



Question: 56

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

[Posted by: Admin | Location: Chicago, USA]



Question: 57

(A) .4
(B) 23
(C) 23.45
(D) 23.

[Posted by: Admin | Location: Chicago, USA]



Question: 58

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

[Posted by: Admin | Location: Chicago, USA]



Question: 59

(A) a
(B) "a"
(C) nothing
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 60

(A) a
(B) %
(C) Compilation Error
(D) Nothing is printed

[Posted by: Admin | Location: Chicago, USA]



Question: 61

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

[Posted by: Admin | Location: Chicago, USA]



Question: 62

(A) binary form
(B) ASCII code form
(C) decimal form
(D) alphanumeric form

[Posted by: Admin | Location: Chicago, USA]



Question: 63

(A) 66D
(B) 41H
(C) 0100 0010
(D) 0110 0011

[Posted by: Admin | Location: Chicago, USA]



Question: 64

(A) 48D
(B) 32H
(C) 0011 1000
(D) 42H

[Posted by: Admin | Location: Chicago, USA]



Question: 65

(A) C11
(B) C99
(C) C95
(D) C89

[Posted by: Admin | Location: Chicago, USA]



Question: 66

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

[Posted by: Admin | Location: Chicago, USA]



Question: 67

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 68

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

[Posted by: Admin | Location: Chicago, USA]



Question: 69

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 70

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

[Posted by: Admin | Location: Chicago, USA]



Question: 71

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 72

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

[Posted by: Admin | Location: Chicago, USA]



Question: 73

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

[Posted by: Admin | Location: Chicago, USA]



Question: 74

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

[Posted by: Admin | Location: Chicago, USA]



Question: 75

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

[Posted by: Admin | Location: Chicago, USA]



Question: 76

(A) CppBuzz.com
(B) No output
(C) Compilation Error in preprocessing
(D) None of above

[Posted by: Admin | Location: Chicago, USA]



Question: 77

(A) Yes
(B) No
(C) Depends on Compiler

[Posted by: Admin | Location: Chicago, USA]



Question: 78

(A) CppBuzz.com
(B) Nothing
(C) Compilation Error
(D) Depends on Compilor

[Posted by: Admin | Location: Chicago, USA]



Question: 79

(A) -- #include<stdio.h>
(B) // #include<stdio.h>
(C) ''#include<stdio.h>
(D) ##include<stdio.h>

[Posted by: Admin | Location: Chicago, USA]



Question: 80

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 81

(A) It converts source code into assembly code
(B) It converts a assembly language program into machine language
(C) It convert code generated by Preprocessor to assembly code
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 82

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

[Posted by: Admin | Location: Chicago, USA]



Question: 83

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

[Posted by: Admin | Location: Chicago, USA]



Question: 84

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

[Posted by: Admin | Location: Chicago, USA]



Question: 85

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

[Posted by: Admin | Location: Chicago, USA]



Question: 86

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

[Posted by: Admin | Location: Chicago, USA]



Question: 87

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

[Posted by: Admin | Location: Chicago, USA]



Question: 88

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

[Posted by: Admin | Location: Chicago, USA]



Question: 89

(A) cppbuzz-Good place to learn C
(B) cppbuzz-Bad place to learn C
(C) Good place to learn C
(D) Bad place to learn C

[Posted by: Admin | Location: Chicago, USA]



Question: 90

(A) cppbuzz-Bad place to learn C
(B) cppbuzz-Good place to learn C
(C) Bad place to learn C
(D) Good place to learn C

[Posted by: Admin | Location: Chicago, USA]



Question: 91

(A) 0 - too young
(B) Compilation Error
(C) Nothing is printed
(D) How old are you? 16 - too young

[Posted by: Admin | Location: Chicago, USA]



Question: 92

(A) Easy
(B) Hard
(C) C programming is Easy
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 93

(A) Easy
(B) Hard
(C) EasyHard
(D) Error in program

[Posted by: Admin | Location: Chicago, USA]



Question: 94

(A) 10
(B) @10
(C) 10@
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 95

(A) 10
(B) 20
(C) 2a
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 96

(A) Compilation Error
(B) 10
(C) __10
(D) __a

[Posted by: Admin | Location: Chicago, USA]



Question: 97

(A) 20
(B) Ambiguity Error
(C) 10
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 98

(A) 10
(B) 20
(C) ::20
(D) ::10

[Posted by: Admin | Location: Chicago, USA]



Question: 99

(A) 1020
(B) 1010
(C) 2020
(D) Error: Redeclartion of a

[Posted by: Admin | Location: Chicago, USA]



Question: 100

(A) 10
(B) 10@
(C) @
(D) [Error] stray '@' in program

[Posted by: Admin | Location: Chicago, USA]



Question: 101

(A) .a
(B) .exe
(C) .out
(D) .obj

[Posted by: Admin | Location: Chicago, USA]



Question: 102

(A) .a
(B) a.obj
(C) a.exe
(D) a.out

[Posted by: Admin | Location: Chicago, USA]



Question: 103

(A) Ten
(B) Twenty
(C) Thirty
(D) Nothing

[Posted by: Admin | Location: Chicago, USA]



Question: 104

(A) Ten
(B) TenTwenty
(C) Twenty
(D) nothing

[Posted by: Admin | Location: Chicago, USA]



Question: 105

(A) Then
(B) TenTwenty
(C) TenTwentyThirtynothing
(D) nothing

[Posted by: Admin | Location: Chicago, USA]



Question: 106

(A) 10
(B) Compilation Error
(C) default
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 107

(A) Compilation Error
(B) a
(C) abc
(D) abcdefault

[Posted by: Admin | Location: Chicago, USA]



Question: 108

(A) a
(B) abc
(C) abcdefault
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 109

(A) a
(B) abc
(C) abcdefault
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 110

(A) Compilation Error
(B) A
(C) default
(D) Hi-C

[Posted by: Admin | Location: Chicago, USA]



Question: 111

(A) 11-11
(B) 11-12
(C) 12-11
(D) 12-12

[Posted by: Admin | Location: Chicago, USA]



Question: 112

(A) 12-12
(B) 11-11
(C) 2-12
(D) 4-11

[Posted by: Admin | Location: Chicago, USA]



Question: 113

(A) C-p
(B) C-P
(C) 0-0
(D) 67-112

[Posted by: Admin | Location: Chicago, USA]



Question: 114

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

[Posted by: Admin | Location: Chicago, USA]



Question: 115

(A) 67-112
(B) 112
(C) C
(D) 67

[Posted by: Admin | Location: Chicago, USA]



Question: 116

(A) C
(B) 68
(C) D
(D) 67

[Posted by: Admin | Location: Chicago, USA]



Question: 117

(A) Compilation Error
(B) CppBuzz.com
(C) Cp
(D) Cpp

[Posted by: Admin | Location: Chicago, USA]



Question: 118

(A) i love u 30
(B) i hate u 0
(C) i love u 10
(D) i hate u 30

[Posted by: Jagadeesh yadav | Location: India ,Ap ,kadapa]



Question: 119

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

[Posted by: Admin | Location: Chicago, USA]



Question: 120

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

[Posted by: Admin | Location: Chicago, USA]



Question: 121

(A) 20
(B) 10
(C) 100
(D) 200

[Posted by: Admin | Location: Chicago, USA]



Question: 122

(A) 225
(B) 65
(C) 85
(D) 155

[Posted by: Admin | Location: Chicago, USA]



Question: 123

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

[Posted by: Admin | Location: Chicago, USA]



Question: 124

(A) 10
(B) 11
(C) Compilation Error
(D) Not Defined

[Posted by: Admin | Location: Chicago, USA]



Question: 125

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

[Posted by: Admin | Location: Chicago, USA]



Question: 126

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

[Posted by: Admin | Location: Chicago, USA]



Question: 127

(A) 10 Garbage
(B) Garpage 10
(C) 10 0
(D) Compilation Error

[Posted by: Admin | Location: Chicago, USA]



Question: 128

(A) 65
(B) 65 65
(C) 65 a
(D) 65 A

[Posted by: Admin | Location: Chicago, USA]



Question: 129

(A) 27
(B) 79
(C) 83
(D) 0

[Posted by: Admin | Location: Chicago, USA]



Question: 130

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

[Posted by: Admin | Location: Chicago, USA]



Question: 131

(A) Hello 0 0 0 10 12 0
(B) Hello 5 5 1 10 12 3
(C) Hello 6 6 6 10 12 3
(D) Hello 6 6 2 2 10 12 8

[Posted by: Admin | Location: Chicago, USA]



Question: 132

(A) 1
(B) 1.0
(C) 1.0000
(D) 1.000000

[Posted by: Admin | Location: Chicago, USA]



Question: 133

(A) 50 69#51 59
(B) 50 60#52 58
(C) 50 60#51 59
(D) 50 59#51 60

[Posted by: Admin | Location: Chicago, USA]



Question: 134

(A) unary
(B) shift
(C) equality
(D) postfix

[Posted by: Admin | Location: Chicago, USA]



Question: 135

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

[Posted by: Admin | Location: Chicago, USA]



Question: 136

(A) 2100
(B) 217.227
(C) 21*10
(D) 22*11

[Posted by: Admin | Location: Chicago, USA]



Question: 137

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

[Posted by: Admin | Location: Chicago, USA]



Question: 138

(A) cppbuzz
(B) 7cppbuzz
(C) 8cppbuzz
(D) cppbuzz7

[Posted by: Admin | Location: Chicago, USA]



Question: 139

(A) cppbuzz7
(B) 7cppbuzz
(C) cppbuzz8
(D) 8cppbuzz

[Posted by: Admin | Location: Chicago, USA]



Question: 140

(A) cppbuzz
(B) cppbuzzcppbuzz
(C) cppbuzz7
(D) None of the above

[Posted by: Admin | Location: Chicago, USA]



Question: 141

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

[Posted by: Admin | Location: Chicago, USA]



Question: 142

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 143

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 144

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 145

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 146

(A) 1100
(B) 11
(C) 0100
(D) 10

[Posted by: Admin | Location: Chicago, USA]



Question: 147

(A) Yes
(B) No

[Posted by: Admin | Location: Chicago, USA]



Question: 148

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

[Posted by: Admin | Location: Chicago, USA]



Question: 149

(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

[Posted by: Admin | Location: Chicago, USA]



Question: 150

(A) Assembly Code
(B) Object Code
(C) Executable
(D) .i file

[Posted by: Admin | Location: Chicago, USA]



Question: 151

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

[Posted by: Admin | Location: Chicago, USA]



Question: 152

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

[Posted by: Admin | Location: Chicago, USA]



Question: 153

(A) 17
(B) 23
(C) 24
(D) 18

[Posted by: vikas | Location: india]



Question: 154

(A) 555
(B) 543
(C) 545
(D) 544

[Posted by: Admin | Location: Chicago, USA]



Question: 155

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

[Posted by: Admin | Location: Chicago, USA]



Question: 156

(A) Compilation Error
(B) Hello
(C) 5Hello
(D) Hello5

[Posted by: Bellemar | Location: Philippines]