ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE QUIZ C LANGUAGE MCQ Questions C LANGUAGE Questions Answer for Interview
English
Hindi
Question No. -
121
Report Bug
SQL stands for
SQL stands for
SQL stands for
A.
Standard Query Language
Standard Query Language
B.
Structured Query Language
Structured Query Language
C.
Shortest Query Language
Shortest Query Language
D.
System Query Language
System Query Language
Question No. -
122
Report Bug
Which of the following expression is equivalent to ++*ptr?
Which of the following expression is equivalent to ++*ptr?
A.
(*ptr)++
(*ptr)++
B.
++*(ptr)
++*(ptr)
C.
(ptr)*++
(ptr)*++
D.
(ptr)++*
(ptr)++*
Question No. -
123
Report Bug
The default storage class of a ‘C’ variable is
The default storage class of a ‘C’ variable is
A.
auto
auto
B.
static
static
C.
extern
extern
D.
register
register
Explanation
The auto storage class is the default storage class for all local variables. The example above defines two variables with in the same storage class. 'auto' can only be used within functions, i.e., local variables.
Question No. -
124
Report Bug
In C, if you pass an array as an argument to a function, what actually gets passed?
In C, if you pass an array as an argument to a function, what actually gets passed?
A.
Value of elements in array
Value of elements in array
B.
First element of the array
First element of the array
C.
Base address of the array
Base address of the array
D.
Address of the last element of array
Address of the last element of array
Question No. -
125
Report Bug
If a file is open in ‘write’ mode, then
यदि फ़ाइल ‘राइट’ मोड में खुली है, तो
यदि फ़ाइल ‘राइट’ मोड में खुली है, तो
A.
If it does not exist, an error is returned
यदि यह मौजूद नहीं है, तो एक
त्रुटि वापस आ जाती है
B.
If it does not exist, it is created
यदि यह मौजूद नहीं है, तो यह
बनाया जाता है
C.
If it exists, then data is written at the end
यदि यह मौजूद है, तो डेटा अंत
में लिखा गया है
D.
If it exists, error is returned
यदि यह मौजूद है, तो त्रुटि वापस
आ जाती है
Explanation
In C, fopen() is used to open a file in different modes. To open a file in write mode, “w” is specified. When mode “w” is specified, it creates an empty file for output operations. If a file with the same name already exists, its contents are discarded and the file is treated as a new empty file.
Question No. -
126
Report Bug
Which of the following functions is used to free the allocated memory?
Which of the following functions is used to free the allocated memory?
A.
remove(var-name);
remove(var-name);
B.
free(var-name);
free(var-name);
C.
delete(var-name);
delete(var-name);
D.
dalloc(var-name);
dalloc(var-name);
Explanation
The function free() is used to de-allocate the memory allocated by the functions malloc ( ), calloc ( ), etc, and return it to heap so that it can be used for other purposes. The argument of the function free ( ) is the pointer to the memory which is to be freed.
Question No. -
127
Report Bug
Size of short integer and long integer can be verified using the sizeof() operator
Size of short integer and long integer can be verified using the sizeof() operator
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
128
Report Bug
The expression a[0] and *a[0] are same for int a[100].
The expression a[0] and *a[0] are same for int a[100].
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
129
Report Bug
A structure can contain similar or dissimilar elements
A structure can contain similar or dissimilar elements
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
130
Report Bug
Right shift of an unsigned integer by one bit is equivalent to multiplying it by two.
Right shift of an unsigned integer by one bit is equivalent to multiplying it by two.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
131
Report Bug
Functions can be called either by value or by reference.
Functions can be called either by value or by reference.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
132
Report Bug
Bounds of the array index are checked during execution.
Bounds of the array index are checked during execution.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
133
Report Bug
If the two strings are found to be unequal then strcmp returns difference between the first non-matching pair of characters.
If the two strings are found to be unequal then strcmp returns difference between the first non-matching pair of characters.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
134
Report Bug
C Programming Language was developed and written by
C प्रोग्रामिंग लैंग्वेज का विकास और लेखन द्वारा किया गया
C प्रोग्रामिंग लैंग्वेज का विकास और लेखन द्वारा किया गया
A.
Martin Richards
Martin Richards
B.
Dennis Ritchie
Dennis Ritchie
C.
Ken Thompson
Ken Thompson
D.
Herman Hellorith
Herman Hellorith
Question No. -
135
Report Bug
Which of the following is false in ‘C’ Programming Language
निम्नलिखित में से कौन सी ’C’ प्रोग्रामिंग भाषा में गलत है
निम्नलिखित में से कौन सी ’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. -
136
Report Bug
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 ऑपरेटर शामिल हैं। उपयोग किए गए कोई कोष्ठक नहीं हैं। उनका मूल्यांकन निम्न में से किस क्रम में किया जाएगा
एक 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. -
137
Report Bug
Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:
Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:
A.
It takes two inputs, one integer type and the other float type but returns
nothing
It takes two inputs, one integer type and the other float type but returns
nothing
B.
It takes two inputs, one integer type and the other float type but returns 0
It takes two inputs, one integer type and the other float type but returns 0
C.
It takes two inputs, one integer type and the other float type but returns an
integer
It takes two inputs, one integer type and the other float type but returns an
integer
D.
It takes two inputs, one integer type and the other integer type but returns
float
It takes two inputs, one integer type and the other integer type but returns
float
Question No. -
138
Report Bug
What will happen if an element is assigned a value to an element of an array whose subscript exceeds the size of the array
What will happen if an element is assigned a value to an element of an array whose subscript exceeds the size of the array
A.
It will not be allowed, but no error message will be generated
It will not be allowed, but no error message will be generated
B.
Compiler will generate an error message suggesting the same
Compiler will generate an error message suggesting the same
C.
The element will be assigned NULL VALUE.
The element will be assigned NULL VALUE.
D.
Some other data may be overwritten
Some other data may be overwritten
Question No. -
139
Report Bug
With every use of a memory allocation function, what function should be used to release allocated memory which is no longer needed?
With every use of a memory allocation function, what function should be used to release allocated memory which is no longer needed?
A.
unalloc()
unalloc()
B.
Dropmem()
Dropmem()
C.
Dealloc()
Dealloc()
D.
free()
free()
Question No. -
140
Report Bug
A structure can contain pointer to itself.
A structure can contain pointer to itself.
A.
TRUE
सही
B.
FALSE
गलत
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad