BCA
Questions No: 1/50

In C, what does the function fopen() return if it fails to open a file?

Questions No: 2/50

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

Questions No: 3/50

Which of the following is true about interpreters?

Questions No: 4/50

What is the index of the first element in a C array?

Questions No: 5/50

Which of the following loops in C is guaranteed to execute at least once?
C में निम्नलिखित में से कौन सा लूप कम से कम एक बार निष्पादित होने की गारंटी है?

Questions No: 6/50

What will the following code print?

int x = 5;
if (x = 0)
printf("Zero");
else
printf("Not zero");

Questions No: 7/50

What does fseek() do?

Questions No: 8/50

Raj said that he wanted an ice-cream. Which is the correct direct speech for this sentence?

Questions No: 9/50

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

Questions No: 10/50

Which of the following language is predecessor to C Programming Language?
निम्नलिखित में से कौन सी भाषा C प्रोग्रामिंग लैंग्वेज की पूर्ववर्ती है?

Questions No: 11/50

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

Questions No: 12/50

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

Questions No: 13/50

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

Questions No: 14/50

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

Questions No: 15/50

Consider the following code and How many bytes of memory will be allocated?

int *ptr = (int *)
malloc(10 * sizeof(int));

Questions No: 16/50

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

Questions No: 17/50

The format identifier ‘%i’ is also used for _____ data type.
प्रारूप पहचानकर्ता % i ’का उपयोग _____ डेटा प्रकार के लिए भी किया जाता है।

Questions No: 18/50

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

Questions No: 19/50

What does the word ‘turbulent’ mean?

Questions No: 20/50

 Which of the following is an imperative sentence?

Questions No: 21/50

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

Questions No: 22/50

What will be the output of the following code segment?

int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf("\n%d %d %d", x, y, z);

Questions No: 23/50

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

Questions No: 24/50

Which one of the following is not a valid identifier?
निम्नलिखित में से कौन एक valid identifier नहीं है?

Questions No: 25/50

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

Questions No: 26/50

The result of a Relational operation is always
एक Relational ऑपरेशन का परिणाम हमेशा होता है

Questions No: 27/50

What will be the output of the following code?

int main()
{
int x,y,z;
x='1'-'0';    /* line-1 */
y='a'-'b';    /* line-2 */
z=x+y;
printf("%d",z);
}

Questions No: 28/50

Which of the following is true for variable names in C?
C में variable नामों में से कौन सा सही है?

Questions No: 29/50

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

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

The code of statements which may cause abnormal termination of the program should be written under which block?

Questions No: 32/50

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

Questions No: 33/50

Which of the following is a valid string constant?
निम्नलिखित में से कौन एक वैध string constant है?

Questions No: 34/50

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

Questions No: 35/50

How are String represented in memory in C?

Questions No: 36/50

Which library function is used to find the length of a string in C?
C में स्ट्रिंग की लंबाई ज्ञात करने के लिए किस लाइब्रेरी फ़ंक्शन का उपयोग किया जाता है?

Questions No: 37/50

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

Questions No: 38/50

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

Questions No: 39/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: 40/50

How many times will the following loop execute?

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

Questions No: 41/50

Find the output of following code :

int main() 
{
int i=-2;
printf (“-i=%d”,-i);
return b;
}

Questions No: 42/50

C was primarily developed as
C को मुख्य रूप से किसके लिए विकसित किया गया था

Questions No: 43/50

What are the different types of real data type in C ?
C में विभिन्न प्रकार के real डेटा प्रकार क्या हैं?

Questions No: 44/50

Which of the following is an exit controlled loop?

Questions No: 45/50

Which function is used to close a file?

Questions No: 46/50

All keywords in C are in
C में सभी कीवर्ड हैं

Questions No: 47/50

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

Questions No: 48/50

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

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

Questions No: 49/50

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

Questions No: 50/50

What is the output of this statement

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