MCA
Questions No: 1/50

Which function is used to close a file?

Questions No: 2/50

What is the output of the following code?

int x = 5;
if (x > 3) {
 printf("Greater than 3");
 } else {
 printf("Not greater than 3");
 }

Questions No: 3/50

Which of the following is the correct way to initialize a string in C?

Questions No: 4/50

What is the output of the following code?

int a = 5, b = 10;
if (a < b)
printf("a is less than b");
else
printf("a is greater than or equal to b");

Questions No: 5/50

if a=8, b=3 and c=-5 are integers, then value of a*b/c is
यदि a = 8, b = 3 और c = -5 integers हैं, तो a * b / c का मान है

Questions No: 6/50

What will be output if you will compile and execute the following c code?

int main()

int a=5; 
float b;
printf("%d",sizeof(++a+b));
printf(" %d",a); return 0;
}

Questions No: 7/50

Which function is used to read a single character from the user in C?

Questions No: 8/50

What will be the output of the following pseudo code ?

Integer a
Set a =4
do
print a + 2
      a = a-1
while (a not equals 0)
end while

Questions No: 9/50

Standard ANSI C recognizes ______ number of keywords?
मानक ANSI C, कीवर्ड की ______ संख्या को पहचानता है?

Questions No: 10/50

The conditional operator ( ? : ) is also known as
Conditional operator (? : ) को और किस नाम से जाना जाता है

Questions No: 11/50

The value obtained in the function is given back to main by using ________ keyword?
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है?

Questions No: 12/50

Which of the following is a correct way to declare an integer variable in C?

Questions No: 13/50

Which is an incorrect variable name?
एक गलत variable नाम कौन सा है?

Questions No: 14/50

Which of the following is false in ‘C’ Programming Language
निम्नलिखित में से कौन सी ’C’ प्रोग्रामिंग भाषा में गलत है

Questions No: 15/50

What is the correct value to return to the operating system upon the successful completion of a program?
किसी प्रोग्राम के सफल समापन पर ऑपरेटिंग सिस्टम पर लौटने का सही मूल्य क्या है?

Questions No: 16/50

How many times will the following loop execute?

int j;
for(j = 1; j <= 10; j = j-1)
printf("INFOMAX");

Questions No: 17/50

What is the difference between break and continue statements in loops?

Questions No: 18/50

Which of the following is the correct way to pass a pointer to a function?

Questions No: 19/50

The && and | | operators
&& और | | ऑपरेटरों

Questions No: 20/50

The do…while looping statement

Questions No: 21/50

What is the purpose of the return statement in a function?

Questions No: 22/50

What is the size of an int data type?
int डेटा प्रकार का आकार क्या है?

Questions No: 23/50

Who is father of C Language?
C लैंग्वेज का जनक कौन है?

Questions No: 24/50

Which of the following function declaration need not have a return statement in its body?

Questions No: 25/50

Which of the following leads to memory leaks in a C program?

Questions No: 26/50

If a structure contains another structure as a member, it is called:

Questions No: 27/50

What will be the output of the following code?

int a = 10, b = 20;
printf("%d", a + b);

Questions No: 28/50

What will be the output of the following program?

int main() 

int x=5; 
printf(“%d %d %d”,x,x<<2,x>>2); 
}

Questions No: 29/50

a C variable cannot start with
C variable किसके के साथ शुरू नहीं हो सकता

Questions No: 30/50

What will be the output of following program?

int main() 
{
  for(int c=1;c<5;++c); 
printf(“%d”,c); 
}

Questions No: 31/50

________ is used to transfer control from a function back to the calling function.
_________ एक फ़ंक्शन से कॉलिंग फ़ंक्शन पर नियंत्रण स्थानांतरित करने के लिए उपयोग किया जाता है

Questions No: 32/50

What happens if you use a break statement inside a nested loop?

Questions No: 33/50

Which is valid C expression?
कौन सी मान्य C expression है?

Questions No: 34/50

The keyword break cannot be simply used within
कीवर्ड ब्रेक का उपयोग केवल भीतर नहीं किया जा सकता है

Questions No: 35/50

What is the purpose of the #include directive in C?

Questions No: 36/50

If i = 8 and j = 5 are two integers, then the value of a=(i>0) || (j < 5) ; is

Questions No: 37/50

What will be the output of the following code?

int x = 5;
printf("%d", ++x);

Questions No: 38/50

Which of following is not a valid name for a C variable?
निम्नलिखित में से कौन नाम variable के लिए मान्य नाम नहीं है?

Questions No: 39/50

Which of the following operators in C has the highest precedence?

Questions No: 40/50

What will be the output of the following C code? printf("%d", sizeof(char));

Questions No: 41/50

Which of the following is an exit controlled loop?

Questions No: 42/50

Which of the following is a logical operator in C?

Questions No: 43/50

Which of the following cannot be used in identifiers?
निम्नलिखित में से कौन identifiers में इस्तेमाल नहीं किया जा सकता है?

Questions No: 44/50

The preprocessor directives start with
प्रीप्रोसेसर निर्देश के साथ शुरू होता है

Questions No: 45/50

For 16 bit compiler allowable range for integer constants is
पूर्णांक स्थिरांक के लिए 16 बिट संकलक स्वीकार्य सीमा है

Questions No: 46/50

Which of the following is not a keyword in C?

Questions No: 47/50

What is the result of the following code: int a = 10, b = 20; printf("%d", a > b ? a : b);

Questions No: 48/50

What is the difference between a declaration and a definition of a variable?
variable के declaration और definition के बीच अंतर क्या है?

Questions No: 49/50

C programs are converted into machine language with the help of
C प्रोग्राम को मशीनी भाषा में किसकी मदद परिवर्तित किया जाता है

Questions No: 50/50

Which code will print k 20 times?
20 बार कौन सा कोड k प्रिंट होगा?