Professional Documents
Culture Documents
C Lang 02 - 18255237 - 2023 - 08 - 25 - 16 - 17
C Lang 02 - 18255237 - 2023 - 08 - 25 - 16 - 17
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Page 1 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Page 2 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
} The output of the above program will be: Q 27. Which of the following statements about
A.0 B.10 High Level language is correct? / उच्च-स्तरीय भाषा
C.5 D. None of the above के सम्बन्ि में डनम्नडलडित में से कौन-सा कथन सही है?
Q 22. #define preprocessor command can be for A.High Level language is machine independent
defining: /# define प्रीप्रोसेसर कमांि का उपयोग ककया B.High Level language is machine dependent
जा सकता है। C.High-Level language is difficult than Assembly
A.macros B.symbolic constants D.High-Level language programs require
C.for loop D.both (1) and (3) Assembler.
Q 23. Enumeration variables can be used in: Q 28. In which header file is the NULL macro de-
/enumerationिेटरएबलका उपयोग इस प्रकार ककया जा fined?/ ककस हेिर फाइल में NULL मैिो को पटरभाडषत
सकता है: ककया गया है?
A.preprocessor commands A.stddef.h B.stdio.h
B.search statement like a integer variable C.stdio.h and stddef.h D.stdlib.h
C.break statement
Q 29. What is (Void*) 0? / (Void*) 0 क्या है?
D.All of the above
A.Represented of void pointer void
Q 24. Which of the following is a pointer variable B.Represented of NULL pointer NULL
in C? /डनम्नडलडित में से कौन Cमें पॉइं टर िेटरएबल है? C.Error
A.Char P; B.int P; D.None of the above
C.int * P; D.int& P; Q 30. Which of the following operators takes only
Q 25. What will happen if in a C program you integer operands?/डनम्नडलडित में से कौन सा ऑपरे टर
assign a value to an array element whose के िल इडन्टजर ऑपरें ि लेता है?
subscript ex-ceeds the size of array?/क्या होगा यकद A.* B.+
एक सी प्रोग्राम में आप एक ऐरे एडलमेंट के डलए मान C./ D.%
डनर्दिष्ट करते हैं डजसका सबडस्िप्ट ऐरे के आकार को Q 31. The value of an automatic variable that is
exceeds करता है? de- cleared but not initialized will be: /एक
A.The compiler would report an error ऑटोमैटटक िेटरएबल का मान जो िी-डक्लयरि है लेककन
B.The element will be set to 0.
इडनडशयलाइज़ नहीं होगा:
C.The program may crash if some important data
A.-1 B.0
gets over- written
C.Unpredictable D.None of the above
D.The array size would appropriately grow
Q 32. In the programming language C: /प्रोग्राममंग
Q 26. In C, if you pass an array as an argument to
भाषा 'सी' में:
afunction, what actually gets passed? / C में, यकद
A.blanks can be given within a variable name
आप ककसी फं क्शन के तकि के रूप में ऐरे पास करते हैं, तो
B.variable names are case-sensitive
िास्ति में क्या पास हो जाता है? C.there are no reserved words, which are not
A.First element of the array allowed as variable names
B.Value of elements in array D.None of the above
C.Base address of the array
D.Address of the last element of array
Page 3 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 33. Length of the string "correct" is: /"Correct" Q 38. Consider the following program
मस्रंग की लम्बाई है: fragment:/डनम्नडलडित प्रोग्राम िण्ि (fragment ) पर
A.8 B.7 डिचार करें :
C.6 Main()
D.Implementation dependent { int a, b, c; b= 2; a= 2* (b++); c = 2* (++b); }
Q 34. A diamond-shaped box in a flow chart Which one of the given answer is correct? / डनम्न में
refers to: /फ्लो चाटि में िायमंि के आकार का बॉक्स से कौन एक सही है?
संदर्भित करता है: A.a=3, c=8 B.a=4, c=6
A.printing of a file C.b=3, c=6 D.a=4, c=8
B.data input from a device Q 39. It is necessary to declare the type of a
C.an if-then-else decision function in the calling program if: /यकद कॉमलंग
D.an assignment statement (calling) प्रोग्राम में function के प्रकार की घोषणा
Q 35. The include directive in C is used to: / C में करनाआिश्यकहोताहै
include िायरे डक्टि का उपयोग इसके डलए ककया जाता A.the function returns a non-integer value
है: B.the function returns an integer
A.include header files in a program C.the function is not defined in the same file
B.specify a list of files from where data will be D.None of the above
read at the time of execution Q 40. What will be the value of the sum after the
C.link other object modules to the current following program is executed?/डनम्नडलडित प्रोग्राम
program at the time of compilation के execute होने के बाद sum का मूल्य क्या होगा?
D.None of the above { int sum, index, sum = 1; index = 9;
Q 36. Which one of the following statements is Do { index = index-1; sum=2*sum; }
true after execution of the program/प्रोग्राम के While (index>9); }
एक्सेक्यूशन के बाद डनम्नडलडित में से कौन सा कथन सत्य A.2 B.1
C.9 D.0.5
है
int a[10], I, *p; Q 41. Given the following program fragment,
a[0] = 1; a[1] = 2; p = a; which one of the alternatives is correct?
(*p)++; /डनम्नडलडित प्रोग्राम िंि को देिते हुए, डिकल्पों में से
A.a[1] = 3 B.a[0] = 3 कौन सा सही है?
C.a[1] = 2 D.all {char status; int balance; balance= 1000; status =
Q 37. Which one of the following violates the (balance>= 1000)? 'C': '0' ; }
principles of structured programming? / A.status = 'C' B.status = '0'
डनम्नडलडित में से कौन सा स्रक्चिि प्रोग्राममंग के डसद्ांतों C.status = 0; D.status = NIL
का उल्लंघन करता है? Q 42. What is the final value of digit? / अंक का
A.The use of "go to" statements in a program अंडतम मान क्या है?
B.The use of "do while" statements main()
C.The use of global variables { int digit;
D.The use of recursive procedures for ( digit = 0 ; digit < = 9; ++digit)
Page 4 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Page 5 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 52. if (i>1) c = 2; else c = 3; switch (3) Q 57. In C++ a function contained within a class is
{ case 2: printf("CAUTION"); break; called: / C++ में एक क्लास के भीतर डनडहत एक फं क्शन
case 3: printf("GOOD BYE"); break; कहा जाता है?
default: printf("ERROR"); } A.A class functions B.Member function
What is the output if i = 3? / यकद i=3 हो तो आउटपुट C.An operator D.A method
क्या होगा?
Q 58. If switch feature is used, then: / यकद डस्िच
A.ERROR B.CAUTION
सुडििा का प्रयोग ककया जाता है, तब
C.GOOD BYE D.default
A.default case, if used, should be the last case
Q 53. How many times will the following loop be B.default case must be present
executed? / कदया गया लूप ककतनी बार डनष्पाकदत C.'default' case, if use, can be placed anywhere
होगा? D.none of the above
{ x=5; if ( x = 1 ) { : x++; } Q 59. Which of the following might be output as
A.Never B.Once
result of using a CASE tool? / CASE टू ल का उपयोग
C.Five times D.Infinitely many times
करने के पटरणामस्िरूप डनम्न में से कौन सा आउटपुट हो
Q 54. Which of the following statement is not सकता है?
true in context of strings in C language?/ C लैग्िेज A.Flowcharts and data flow diagrams
में strings के सन्दभि में डनम्न में से कौन-सा कथन सत्य B.Programmable Code
नहीं है? C.Prototypes and Cost / benefit analysis
A.Last character of character array is always '/o' D.All of the above
B.It is array of characters Q 60. Choose the correct answers :
C.C inserts the null character automatically A.Nested for loop may use the same index
D.Any string in C can be read by the B.for loops can be nested
functiongetchar() C.Both of the above
D.None of the above
Q 55. What is the value of u1and u2?/u1and u2का
मान क्या है? Q 61. Which of the following comments about for
int u1, u2; int v=3; int *pv; u1 = 2*(v+5); loop are correct?/ लूप के बारे में डनम्नडलडित में से
pv= &v; u2= 2*(*pv+5); कौन-सी टटप्पडणयााँ सही है?
A.u1=16, u2=3 B.u1=16, u2=16 A.Index value can be changed from within the
C.u1=8, u2=16 D.u1=8, u2=3 loop
Q 56. Which of the following statement is false B.Index value is retained outside the loop
C.goto can be used to jump, out of the loop
context of constructors in C++? / डनम्नडलडित में से
D.All of the above
कौन सा कथन C++ में कं स्रक्टसि का गलत संदभि है
A.Its name is the same as the class name Q 62. Which of the following concepts can be
B.A constructor is a special member function usedto identify loops? / लूप की पहचान करने के डलए
whosetask is to initialize the objects of its class डनम्नडलडित में से कौन-सी
C.The constructor is invoked whenever an object अििारणाओंउपयोगककयाजासकताहै?
ofits as associated class is created A.Reducible graphs B.Dominators
D.It is also used to destroy the objects C.Depth first ordering D.All of the above
Page 6 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 63. In a for loop if the condition is missing, then B.The finalise () method will eventually be called
infinite looping can be avoided by a: / लूप के डलए on every object finalise ()
यकद कं िीशन गायब है, तो इनकफडनट लूमपंग से बचा जा C.The finalize() method will never be called more
than once on an object
सकता है:
D.The garbage collector will use a mark and
A.break statement B.goto statement
C.return statement D.all of the above sweep algorithm.
Q 64. Pick the correct answers: / सही उत्तर का Q 69. In C, strings are stored in a/an: / C में, मस्रंग्स
चुनाि करें : को a/an में संग्रडहत ककया जाता है:
A.Array definition precedes array declaration A.linked list of characters
B.During array declaration, no storage is set aside B.linked list of unsigned characters
C.Array declaration precedes array definition C.array of characters
D.Both A and B only are correct D.array of integers
Q 65. Initialization cannot be a part of the Q 70. Which of the following are unary operators
definition if the storage class of the array is: / in C? / डनम्नडलडित में से कौन C में यूनरी ऑपरे टर हैं?
initialization िेकफडनशन का डहस्सा नहीं हो सकता है 1. 2. Size of
3. ~ 4. &&
यकद ऐरे का स्टोरे ज क्लास है:
A.1,3 B.1,2
A.external B.static
C.2,4 D.1,2,3
C.automatic D. None of the above
Q 71. Which operators will always evaluate all the
Q 66. In C, it is best to implement chained hash
operands? / कौन से ऑपरे टर हमेशा सभी ऑपरें ि का
tableas an array of: / सी में, chained हैश टेबल को
मूल्यांकन करें ग?े
एक ऐरे के रूप में लागू करना सबसे अच्छा है:
A.+ B.&&
A.string B.structures
C.|| D.? :
C.pointers D.None of these
Q 72. In which order do the following gets
Q 67. Dynamicstorage allocations cannot be used
evaluated:/ डनम्नडलडित िम में मूल्यांकन ककया जाता है
in C without: / िायनेडमक स्टोरे ज आिंटन का उपयोग C
1. Relational 2. Arithmetic
में इसके डबना नहीं ककया जा सकता है:
3. Logical 4. Assignment
A.unions B.Files
A.1,2,3,4 B.2,1,3,4
C.pointers D.enumerated data types
C.4,3,2,1 D.3,1,2,4
Q 68. Which statements describe guaranteed
Q 73. Find out the error in the following program:
behavior of the garbage collection and finalization
/ डनम्नडलडित प्रोग्राम में त्रुटट का पता लगाए
mechanisms? / कौन से कथन garbage कलेक्शन और
main()
अंडतम रूप देने के तंत्र के गारं टीकृ त व्यिहार का िणिन
{ int mark; char grade;
करते हैं? switch (mark) { case 5: grade = 'A'; break; case 4;
Select all the valid answers /सभी िैि उत्तरों का grade = 'B'; break; case 4; grade = 'B’; break;
चयन का चयन करो default; grade = 'C’; break; } / *switch* / }
A.Objects are deleted when they can do longer be A.switch statement cannot have more than three
accessed through any reference labels
Page 7 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Page 8 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
C.Struct has default public, class has default C.LOC(Array[5]) = Base (array[4]) + (5-Upper
private bound),where w is the number of words per
D.All of the above memory cell for the array
Q 85. How many times "INDIA" will get printed? / D.None of the above
"INDIA" को ककतनी बार मप्रंट ककया जाएगा? Q 89. Using goto inside for loop is equivalent to
#include<stdio.h> using: / लूप के अंदर goto का उपयोग करना उपयोग
int main() करने के बराबर है:
{ int x; A.break B.continue
for (x = -1;x <= 10; x++) { if(x < 5) continue; else C.return D.none of the above
break;
Q 90. break statement can be simulated by
printf("INDIA")}
using:/ ब्रेक स्टेटमेंट का उपयोग करके अनुकरण ककया जा
Return 0: }
सकता है-
A.11 times B.Infinite times
A.return B.goto
C.0 times D.10 times
C.exit
Q 86. An error in the program logic can be D.any to the above features
detected: / प्रोग्राम लॉडजक में गलती को पता लगाया
Q 91. An algorithm is best described as: / एक
जा सकता है-
एल्गोटरदम को सबसे अच्छा िर्णित ककया गया है:
A.by the compiler
A.a step-by-step procedure for solving a problem
B.by the operating system
B.a branch of mathematics
C.during execution of the program
C.a computer language
D.None of the above
D.None of these
Q 87. Which one of the following is not a basic
Q 92. Which type of errors is flagged by
data type in C? / डनम्न में से कौन C में एक बेडसक िेटा
compliers? / Compilers द्वारा ककस प्रकार की त्रुटटयों
टाइप नहीं है-
को डचडननत ककया जाता है?
A.Complex B.Integer
A.Logical errors B.Run-time errors
C.Character D.None of these
C.Syntax errors D.None of the above
Q 88. The memory address of fifth element of an
Q 93. The following program fragment /
array can be calculated by the formula: / ऐरे के
डनम्नडलडित प्रोग्राम िंि
पांचिें एडलमेंट का मेमोरी एड्रेस सूत्र द्वारा गणना की जा
int a = 4, b = 6; printf("%d", a = = b);
सकती है
A.prints 0
A.LOC(Array[5]) = Base (Array[5]+ (5-lower
B.outputs an error message
bound),where w is the number of words per
C.print 1
memory cell forthe array.
D.None of the above
B.LOC (Array[5] = Base (Array) + w(5-lower
bound), where w is the number of words per Q 94. Bug means: / बग का अथि है:
memory cell for the array. A.A difficult syntax error in a program
B.A logical error in a program
Page 9 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Page 10 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 119. Pow(x,y) is used to / pow(x,y) का प्रयोग Q 126. The sqrt() function is available in: / sqrt()
ककया जाता है फं क्शन उपलब्ि है:
A.power of xy A.string.h B.conio.h
B.power of yx C.math.h D.graphic.h
C.logarithm of x on the base y Q 127. What is the value of r after this code is
D.such function does not exist executed? / इस कोि के डनष्पाकदत होने के बाद r का
Q 120. Which of the following is not a header file मान क्या है?
of C?/ डनम्न में से कौनसी C की हेिर फाइल नहीं है? r=2; k=8; if (r>3 || k>6 && r<5 || k>10)
A.String.h B.Ctype.h r=9; else r=6;
C.Stdlib.h D.type.h A.2 B.9
C.6 D.8
Q 121. Which one of the following is valid in C
language? / डनम्नडलडित में से कौन C भाषा में मान्य है? Q 128. Which of the following cannot be used as
A.float n, a[n]; B.printf(“%d”, ++4) identifiers? / डनम्नडलडित में से कौन सा identifiers के
C.int *p = &a, a=3 D.for(; ;); रूप में उपयोग नहीं ककया जा सकता है?
A.Digits B.Spaces
Q 122. By default the return type of any user
C.Underscores D.Letters
defined function in ‘C’ is : / डिफॉल्ट रूप से 'सी' में
ककसी यूजर डिफाइं िफं क्शन का टरटनि प्रकार है:
Page 12 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 129. The result of a Relational operation is Q 134. Which of the following is a Lex operator?
always. / टरलेशनल ऑपरे शन का पटरणाम हमेशा होता / डनम्न में से कौन सा लेक्स ऑपरे टर है?
है। A.|OR B. *
A.is less than or is more than C.+ D. All of these
B.either true or false Q 135. The symbol <<
C.is equal or less or more A.is called output operator
D.All of the above B.is called insertion operation
Q 130. How many times the printf statement C.is called extraction operator
within the while loop will be executed? / ककतनी D.both a and b
बार लूप के भीतर printf स्टेटमेंट को डनष्पाकदत ककया Q 136. Which of the following are valid character
जाएगा? constants? / डनम्नडलडित में से कौन से िैि character
x=1; while(x=0) constants हैं?
printf("Hello"); A.'11' B.'1n'
A.0 B.1 C.'10' D.All of the above
C.infinite D.2
Q 137. Finalizer()?
Q 131. What will be the output of the following A. finalizer method is represented as finalize()
code? / डनम्नडलडित कोि का आउटपुट क्या होगा? B. Finalizer () are called just before the object is
main() garbage collected, and its memory is reclaimed
{ int a, b; a=3%4; switch (a/1) C. Finalize() can be overridden
{ default : printf ("I"); case3 : printf("T"); case2: D. All of the above
printf("w"); case1: printf("o"); }} Q 138. What is the missing statement in the
A.Two B. ITWO following function which copies string x into string
C. Syntax error because break is missing
y? / डनम्नडलडित फं क्शन में डममसंग स्टेटमेंट क्या है जो
D. Syntax error because default is misplaced
मस्रंग x को मस्रंग y में कॉपी करता है?
Q 132. In C programming language, which of the Void strcpy(char * x, char * y )
following operators has the highest precedence? / { while (*y = '\0')...........\* missing statement */*x
C प्रोग्राममंग लैंग्िेज में, डनम्नडलडित में से ककस ऑपरे टर = '\0'; }
की सिोच्च प्राथडमकता है? A.*x++ = *y++ B. x = y
A.<= B.Unary + C. (*x)++ = (*y)++ D. None of the above
C.>= D.> Q 139. What will be the output of the following
Q 133. Which of the following operation cannot code segment, if the function is called as larger
be performing on pointers in C? / डनम्नडलडित में से (10, 20)? / डनम्नडलडित कोि सेगमेंट का आउटपुट क्या
कौन सा ऑपरे शन C में पॉइं टसि पर नहीं ककया जा सकता होगा, यकद फं क्शन को larger(10, 20) कहा जाता है?
है? int larger (int x, int y)
A.Substraction of a number from a pointer { int max = x; if (max < y)
B.Addition of two pointers { max = y; } else return A; print("Larger of %d and
C.Substraction of one pointer from another %d is %d", x, y, max); }
D.Addition of a number to a pointer
Page 13 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
A. Program will not compile as no statement is Q 144. Which of the following is not a proper
allowed after return statement. storage class in 'C'? / डनम्नडलडित में से कौन सी 'सी' में
B. Program will not compile as the function has प्रोपर स्टोरे ज क्लासेज नहीं है?
two return statements A. dec B. auto
C. Larger of 10 and 20 is 20 C. static D. extern
D. No output
Q 145. For the program given below, which of
Q 140. What is wrong with the following code? / the following statement is correct? / नीचे कदए गए
डनम्नडलडित कोि में क्या अनुपयुक्त है प्रोग्राम के डलए, कौन-सा कथन सत्य है
struct Person { char *name; struct Person Mother, void main ( )
Father; } Anita; { int i; for (scanf("%d", %i); print("%d",i)); }
A. name should be defined as an array A. The for loop would get executed only once.
B. The ; should appear after the } and Anita be B. The for loop would not get executed at all.
defined later. C. The for loop would get executed 5 times.
C. struct Person Mother, Father; must be defined D. The for loop would get executed infinite times
as struct Person *Mother, *Father;
Q 146. What is the output of the following code?
D. There is no error in the code
/ डनम्नडलडित कोि का पटरणाम क्या है?
Q 141. The size of a character variable in 'C' is: /
main( )
'C' में एक character िेटरएबल का आकार है: { static int num = 8; printf ("%d", num = num-2);
A. 8 bytes B. 4 bytes if(num1= 0)
C. 16 bytes D. None of the above main(); }
Q 142. What will be the output of the following A. Infinite output B. 8642
'C' program. / डनम्नडलडित 'C' प्रोग्राम का आउटपुट क्या C. 6420
होगा D. Invalid because main function can’t cailitself
main ( ) Q 147. Which of the following is a valid string
{ int a=5; float b= 5.0; if (a = = b) constant? / डनम्नडलडित में से कौन सा िैि मस्रंग कांस्टेंट
printf ("a and b are equal"); है?
else printf("a and b are different"); } A. “programming B. “programming”
A. a and b are different B. a and b are equal C. ‘programming D. $programming$
C. Error D. None of the above
Q 148. The value of the following ‘C’ expression
Q 143. Calculate the number of iterations in the
is: 2 + 18 / 4 - 1 / डनम्नडलडित 'C' एक्सप्रेशन का मान
following loop. / डनम्नडलडित लूप में iterations की
है: 2 + 18 / 4 - 1
संख्या का पता लगाएाँ A. 5 B. 5.5
main () C. 6 D. 4
{ int x = 5, y = 10, z = 9;
Q 149. How many times "India BIX" is get
for( ;x <= 5; ) { y ++; z ==; x = x+1/2;
if (z = = 0) z = y; } } printed? / "India BIX" ककतनी बार मप्रंट हुआ है?
A. Infinite B. Only one iteration int main()
C. 32762 D. None of the above { int x; for (x = - 1); x <= 10; x ++)
{ if (x < 5) continue; else
Page 14 of 15
KVS/NVS PGT C/C++ Language MCQ’s
INFIQUE CLASSES JAIPUR
S-2 Khandel Tower, Infront of Hotel Grand Safari, Near Gujar ki thadi, Gopalpura Bypass
MOB: 7014528940 / 8949174075
Q 153. Pick the operators that associate from the Q 160. What will be the output of the following?
right: / दाईं ओर से संबद् ऑपरे टरों को चुनें: / डनम्नडलडित का आउटपुट क्या होगा
A. + = B. ++ main ()
C. = D. All of the above { int a = ‘A’ * ;
printf("%d”, a);
Q 154. The statement:
A. A
printf("%f", (float) 9/5); मप्रंट करता है
B. 65
A. 1.0 B. 1.8
C. a
C. 2.0 D. None of the above
D. the program will not compile as an integer
Q 155. The following statement / डनम्नडलडित variable is assigned a character constant.
कथन printf ("%f", 9/5); मप्रंट करता है
Q 161. The value of variable x after executing the
A. 1.0 B. 1.8
following code will be: / डनम्नडलडित कोि को
C. 2.0 D. None of the above
डनष्पाकदत करने के बाद चर x का मान होगा
Q 156. Pick the operators whose meaning is
Val = -200; x = (val >= 0); val: - val;
context dependent: / उन ऑपरे टरों को चुनें डजनके A. 200 B. 0
अथि सन्दभि (context) पर आिाटरत है- C. -200 D. 1
A. # B. *
C. & D. All of the above
Page 15 of 15
KVS/NVS PGT C/C++ Language MCQ’s