ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - ARRAYS MCQ Questions
English
Hindi
Question No. -
21
Report Bug
There is no difference between ' ' and '0'.
There is no difference between ' ' and '0'.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
22
Report Bug
Find output of the following program?
Find output of the following program?
A.
Greater
Greater
B.
Smaller
Smaller
C.
Compile Error
Compile Error
D.
100
100
Question No. -
23
Report Bug
Disadvantage of array in C is
Disadvantage of array in C is
A.
We can easily access each element
We can easily access each element
B.
It is necessary to declare too many variables
It is necessary to declare too many variables
C.
It can store only one similar type of data
It can store only one similar type of data
D.
It is difficult to perform sorting operation on it
It is difficult to perform sorting operation on it
Question No. -
24
Report Bug
The string "Bilbo Baggins", may be stored in an array of 13 characters.
The string "Bilbo Baggins", may be stored in an array of 13 characters.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
25
Report Bug
Two dimensional array is stored in memory physically as one-dimensional array.
Two dimensional array is stored in memory physically as one-dimensional array.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
26
Report Bug
If the first string and the second string both are identical, then strcmp function returns
If the first string and the second string both are identical, then strcmp function returns
A.
a value of 0
a value of 0
B.
either 1 or 0
either 1 or 0
C.
a value of 1
a value of 1
D.
any positive integer
any positive integer
Question No. -
27
Report Bug
If the two strings are identical, then strcmp() function returns
यदि दो तार समान हैं, तो strcmp () फ़ंक्शन रिटर्न करता है
यदि दो तार समान हैं, तो strcmp () फ़ंक्शन रिटर्न करता है
A.
-1
B.
1
C.
0
D.
Yes
Explanation
strcmp(const char *s1, const char*s2); The strcmp return an int value that is if s1 < s2 returns a value < 0 if s1 == s2 returns 0 if s1 > s2 returns a value > 0
Question No. -
28
Report Bug
Which of the following function is more appropriate for reading in a multi-word string?
निम्नलिखित में से कौन सा फ़ंक्शन बहु-शब्द स्ट्रिंग में पढ़ने के लिए अधिक उपयुक्त है?
निम्नलिखित में से कौन सा फ़ंक्शन बहु-शब्द स्ट्रिंग में पढ़ने के लिए अधिक उपयुक्त है?
A.
printf();
B.
scanf();
C.
gets();
D.
puts();
Explanation
Which of the following function is more appropriate for reading in a multi-word string? A. printf(); B. scanf(); C. gets(); D. puts(); Answer: Option C Explanation: gets(); collects a string of characters terminated by a new line from the standard input stream stdin
Question No. -
29
Report Bug
An array is also known as
एक सरणी के रूप में भी जाना जाता है
एक सरणी के रूप में भी जाना जाता है
A.
Subscripted variable
B.
Collective array
C.
Ordinary variable
D.
Similar Quantities variable
Question No. -
30
Report Bug
Till the array elements are not given any specific value, they are supposed to contain all
जब तक सरणी तत्वों को कोई विशिष्ट मान नहीं दिया जाता है, तब तक वे सभी को शामिल करने वाले होते हैं
जब तक सरणी तत्वों को कोई विशिष्ट मान नहीं दिया जाता है, तब तक वे सभी को शामिल करने वाले होते हैं
A.
Zero
B.
Garbage value
C.
One
D.
Combination of zero and one
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