100 MCQ on C Programming

Home » C » C MCQs

Page 1 (1 - 20)


Question: 1

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

Compiler
Level: Practitioner | Category: loops

Question: 2

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

Compiler
Level: Practitioner | Category: loops

Question: 3

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

Compiler
Level: Practitioner | Category: loops

Question: 4

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

Compiler
Level: Practitioner | Category: loops

Question: 5

(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

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

Question: 7

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

Compiler
Level: Expert | Category: loops

Question: 8

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

Compiler
Level: Expert | Category: loops

Question: 9

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

Compiler
Level: Expert | Category: loops

Question: 10

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

Compiler
Level: Beginner | Category: loops

Question: 11

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

Compiler
Level: Beginner | Category: other

Question: 12

(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

Compiler
Level: Practitioner | Category: function

Question: 13

(A) Yes
(B) No

Compiler
Level: Practitioner | Category: function

Question: 14

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

Compiler
Level: Practitioner | Category: function

Question: 15

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

Compiler
Level: Practitioner | Category: function

Question: 16

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

Compiler
Level: Beginner | Category: function

Question: 17

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

Compiler
Level: Practitioner | Category: function

Question: 18

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

Compiler
Level: Beginner | Category: operators

Question: 19

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

Compiler
Level: Expert | Category: storgeclass

Question: 20

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

Compiler
Level: Expert | Category: structure

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
About Us | Contact Us | Privacy Policy | Career  | Online Training
Youtube   LinkedIn   Facebook   Twitter   Instagram  
Copyright©CppBuzz.com
Like many websites, we use cookies to ensure best browsing experience on our website. While using this website, you acknowledge to have read and accepted our cookie and privacy policy.