Programming C - Basic concept of C MCQ
Programming C -Concept of C language || Data types || Identifiers || Binary operator| | Related Important MCQs Questions || For GATE, UGC NET, PSU EXAMS, ISRO, BARC, DSSSB TGT, CET PGT, DMRC METRO, UPTET TGT PGT, etc
Q1.Refer below
[ Technical Assistant NIT JSR 2022]
(A).4
(B).8
(C).9
(D).6720
Q2.Refer below
[ Technical Assistant NIT JSR 2022]
(A).A
(B).B
(C).C
(D).D
Q3.Refer below
[ Technical Assistant NIT JSR 2022]
(A).prints azbybybyby…
(B).prints azbyazbyazbyazby…
(C).results in a syntax error
(D).D. none of the above
Q4.Refer below
[ Technical Assistant NIT JSR 2022]
(A).a syntax error
(B).an execution error
(C).printing of over
(D).execution termination, without printing anything
Q5.Refer below
[ Technical Assistant NIT JSR 2022]
(A).1 10 2 9 3 8 4 7 5 6
(B).1 2 3 4 5 10 9 8 7 6
(C).1 1 1 1 1 9 9 9 9 9
(D).none of the above
Q6.Refer below
[ Technical Assistant NIT JSR 2022]
(A).2
(B).4
(C).6
(D).8
Q7.Refer below
[ Technical Assistant NIT JSR 2022]
(A).11Hello world
(B).10Hello world
(C).Hello world10
(D).Hello world11
Q8.Refer below
[ Technical Assistant NIT JSR 2022]
(A).5
(B).Garbage value
(C).Compilation Error
(D).0
Q9.Refer below
[ Technical Assistant NIT JSR 2022]
(A).12
(B).24
(C).20
(D).18
Q10.Refer Below
[ Technical Assistant NIT JSR 2022]
(A).2
(B).15
(C).Syntax Error
(D).3
Q11.In which statements do a continue statement cause the control to go directory to the test conditions and then continue the looping process?
[ SSC Scientific Assistant 2017]
(A).switch and while
(B).while and if-else
(C).do while and if-while
(D).while and do-while
Q12.If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
[ SSC Scientific Assistant 2017]
(A).long
(B).int
(C).double
(D).float
Q13.A.......................... in C language is also known as a record.
[ SSC Scientific Assistant 2017]
(A).array
(B).structure
(C).pointer
(D).enum
Q14.The value of n after executing the following code is
[ RRB JE IT 2015]
(A).15
(B).30
(C).13
(D).31
Q15.Which of the following 'C' statements will not create an infinite loop?
[ RRB JE IT 2015]
(A).for(1; 1; 1);
(B).for(1; 0; 1);
(C).for(0; 1; 1);
(D).for(0; 1; 0);
Q16.The value of the following 'C' expression is
2+18/4-1
[ RRB JE IT 2015]
(A).5.5
(B).5
(C).6
(D).4
Q17.What is the associativity of the comma operator in 'C'?
[ SJVN Limited Executive Trainee IT 2019]
(A).Bottom-to-top
(B).Right-to-left
(C).Top-to-bottom
(D).Left-to-right
Q18.The 'C' language was originally developed at :
[ SJVN Limited Executive Trainee IT 2019]
(A).IBM
(B).Intel
(C).Microsoft
(D).Bell Labs
Q19.Each 'C' program consists of one or more functions, one of which must be named as:
[ SJVN Limited Executive Trainee IT 2019]
(A).Primary
(B).Head
(C).Start
(D).Main
Q20.Which of the following is NOT a valid decimal integer constant in 'C'?
[ SJVN Limited Executive Trainee IT 2019]
(A).9999
(B).2019
(C).10001
(D).02019
Q21.What will be the value of the following arithmetic expression in 'C' ?
125%-4
[ SJVN Limited Executive Trainee IT 2019]
(A).+1
(B).-31.25
(C).+31.25
(D).-1
Q22.Find the output for the given code
[ UPPCL JE CS 2014]
(A).65
(B).Compile time error
(C).O
(D).Null pointer assignment
Q23.What is the output of the following C program segment?
[ DMRC Assistant programmer 2018]
(A).C
(B).B
(C).D
(D).E
Q24.In C, the floating-point variable has a precision of ................digits, whereas the precision of the double variable is................digits.
[ DMRC Assistant programmer 2018]
(A).6; 14
(B).8; 16
(C).4; 8
(D).6; 12
Q25.In C, string constants are enclosed in a pair of................
[ DMRC Assistant programmer 2018]
(A).double quote
(B).Parenthesis
(C).Single quote
(D).Bracket
Next.1
Next.2