Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : c - INTRODUCTION
INTRODUCTION
00:00:00
English
Hindi
Question No# :
01
out of 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 ऑपरेटर शामिल हैं। उपयोग किए गए कोई कोष्ठक नहीं हैं। उनका मूल्यांकन निम्न में से किस क्रम में किया जाएगा
A.
Assignment Relational Arithmetic
Assignment Relational Arithmetic
B.
Arithmetic Relational Assignment
Arithmetic Relational Assignment
C.
Relational Arithmetic Assignment
Relational Arithmetic Assignment
D.
Assignment Arithmetic Relational
Assignment Arithmetic Relational
Question No# :
02
out of 50
What is required in each C program?
What is required in each C program?
A.
Input data
Input data
B.
The program does not require any function.
The program does not require any function.
C.
Output data
Output data
D.
The program must have at least one function.
The program must have at least one function.
Question No# :
03
out of 50
The preprocessor directives start with
प्रीप्रोसेसर निर्देश के साथ शुरू होता है
A.
//
//
B.
/
/
C.
#
#
D.
/*
/*
Question No# :
04
out of 50
Which of the following is a logical operator in C?
Which of the following is a logical operator in C?
A.
&&
&&
B.
| |
| |
C.
!
!
D.
All of the above
All of the above
Question No# :
05
out of 50
<p>What is the output of the following code?</p><pre>int a = 10, b = 5;<br>printf("%d", a / b);</pre>
<br>
A.
5
5
B.
2
2
C.
0.5
0.5
D.
15
15
Question No# :
06
out of 50
What is the purpose of the #include directive in C?
What is the purpose of the #include directive in C?
A.
It is used to define global variables
It is used to define global variables
B.
It is used to define a macro
It is used to define a macro
C.
It is used to include standard or user-defined header files in the program
It is used to include standard or user-defined header files in the program
D.
It is used to include comments in the code
It is used to include comments in the code
Question No# :
07
out of 50
What is the size of the int data type (in bytes) in C?
What is the size of the int data type (in bytes) in C?
A.
4
4
B.
8
8
C.
16
16
D.
1
1
Question No# :
08
out of 50
Which programming method is followed in C language
C भाषा में किस प्रोग्रामिंग विधि का पालन किया जाता है
A.
Algorithm
Algorithm
B.
Flow-Charts
Flow-Charts
C.
Procedural
Procedural
D.
Object Oriented
Object Oriented
Question No# :
09
out of 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
A.
* / % + - =
* / % + - =
B.
= * / % + -
= * / % + -
C.
/ * % - + =
/ * % - + =
D.
* % / - + =
* % / - + =
Question No# :
10
out of 50
What will be the output of the following C code? printf("%d", sizeof(char));
What will be the output of the following C code? printf("%d", sizeof(char));
A.
2
2
B.
4
4
C.
1
1
D.
Depends on the system
Depends on the system
Question No# :
11
out of 50
Which is correct with respect to the size of the data types?
डेटा प्रकारों के आकार के संबंध में कौन सा सही है?
A.
char > int > float
char > int > float
B.
int > char > float
int > char > float
C.
char < int < double
char < int < double
D.
double > char > int
double > char > int
Question No# :
12
out of 50
<p>What will be the output of the following code?</p><pre><span style="font-size: 14px;">int main()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;">int x,y,z;<br></span><span style="font-size: 14px;">x='1'-'0'; /* line-1 */<br></span><span style="font-size: 14px;">y='a'-'b'; /* line-2 */<br></span><span style="font-size: 14px;">z=x+y;<br></span><span style="font-size: 14px;">printf("%d",z);<br></span><span style="font-size: 14px;">}</span></pre>
A.
0
0
B.
Error because of incorrect line-1 only.
केवल गलत लाइन -1 के कारण त्रुटि।
C.
Error because of incorrect line-1 and line-2.
गलत लाइन -1 और लाइन -2 के कारण त्रुटि।
D.
Error because of incorrect line-2 only.
केवल गलत लाइन -2 के कारण त्रुटि।
Question No# :
13
out of 50
<p>What is the output of the following code?</p><pre>main()<br>{<br><span style="white-space:pre"> </span>int a, b; a=b=4;<br><span style="white-space:pre"> </span>b=a++;<br><span style="white-space:pre"> </span>printf("%d %d %d %d", a++, --b, ++a, b--);<br>}</pre>
<p><br></p>
A.
5 3 7 3
5 3 7 3
B.
Syntax error
Syntax error
C.
5 4 5 3
5 4 5 3
D.
6 2 6 4
6 2 6 4
Question No# :
14
out of 50
What is the correct syntax to output "Hello World" in C?
What is the correct syntax to output "Hello World" in C?
A.
print("Hello World");
print("Hello World");
B.
echo("Hello World");
echo("Hello World");
C.
printf("Hello World");
printf("Hello World");
D.
None of these
None of these
Question No# :
15
out of 50
in C language How will you print '\n' on the screen?
आप स्क्रीन पर '\ n' कैसे प्रिंट करेंगे?
A.
printf("\n");
printf("\n");
B.
echo '\n';
echo '\n';
C.
printf('\n');
printf('\n');
D.
printf('\\n')
printf('\\n');
Question No# :
16
out of 50
Which operator is used to access the address of a variable?
किसी वेरिएबल के एड्रेस जानने के लिए किस ऑपरेटर का उपयोग किया जाता है?
A.
*
*
B.
&
&
C.
%
%
D.
#
#
Question No# :
17
out of 50
Which of the following is not logical operator?
निम्नलिखित में से कौन तार्किक ऑपरेटर नहीं है?
A.
&
&
B.
&&
&&
C.
||
||
D.
!
!
Question No# :
18
out of 50
Which of the following is true about interpreters?
Which of the following is true about interpreters?
A.
They execute programs faster than compilers
They execute programs faster than compilers
B.
They translate the entire program at once
They translate the entire program at once
C.
They translate and execute code line by line
They translate and execute code line by line
D.
They are not used in modern programming
They are not used in modern programming
Question No# :
19
out of 50
Which of the following cannot be used in identifiers?
निम्नलिखित में से कौन identifiers में इस्तेमाल नहीं किया जा सकता है?
A.
Spaces
Spaces
B.
Digits
Digits
C.
Underscores
Underscores
D.
Letters
Letters
Question No# :
20
out of 50
Which of following is not a valid name for a C variable?
निम्नलिखित में से कौन नाम variable के लिए मान्य नाम नहीं है?
A.
infomax
infomax
B.
info_max
info_max
C.
info max
info max
D.
All of these
ये सभी
Question No# :
21
out of 50
What is the size of an int data type in C?
What is the size of an int data type in C?
A.
2 bytes
2 bytes
B.
4 bytes
4 bytes
C.
8 bytes
8 bytes
D.
1 byte
1 byte
Question No# :
22
out of 50
The && and | | operators
&& और | | ऑपरेटरों
A.
compare two numeric values
दो संख्यात्मक मूल्यों की तुलना करें
B.
combine two numeric values
दो संख्यात्मक मूल्यों को मिलाएं
C.
compare two boolean values
दो बूलियन मूल्यों की तुलना करें
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
23
out of 50
<p>What will be the output of the following code segment?</p><pre>int x = 24, y = 39, z = 45;<br>z = x + y;<br>y = z - y;<br>x = z - y;<br>printf("\n%d %d %d", x, y, z);</pre>
<p><br></p>
A.
24 39 63
24 39 63
B.
39 24 63
39 24 63
C.
24 39 45
24 39 45
D.
39 24 45
39 24 45
Question No# :
24
out of 50
<p>What will be output if you compile and execute the following ‘C’ code?</p><pre><span style="font-size: 14px;">void main()<br></span><span style="font-size: 14px;">{<br></span><span style="font-size: 14px;">int i=4,x;<br></span><span style="font-size: 14px;">x=++i + ++i + ++i;<br></span><span style="font-size: 14px;">printf("%d",x);<br></span><span style="font-size: 14px;">}</span></pre>
A.
21
21
B.
18
18
C.
19
19
D.
Compilation error
Compilation error
Question No# :
25
out of 50
What are the different types of real data type in C ?
C में विभिन्न प्रकार के real डेटा प्रकार क्या हैं?
A.
float, double
float, double
B.
short int, double, long int
short int, double, long int
C.
float, double, long double
float, double, long double
D.
double, long int, float
double, long int, float
Question No# :
26
out of 50
Which of the following is a valid identifier?
निम्नलिखित में से कौन एक वैध identifier है?
A.
1return
1return
B.
return1
return1
C.
return
return
D.
$return_1
$return_1
Question No# :
27
out of 50
<p>What will be the output of the following program?</p> <pre>int main() <br>{ <br><span style="white-space:pre"> </span>int x=5; <br><span style="white-space:pre"> </span>printf(“%d %d %d”,x,x<<2,x>>2); <br>}</pre>
<p><br></p>
A.
1 20 5
1 20 5
B.
5 1 20
5 1 20
C.
5 20 1
5 20 1
D.
20 1 5
20 1 5
Question No# :
28
out of 50
If a is an integer variable, then a = 5/2 will return a value
यदि a एक integer variable है, तो a = 5/2 मान लौटाएगा
A.
2.5
2.5
B.
2
2
C.
2.000000
2.000000
D.
2.500000
2.500000
Question No# :
29
out of 50
What is short int in C programming?
C प्रोग्रामिंग में शॉर्ट इंट क्या है?
A.
The basic data type of C
The basic data type of C
B.
Qualifier
Qualifier
C.
Short is the qualifier and int is the basic data type
Short is the qualifier and int is the basic data type
D.
All of the mentioned
सभी का उल्लेख है
Question No# :
30
out of 50
Which is the only C function all programs must contain?
एकमात्र C फ़ंक्शन कौन सा है जिसमें सभी प्रोग्राम होने चाहिए?
A.
start()
start()
B.
printf()
printf()
C.
main()
main()
D.
getch()
getch()
Question No# :
31
out of 50
How many bytes does the int data type usually occupy in C?
C में int डेटा प्रकार आमतौर पर कितने बाइट्स लेता है?
A.
1
1
B.
2
2
C.
4
4
D.
8
8
Question No# :
32
out of 50
C programs are converted into machine language with the help of
C प्रोग्राम को मशीनी भाषा में किसकी मदद परिवर्तित किया जाता है
A.
An Editor
An Editor
B.
A compiler
A compiler
C.
An operating system
An operating system
D.
None of these
None of these.
Question No# :
33
out of 50
Which of the following is true for variable names in C?
C में variable नामों में से कौन सा सही है?
A.
They can contain alphanumeric characters as well as special characters
उनमें अल्फ़ान्यूमेरिक वर्णों के साथ-साथ विशेष वर्ण भी हो सकते हैं
B.
It is not an error to declare a variable to be one of the keywords(like goto, static)
यह एक चर को कीवर्ड घोषित करने के लिए एक त्रुटि नहीं है (जैसे गोटो, स्थिर)
C.
Variable names cannot start with a digit
परिवर्तनीय नाम एक अंक से शुरू नहीं हो सकते हैं
D.
Variable can be of any length
चर किसी भी लम्बाई का हो सकता है
Question No# :
34
out of 50
Which of the following is false in ‘C’ Programming Language
निम्नलिखित में से कौन सी ’C’ प्रोग्रामिंग भाषा में गलत है
A.
Keywords can be used as variable names
कीवर्ड का उपयोग variable नामों के रूप में किया जा सकता है
B.
Variable names can contain digits
Variable नामों में अंक हो सकते हैं
C.
Variable names do not contain blank spaces
Variable नामों में रिक्त स्थान नहीं होते हैं
D.
Capital letters can be used in variable names.
बड़े अक्षरों का उपयोग variable नामों में किया जा सकता है।
Question No# :
35
out of 50
What is the difference between a declaration and a definition of a variable?
variable के declaration और definition के बीच अंतर क्या है?
A.
Both can occur multiple times, but a declaration must occur first.
दोनों कई बार हो सकते हैं, लेकिन घोषणा पहले होनी चाहिए।
B.
A definition occurs once, but a declaration may occur many times.
एक परिभाषा एक बार होती है, लेकिन एक घोषणा कई बार हो सकती है।
C.
Both can occur multiple times, but a definition must occur first.
दोनों कई बार हो सकते हैं, लेकिन परिभाषा पहले होनी चाहिए।
D.
A declaration occurs once, but a definition may occur many times.
एक घोषणा एक बार होती है, लेकिन एक परिभाषा कई बार हो सकती है।
Question No# :
36
out of 50
Which is an incorrect variable name?
एक गलत variable नाम कौन सा है?
A.
Id_No
Id_No
B.
ID_NO
ID_NO
C.
IdNo
IdNo
D.
Id No
Id No
Question No# :
37
out of 50
<p>When the following piece of code is executed, what happens?</p><pre><span style="font-size: 14px;">b = 3;<br></span><span style="font-size: 14px;">a = b++;</span></pre>
<p><br></p>
A.
a contains 3 and b contains 4
a contains 3 and b contains 4
B.
a contains 4 and b contains 4
a contains 4 and b contains 4
C.
a contains 4 and b contains 3
a contains 4 and b contains 3
D.
a contains 3 and b contains 3
a contains 3 and b contains 3
Question No# :
38
out of 50
<p>What will be the output of the following code?</p><pre><span style="font-size: 14px;">int a = 10, b = 20;<br></span><span style="font-size: 14px;">printf("%d", a + b);</span></pre>
<br>
A.
30
30
B.
1020
1020
C.
10+20
10+20
D.
Compiler error
Compiler error
Question No# :
39
out of 50
By default a real number is treated as a
डिफ़ॉल्ट रूप से एक वास्तविक संख्या को माना जाता है
A.
float
float
B.
double
double
C.
long double
long double
D.
far double
far double
Question No# :
40
out of 50
What is the size of an int data type?
int डेटा प्रकार का आकार क्या है?
A.
4 Bytes
4 Bytes
B.
8 Bytes
8 Bytes
C.
Depends on the system/compiler
Depends on the system/compiler
D.
Cannot be determined
Cannot be determined
Question No# :
41
out of 50
Which numbering system is not handled directly by the printf() conversion specifies ?
Which numbering system is not handled directly by the printf() conversion specifies ?
A.
Decimal
Decimal
B.
Binary
Binary
C.
Octal
Octal
D.
Hexadecimal
Hexadecimal
Question No# :
42
out of 50
Which of the following is not a keyword in C?
Which of the following is not a keyword in C?
A.
int
int
B.
float
float
C.
include
include
D.
char
char
Question No# :
43
out of 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 का मान है
A.
-4
-4
B.
-2.8
-2.8
C.
+2.8
+2.8
D.
+3
+3
Question No# :
44
out of 50
C Language developed at _________?
C लैंग्वेज कहा विकसित हुई ?
A.
AT & Ts Bell Laboratories of USA in 1972
1972 में यूएसए की एटी एंड टी बेल लेबोरेटरीज
B.
AT & Ts Bell Laboratories of USA in 1970
1970 में यूएसए की एटी एंड टी बेल लेबोरेटरीज
C.
Sun Microsystems in 1973
सन माइक्रोसिस्टम्स 1973 में
D.
Cambridge University in 1972
1972 में कैम्ब्रिज यूनिवर्सिटी
Question No# :
45
out of 50
<p><span style="font-size: 1rem; letter-spacing: 0.01rem;">Find the output of following code :</span><br></p> <pre>int main() <br> { <br><span style="white-space:pre"> </span>int i=-2; <br><span style="white-space:pre"> </span>printf (“-i=%d”,-i); <br><span style="white-space:pre"> </span>return b; <br> }</pre>
<p><br></p>
A.
–i=2
–i=2
B.
i=-2
i=-2
C.
–i=-2
–i=-2
D.
–i=+2
–i=+2
Question No# :
46
out of 50
Which of the following is not a valid relational operator?
निम्नलिखित में से कौन वैध रिलेशनल ऑपरेटर नहीं है?
A.
<
<
B.
=
=
C.
>=
>=
D.
<=
<=
Question No# :
47
out of 50
<p>What is the output of this statement </p><pre>printf("%d", (a++));</pre>
<br>
A.
The value of (a + 1)
The value of (a + 1)
B.
Error message
Error message
C.
Garbage
Garbage
D.
The current value of a
The current value of a
Question No# :
48
out of 50
Which one of the following is not a valid identifier?
निम्नलिखित में से कौन एक valid identifier नहीं है?
A.
_infomax
_infomax
B.
3infomax
3infomax
C.
infomax_ica
infomax_ica
D.
infomax123
infomax123
Question No# :
49
out of 50
Which is valid C expression?
कौन सी मान्य C expression है?
A.
int my_num = 100,000;
int my_num = 100,000;
B.
int my_num = 100000;
int my_num = 100000;
C.
int my num = 1000;
int my num = 1000;
D.
int $my_num = 10000;
int $my_num = 10000;
Question No# :
50
out of 50
Which of the following is a correct way to declare an integer variable in C?
Which of the following is a correct way to declare an integer variable in C?
A.
int num;
int num;
B.
integer num;
integer num;
C.
num int;
num int;
D.
num integer;
num integer;
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz