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

Home » C » C Objective Questions for Beginners

C Objective Questions for Beginners : 62


Question: 1

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

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


Question: 2

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

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


Question: 3

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

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 4

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

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


Question: 5

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

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


Question: 6

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

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


Question: 7

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

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


Question: 8

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

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


Question: 9

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

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


Question: 10

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

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


Question: 11

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

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


Question: 12

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

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


Question: 13

(A) Java
(B) PHP
(C) C
(D) Visual Basic

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 14

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

Compiler Forum
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]


Question: 15

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

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


Question: 16

(A) Declaration
(B) Definition

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


Question: 17

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

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


Question: 18

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

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


Question: 19

(A) Yes
(B) No

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


Question: 20

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

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 21

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

Compiler Forum
Level: Beginner Category: other
[Posted by: Admin | Chicago, USA]


Question: 22

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

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


Question: 23

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

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


Question: 24

(A) Yes
(B) No

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


Question: 25

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

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


Question: 26

(A) Yes
(B) No

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


Question: 27

(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

Compiler Forum
Level: Beginner Category: gcc
[Posted by: Admin | Chicago, USA]


Question: 28

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 29

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 30

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 31

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 32

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 33

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

Compiler Forum
Level: Beginner Category: variables
[Posted by: Admin | Chicago, USA]


Question: 34

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

Compiler Forum
Level: Beginner Category: compilation
[Posted by: Admin | Chicago, USA]


Question: 35

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

Compiler Forum
Level: Beginner Category: compilation
[Posted by: Admin | Chicago, USA]


Question: 36

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

Compiler Forum
Level: Beginner Category: switch
[Posted by: Admin | Chicago, USA]


Question: 37

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

Compiler Forum
Level: Beginner Category: switch
[Posted by: Admin | Chicago, USA]


Question: 38

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

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


Question: 39

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

Compiler Forum
Level: Beginner Category: conditional
[Posted by: Jagadeesh yadav | India ,Ap ,kadapa]


Question: 40

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

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


Question: 41

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

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


Question: 42

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

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


Question: 43

(A) Yes
(B) No

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


Question: 44

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

Compiler Forum
Level: Beginner Category: loops
[Posted by: vikas | india]


Question: 45

(A) 150
(B) 168
(C) 195
(D) 252

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


Question: 46

(A) 10
(B) 20
(C) 11
(D) 21

Compiler Forum
Level: Beginner Category: loops
[Posted by: anjali | Bangalore, India]


Question: 47

(A) Generates an error message
(B) Extra values are being ignored
(C) Size of Array is increased
(D) Size is neglected when values are given

Compiler Forum
Level: Beginner Category: arrays
[Posted by: Admin | Chicago, USA]


Question: 48

(A) character
(B) integer
(C) Unsigned character
(D) All of these

Compiler Forum
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]


Question: 49

(A) Allocated memory has undefined value
(B) It returns pointer to the allocated space
(C) Pointer is NULL if memory is not allcoated
(D) It doesn't lead to memory leak if memory is not de allocated

Compiler Forum
Level: Beginner Category: malloc_free
[Posted by: Admin | Chicago, USA]


Question: 50

(A) ptr is not a pointer
(B) ptr is a pointer to pointer
(C) Such statement no allowed in C
(D) None of these

Compiler Forum
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]


Question: 51

(A) 2
(B) 4
(C) 8
(D) 0

Compiler Forum
Level: Beginner Category: pointers
[Posted by: Admin | Chicago, USA]


Question: 52

(A) 3
(B) 15
(C) 16
(D) Compilation error

Compiler Forum
Level: Beginner Category: loops
[Posted by: Hemendra P | Ballabhgarh]


Question: 53

(A) True
(B) False

Compiler Forum
Level: Beginner Category: malloc_free
[Posted by: Admin | Chicago, USA]


Question: 54

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

Compiler Forum
Level: Beginner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 55

(A) Enum can contain enum but duplicate contestants are not allowed
(B) Enum can't contain enum
(C) Enum can contain enum but not accessible
(D) This code will produce compilation error

Compiler Forum
Level: Beginner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 56

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

Compiler Forum
Level: Beginner Category: enum
[Posted by: Admin | Chicago, USA]


Question: 57

(A) 3
(B) 4
(C) 5
(D) 6

Compiler Forum
Level: Beginner Category: union
[Posted by: Admin | Chicago, USA]


Question: 58

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

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


Question: 59

(A) 10 0
(B) 10 GarbageValue
(C) 10 10
(D) 0 0

Compiler Forum
Level: Beginner Category: union
[Posted by: Admin | Chicago, USA]


Question: 60

(A) 88 88
(B) 99 88
(C) 99 99
(D) 88 99

Compiler Forum
Level: Beginner Category: union
[Posted by: Admin | Chicago, USA]


Question: 61

(A) set the position to the beginning point
(B) gives current position in the file
(C) set the position to desire point
(D) None of these

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


Question: 62

(A) compilation error
(B) hello
(C) no output
(D) runtime error

Compiler Forum
Level: Beginner Category: loops
[Posted by: P.Iswarya | madurai]


Compile C code here |  Upload C Questions

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