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
<p>What will be the output of the following code?</p><pre><span style="font-size: 14px;">int x = 5;<br></span><span style="font-size: 14px;">printf("%d", ++x);</span></pre>
<br>
A.
4
4
B.
5
5
C.
6
6
D.
7
7
Question No# :
02
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# :
03
out of 50
<p>What will be the output of the following pseudo code ?</p><pre>Integer a<br>Set a =4<br>do<br><span style="white-space:pre"> </span>print a + 2<br> a = a-1<br>while (a not equals 0)<br>end while</pre>
<p><br></p>
A.
6 6 6 6
6 6 6 6
B.
6 5 4 3
6 5 4 3
C.
6 7 8 9
6 7 8 9
D.
6 8 10 12
6 8 10 12
Question No# :
04
out of 50
Which of the following a not a basic data type used in C language?
निम्नलिखित में से कौन C language में प्रयुक्त एक basic data type नहीं है?
A.
double
double
B.
float
float
C.
char
char
D.
array
array
Question No# :
05
out of 50
The conditional operator ( ? : ) is also known as
Conditional operator (? : ) को और किस नाम से जाना जाता है
A.
Binary operator
Binary operator
B.
Unary operator
Unary operator
C.
Ternary operator
Ternary operator
D.
All of the above
ऊपर के सभी
Question No# :
06
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# :
07
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# :
08
out of 50
In an assignment statement a=b; which of the following statement is true?
असाइनमेंट स्टेटमेंट में a = b; निम्नलिखित में से कौन सा कथन सत्य है?
A.
it Compare the variable a and the variable b are same.
यह variable a की तुलना variable b से करता है की ये समान हैं या नहीं
B.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
B का मान परिवर्तनशील को दिया जाता है, लेकिन यदि बाद में b बदल जाता है, तो यह चर के मान को प्रभावित नहीं करेगा।
C.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
B का मान चर को सौंपा गया है लेकिन यदि बाद में b में परिवर्तन होता है, तो यह चर के मान को प्रभावित करेगा।
D.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
वेरिएबल a का मान वेरिएबल b को असाइन किया गया है, और वेरिएबल b का वैल्यू वेरिएबल a को असाइन किया गया है।
Question No# :
09
out of 50
Which of the following can be used as a variable name?
निम्नलिखित में से कौन सा एक variable नाम के रूप में इस्तेमाल किया जा सकता है?
A.
no of students
no of students
B.
char
char
C.
7th
7th
D.
myName
myName
Question No# :
10
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# :
11
out of 50
Which of the following is an incorrect assignment statement ?
निम्नलिखित में से कौन एक गलत असाइनमेंट स्टेटमेंट है?
A.
N=m=0
N=m=0
B.
Value+=10
Value+=10
C.
mySize=x<y?9:11
mySize=x<y?9:11
D.
Value=+=10
Value=+=10
Question No# :
12
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# :
13
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# :
14
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# :
15
out of 50
What is the purpose of the sizeof operator in C?
What is the purpose of the sizeof operator in C?
A.
It returns the size of the variable in bits
It returns the size of the variable in bits
B.
It returns the size of the variable in bytes
It returns the size of the variable in bytes
C.
It returns the size of the variable in kilobytes
It returns the size of the variable in kilobytes
D.
It returns the number of elements in an array
It returns the number of elements in an array
Question No# :
16
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# :
17
out of 50
Which one of the following is not a reserved keyword for C?
निम्नलिखित में से कौन सी C के लिए आरक्षित कीवर्ड नहीं है?
A.
auto
auto
B.
case
case
C.
main
main
D.
default
default
Question No# :
18
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# :
19
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# :
20
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# :
21
out of 50
Arguments that take input by user before running a program are called?
प्रोग्राम चलाने से पहले उपयोगकर्ता द्वारा इनपुट लेने वाले तर्क किसे कहा जाता है?
A.
main function arguments
main function arguments
B.
main arguments
main arguments
C.
Command-Line arguments
Command-Line arguments
D.
Parameterized arguments
Parameterized arguments
Question No# :
22
out of 50
Which keyword is used to prevent any changes in the variable within a C program?
C प्रोग्राम के भीतर variable में किसी भी परिवर्तन को रोकने के लिए किस कीवर्ड का उपयोग किया जाता है?
A.
immutable
immutable
B.
mutable
mutable
C.
const
const
D.
volatile
volatile
Question No# :
23
out of 50
which is used to converts an expression to a specified data type
जिसका उपयोग किसी expression को एक specified डेटा प्रकार में परिवर्तित करने के लिए किया जाता है
A.
Logical Operator
Logical Operator
B.
Conditional Operator
Conditional Operator
C.
typecast
typecast
D.
Ternary
Ternary
Question No# :
24
out of 50
Which of the following cannot be a variable name in C?
निम्नलिखित में से कौन सी में एक variable नाम नहीं हो सकता है?
A.
volatile
volatile
B.
true
true
C.
friend
friend
D.
export
export
Question No# :
25
out of 50
Which keyword is used to prevent a variable from being modified?
Which keyword is used to prevent a variable from being modified?
A.
final
final
B.
constant
constant
C.
const
const
D.
static
static
Question No# :
26
out of 50
Which one of the following are not valid variable names in C?
निम्नलिखित में से कौन C में मान्य variable नाम नहीं हैं?
A.
float_int, keyword, A1
float_int, keyword, A1
B.
ANSI, ascii, cpu
ANSI, ascii, cpu
C.
valid, variable, name
valid, variable, name
D.
None of the above
इनमे से कोई भी नहीं
Question No# :
27
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# :
28
out of 50
which Input function does not show the character read from the input device
कौन सा इनपुट फ़ंक्शन इनपुट डिवाइस से पढ़ा गया चरित्र नहीं दिखाता है
A.
scanf()
scanf()
B.
getch()
getch()
C.
getche()
getche()
D.
gets()
gets()
Question No# :
29
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# :
30
out of 50
Who is father of C Language?
C लैंग्वेज का जनक कौन है?
A.
Bjarne Stroustrup
बजरने स्ट्रॉस्ट्रुप
B.
James A. Gosling
जेम्स ए गोसलिंग
C.
Dennis Ritchie
डेनिस रिची
D.
Dr. E.F. Codd
डॉ। ई। एफ। कॉड
Question No# :
31
out of 50
Function of a compiler is
कम्पाइलर का कार्य क्या है
A.
put together the file and functions that are required by the program
प्रोग्राम द्वारा आवश्यक फ़ाइल और फ़ंक्शंस एक साथ रखें
B.
translate the instructions into a form suitable for execution by the program
कार्यक्रम द्वारा निष्पादन के लिए उपयुक्त रूप में निर्देशों का अनुवाद करें
C.
load the executable code into the memory and execute them
मेमोरी में निष्पादन योग्य कोड लोड करें और उन्हें निष्पादित करें
D.
allow the user to type the program
उपयोगकर्ता को प्रोग्राम टाइप करने की अनुमति दें
Question No# :
32
out of 50
Which of the following is not logical operator?
निम्नलिखित में से कौन तार्किक ऑपरेटर नहीं है?
A.
&
&
B.
&&
&&
C.
||
||
D.
!
!
Question No# :
33
out of 50
<p>What will be output if you will compile and execute the following c code?</p><pre>int main()<br>{ <br><span style="white-space:pre"> </span>int a=5; <br><span style="white-space:pre"> </span>float b;<br><span style="white-space:pre"> </span>printf("%d",sizeof(++a+b));<br><span style="white-space:pre"> </span>printf(" %d",a); return 0;<br>}</pre>
<p><br></p>
A.
2 6
2 6
B.
4 6
4 6
C.
2 5
2 5
D.
4 5
4 5
Question No# :
34
out of 50
Which of the following software translates source code into object code?
निम्न में से कौन सा सॉफ़्टवेयर स्रोत कोड को ऑब्जेक्ट कोड में अनुवादित करता है?
A.
Compiler
Compiler
B.
Interpreter
Interpreter
C.
Assembler
Assembler
D.
None of These
इनमें से कोई नहीं
Question No# :
35
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# :
36
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# :
37
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# :
38
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# :
39
out of 50
<p>What is the output of the following code?</p><pre><span style="font-size: 14px;">int a = 5;<br></span><span style="font-size: 14px;">printf("%d", a == 5);</span></pre>
<br>
A.
0
0
B.
1
1
C.
5
5
D.
Undefined
Undefined
Question No# :
40
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# :
41
out of 50
Precedence is used
वरीयता का उपयोग किया जाता है
A.
To determine which operator evaluated first from left to right.
यह निर्धारित करने के लिए कि किस ऑपरेटर ने पहले बाएं से दाएं का मूल्यांकन किया।
B.
To determine the level of an operator in a program.
एक कार्यक्रम में एक ऑपरेटर के स्तर का निर्धारण करने के लिए।
C.
To determine how an expression involving more than one operator is evaluated.
यह निर्धारित करने के लिए कि एक से अधिक ऑपरेटर से जुड़े अभिव्यक्ति का मूल्यांकन कैसे किया जाता है।
D.
To check the expression is valid or not.
जाँच करने के लिए कि अभिव्यक्ति वैध है या नहीं।
Question No# :
42
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;
Question No# :
43
out of 50
Standard ANSI C recognizes ______ number of keywords?
मानक ANSI C, कीवर्ड की ______ संख्या को पहचानता है?
A.
30
30
B.
32
32
C.
36
36
D.
40
40
Question No# :
44
out of 50
Which one of the following is not a keyword in C language?
C भाषा में निम्नलिखित में से कौन सा एक keyword नहीं है?
A.
void
void
B.
endl
endl
C.
float
float
D.
switch
switch
Question No# :
45
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# :
46
out of 50
What is the result of the following code: int a = 10, b = 20; printf("%d", a > b ? a : b);
What is the result of the following code: int a = 10, b = 20; printf("%d", a > b ? a : b);
A.
10
10
B.
20
20
C.
0
0
D.
None
None
Question No# :
47
out of 50
Which data type is most suitable for storing a number 65000 in a 32-bit system?
32-बिट सिस्टम में नंबर 65000 को संग्रहीत करने के लिए कौन सा डेटा प्रकार सबसे उपयुक्त है?
A.
signed short
signed short
B.
unsigned short
unsigned short
C.
long
long
D.
int
int
Question No# :
48
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# :
49
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# :
50
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
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