DIT - C Data Types Variables And Operators
Questions No: 1/50

What is the output of the following code?

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

Questions No: 2/50

Find the output of following code :

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

Questions No: 3/50

What is the output of this statement

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

Questions No: 4/50

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

Questions No: 5/50

Which of the following a not a basic data type used in C language?
निम्नलिखित में से कौन C language में प्रयुक्त एक basic data type नहीं है?

Questions No: 6/50

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

Questions No: 7/50

What is the output of the following code?

main()
{
int a, b; a=b=4;
b=a++;
printf("%d %d %d %d", a++, --b, ++a, b--);
}

Questions No: 8/50

What is short int in C programming?
C प्रोग्रामिंग में शॉर्ट इंट क्या है?

Questions No: 9/50

Which data type is most suitable for storing a number 65000 in a 32-bit system?
32-बिट सिस्टम में नंबर 65000 को संग्रहीत करने के लिए कौन सा डेटा प्रकार सबसे उपयुक्त है?

Questions No: 10/50

a ‘C’ expression contains relational, assignment and arithmetic operators. There are no parentheses used. They will be evaluated in which of the following order
एक C expression में relational, assignment और arithmetic ऑपरेटर शामिल हैं। उपयोग किए गए कोई कोष्ठक नहीं हैं। उनका मूल्यांकन निम्न में से किस क्रम में किया जाएगा

Questions No: 11/50

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

Questions No: 12/50

What will be the output of the following code?

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

Questions No: 13/50

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

Questions No: 14/50

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

Questions No: 15/50

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

Questions No: 16/50

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

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

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

Questions No: 19/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: 20/50

What will be the output of the following code?

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

Questions No: 21/50

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

Questions No: 22/50

What is the output of the following code?

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

Questions No: 23/50

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

Questions No: 24/50

Which of the following is not a valid relational operator?
निम्नलिखित में से कौन वैध रिलेशनल ऑपरेटर नहीं है?

Questions No: 25/50

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

Questions No: 26/50

Which of the following is a logical operator in C?

Questions No: 27/50

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

Questions No: 28/50

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

Questions No: 29/50

Precedence is used
वरीयता का उपयोग किया जाता है

Questions No: 30/50

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

Questions No: 31/50

What is the purpose of the sizeof operator in C?

Questions No: 32/50

Which numbering system is not handled directly by the printf() conversion specifies ?

Questions No: 33/50

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

Questions No: 34/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: 35/50

Which of the following is not logical operator?
निम्नलिखित में से कौन तार्किक ऑपरेटर नहीं है?

Questions No: 36/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: 37/50

What is the size of the int data type (in bytes) in C?

Questions No: 38/50

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

Questions No: 39/50

Which of the following is the correct order of evaluation for the given expression? z = x + y * z / 4 % 2 - 1
निम्न expression के लिए मूल्यांकन का सही क्रम निम्नलिखित में से कौन सा है? z = x + y * z / 4% 2 - 1

Questions No: 40/50

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

Questions No: 41/50

Which operator is used to access the address of a variable?
किसी वेरिएबल के एड्रेस जानने के लिए किस ऑपरेटर का उपयोग किया जाता है?

Questions No: 42/50

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

Questions No: 43/50

By default a real number is treated as a
डिफ़ॉल्ट रूप से एक वास्तविक संख्या को माना जाता है

Questions No: 44/50

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

Questions No: 45/50

in C language How will you print '\n' on the screen?
आप स्क्रीन पर '\ n' कैसे प्रिंट करेंगे?

Questions No: 46/50

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

Questions No: 47/50

What is correct order of precedence in C?
C में पूर्वता का सही क्रम क्या है?

Questions No: 48/50

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

Questions No: 49/50

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

Questions No: 50/50

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

b = 3;
a = b++;