MCA
Questions No: 1/50

Which of the following can be used as a variable name?
निम्नलिखित में से कौन सा एक variable नाम के रूप में इस्तेमाल किया जा सकता है?

Questions No: 2/50

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

Questions No: 3/50

What is the final value of x when the code is executed?

int x; 
for(x=0; x<10; x++) 
{} 

Questions No: 4/50

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

Questions No: 5/50

The do…while looping statement

Questions No: 6/50

In C, if you pass an array as an argument to a function, what actually gets passed?
C में, यदि आप किसी फ़ंक्शन के तर्क के रूप में एक सरणी पास करते हैं, तो वास्तव में क्या पारित होता है?

Questions No: 7/50

If a is an integer variable, then a = 5/2 will return a value
यदि a एक integer variable है, तो a = 5/2 मान लौटाएगा

Questions No: 8/50

The following code ‘for(;;)’ represents an infinite loop. It can be terminated by.
निम्नलिखित कोड for(;;) के लिए अनंत लूप का प्रतिनिधित्व करता है। द्वारा इसे समाप्त किया जा सकता है।

Questions No: 9/50

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

Questions No: 10/50

What will be output if you compile and execute the following ‘C’ code?

void main()
{
int i=4,x;
x=++i + ++i + ++i;
printf("%d",x);
}

Questions No: 11/50

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

Questions No: 12/50

In C, which function is used to obtain user input?

Questions No: 13/50

Which of the following keywords is used to return a value from a function?

Questions No: 14/50

Which of the following methods successfully gets the third element of an array named arr.
निम्नलिखित में से कौन सी विधि arr नामक सरणी के तीसरे तत्व को सफलतापूर्वक प्राप्त करती है।

Questions No: 15/50

What is the output of this statement

printf("%d", (a++));

Questions No: 16/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: 17/50

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

Questions No: 18/50

Arguments that take input by user before running a program are called?
प्रोग्राम चलाने से पहले उपयोगकर्ता द्वारा इनपुट लेने वाले तर्क किसे कहा जाता है?

Questions No: 19/50

What will be the output of the following code?

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

Questions No: 20/50

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

Questions No: 21/50

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

Questions No: 22/50

When the following piece of code is executed, what happens?

b = 3;
a = b++;

Questions No: 23/50

Header file for the sqrt() function is
Sqrt () फ़ंक्शन के लिए हैडर फ़ाइल है

Questions No: 24/50

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

Questions No: 25/50

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

Questions No: 26/50

What is the output of the following code?

int arr[5] = {1, 2, 3, 4, 5};
printf("%d", arr[3]);

Questions No: 27/50

pow(x,y) is used to
pow (x, y) का उपयोग किया जाता है

Questions No: 28/50

C Programming Language was developed and written by
C प्रोग्रामिंग लैंग्वेज का विकास और लेखन द्वारा किया गया

Questions No: 29/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: 30/50

What is the output of the following code: int x = 5; printf("%d", x++);

Questions No: 31/50

Zero address instructions are necessarily used in _________ architecture.
ज़ीरो एड्रेस इंस्ट्रक्शन अनिवार्य रूप से _________ आर्किटेक्चर में उपयोग किए जाते हैं।

Questions No: 32/50

Which header file is necessary for using the malloc function?

Questions No: 33/50

in C language the output of 14 % 4 is
सी भाषा में 14% 4 का आउटपुट है

Questions No: 34/50

An array can be passed to a function by
किसी सरणी को फ़ंक्शन द्वारा पास किया जा सकता है

Questions No: 35/50

Identify the correct sequence of steps to run a c program
सी प्रोग्राम चलाने के लिए चरणों के सही अनुक्रम को पहचानें

Questions No: 36/50

Which of the following correctly declares a function in C?

Questions No: 37/50

How many times is a do while loop guaranteed to loop?
लूप को लूप की गारंटी देते समय कितनी बार किया जाता है?

Questions No: 38/50

Which is correct with respect to the size of the data types?
डेटा प्रकारों के आकार के संबंध में कौन सा सही है?

Questions No: 39/50

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

Questions No: 40/50

What will be the output of the following code?

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

Questions No: 41/50

Which one of the following are not valid variable names in C?
निम्नलिखित में से कौन C में मान्य variable नाम नहीं हैं?

Questions No: 42/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: 43/50

Which one of the following is not a reserved keyword for C?
निम्नलिखित में से कौन सी C के लिए आरक्षित कीवर्ड नहीं है?

Questions No: 44/50

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

Questions No: 45/50

In the following nested conditional statements, which branch will execute?

int x = 4;
if (x > 2) {
if (x < 5) {
printf("x is between 2 and 5");
}

else {
printf("x is 2 or less");
}

Questions No: 46/50

What is the output of the following code?

int a = 5;
printf("%d", a == 5);

Questions No: 47/50

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

Questions No: 48/50

Which function is used to close a file?

Questions No: 49/50

What is the size of an int data type in C?

Questions No: 50/50

How many bytes does the int data type usually occupy in C?
C में int डेटा प्रकार आमतौर पर कितने बाइट्स लेता है?