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
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# :
02
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# :
03
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# :
04
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# :
05
out of 50
What is the correct value to return to the operating system upon the successful completion of a program?
किसी प्रोग्राम के सफल समापन पर ऑपरेटिंग सिस्टम पर लौटने का सही मूल्य क्या है?
A.
1
1
B.
-1
-1
C.
0
0
D.
2
2
Question No# :
06
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# :
07
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# :
08
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# :
09
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# :
10
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# :
11
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# :
12
out of 50
What is correct order of precedence in C?
C में पूर्वता का सही क्रम क्या है?
A.
Addition, Division, Modulus
Addition, Division, Modulus
B.
Addition, Modulus, Division
Addition, Modulus, Division
C.
Multiplication, Substration, Modulus
Multiplication, Substration, Modulus
D.
Modulus, Multiplication, Substration
Modulus, Multiplication, Substration
Question No# :
13
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# :
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
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# :
16
out of 50
C was primarily developed as
C को मुख्य रूप से किसके लिए विकसित किया गया था
A.
System programming language
System programming language
B.
General purpose language
General purpose language
C.
Data processing language
Data processing language
D.
None of the above
None of the above
Question No# :
17
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# :
18
out of 50
Which of the following is not a valid relational operator?
निम्नलिखित में से कौन वैध रिलेशनल ऑपरेटर नहीं है?
A.
<
<
B.
=
=
C.
>=
>=
D.
<=
<=
Question No# :
19
out of 50
a C variable cannot start with
C variable किसके के साथ शुरू नहीं हो सकता
A.
A number
एक संख्या
B.
A special symbol other than underscore
अंडरस्कोर के अलावा एक विशेष प्रतीक
C.
Both of the above
ऊपर के दोनों
D.
An alphabet
एक वर्णमाला
Question No# :
20
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# :
21
out of 50
Which operator is used to access the address of a variable?
किसी वेरिएबल के एड्रेस जानने के लिए किस ऑपरेटर का उपयोग किया जाता है?
A.
*
*
B.
&
&
C.
%
%
D.
#
#
Question No# :
22
out of 50
The result of a Relational operation is always
एक Relational ऑपरेशन का परिणाम हमेशा होता है
A.
Either True or False
या तो सच या गलत
B.
is less than or is more than
से कम है या इससे अधिक है
C.
is equal or less or more
बराबर या कम या अधिक है
D.
All of the above
ऊपर के सभी
Question No# :
23
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# :
24
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# :
25
out of 50
All keywords in C are in
C में सभी कीवर्ड हैं
A.
LowerCase letters
छोटे अक्षर
B.
UpperCase letters
बड़े अक्षर
C.
CamelCase letters
CamelCase letters
D.
None of these
इनमें से कोई नहीं
Question No# :
26
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# :
27
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# :
28
out of 50
C Programming Language was developed and written by
C प्रोग्रामिंग लैंग्वेज का विकास और लेखन द्वारा किया गया
A.
Martin Richards
Martin Richards
B.
Dennis Ritchie
Dennis Ritchie
C.
Ken Thompson
Ken Thompson
D.
Herman Hellorith
Herman Hellorith
Question No# :
29
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# :
30
out of 50
Which function is used to read a single character from the user in C?
Which function is used to read a single character from the user in C?
A.
getchar()
getchar()
B.
gets()
gets()
C.
scanf()
scanf()
D.
cin.get()
cin.get()
Question No# :
31
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# :
32
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# :
33
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# :
34
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# :
35
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# :
36
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# :
37
out of 50
What will be the output of the following C code? printf("%d", sizeof(char));
निम्नलिखित C कोड का आउटपुट क्या होगा? printf("%d", sizeof(char));
A.
2
2
B.
4
4
C.
1
1
D.
Depends on the system
Depends on the system
Question No# :
38
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# :
39
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# :
40
out of 50
If i = 8 and j = 5 are two integers, then the value of a=(i>0) || (j < 5) ; is
If i = 8 and j = 5 are two integers, then the value of a=(i>0) || (j < 5) ; is
A.
-5
-5
B.
1
1
C.
0
0
D.
+5
+5
Question No# :
41
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# :
42
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# :
43
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# :
44
out of 50
In the passage of text, individual words and punctuation marks are known as
पाठ के मार्ग में, व्यक्तिगत शब्द और विराम चिह्न के रूप में जाना जाता है
A.
Constants
Constants
B.
Keywords
Keywords
C.
Operators
Operators
D.
Tokens
Tokens
Question No# :
45
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# :
46
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# :
47
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# :
48
out of 50
The format identifier ‘%i’ is also used for _____ data type.
प्रारूप पहचानकर्ता % i ’का उपयोग _____ डेटा प्रकार के लिए भी किया जाता है।
A.
char
char
B.
int
int
C.
float
float
D.
double
double
Question No# :
49
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# :
50
out of 50
<p>What is the output of the following code:</p><p><span style="font-size: 14px;">int x = 5;</span></p><p><span style="font-size: 14px;">printf("%d", x++);</span></p>
निम्नलिखित कोड का परिणाम क्या है:
A.
4
4
B.
5
5
C.
6
6
D.
Undefined
Undefined
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