ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - ARRAYS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
The function strlen() computes the length of an argument string excluding the null character.
The function strlen() computes the length of an argument string excluding the null character.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
02
Report Bug
At the time of initialization of an array, dimension of the array need not to be specified.
At the time of initialization of an array, dimension of the array need not to be specified.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
03
Report Bug
________ is a derived data type.
________ is a derived data type.
A.
Array
Array
B.
INT
INT
C.
FLOAT
FLOAT
D.
CHAR
CHAR
Question No. -
04
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. -
05
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. -
06
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. -
07
Report Bug
In ‘C’, the compiler does not check if the subscript used for an array exceeds size of the array.
In ‘C’, the compiler does not check if the subscript used for an array exceeds size of the array.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
08
Report Bug
Which of the following function can be used to find the first occurrence of a given string in another string?
Which of the following function can be used to find the first occurrence of a given string in another string?
A.
strchr( )
strchr( )
B.
strrchr( )
strrchr( )
C.
strstr( )
strstr( )
D.
strnset( )
strnset( )
Explanation
strstr is a C standard library string function as defined in string.h. strstr() has the function signature char * strstr(const char *haystack, const char *needle); which returns a pointer to a character at the first index where needle is in haystack, or NULL if not present.
Question No. -
09
Report Bug
The index of an array starts from 1.
The index of an array starts from 1.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
False: Array index always start with 0
Question No. -
10
Report Bug
The value of S[5] in the segment char s[15] = “ MICROPROCESSOR” is
The value of S[5] in the segment char s[15] = “ MICROPROCESSOR” is
A.
P
P
B.
O
O
C.
R
R
D.
None of the above
None of the above
1
2
3
4
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