Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
QUIZ ON : JAVA - ARRAYS
ARRAYS
00:00:00
English
Hindi
Question No# :
01
out of 32
If the two strings are identical, then strcmp() function returns
यदि दो तार समान हैं, तो strcmp () फ़ंक्शन रिटर्न करता है
A.
-1
B.
1
C.
0
D.
Yes
Question No# :
02
out of 32
What is the effect of the following code?
main() { int a[4] = {25, 16};
printf(“%d %d”, a[0] & a[1], a[1]|a[2]) ; }
What is the effect of the following code?
main() { int a[4] = {25, 16};
printf(“%d %d”, a[0] & a[1], a[1]|a[2]) ; }
A.
16 16
16 16
B.
Syntax error because of invalid operator symbol
Syntax error because of invalid operator symbol
C.
25 16
25 16
D.
Syntax error because of invalid array initialization
Syntax error because of invalid array initialization
Question No# :
03
out of 32
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
Question No# :
04
out of 32
When we declare an array
When we declare an array
A.
Compiler declare array name itself as a constant pointer to base address
Compiler declare array name itself as a constant pointer to base address
B.
A continuous file is allocated to store the elements value
A continuous file is allocated to store the elements value
C.
Index of elements is declared automatically
Index of elements is declared automatically
D.
All elements are initialized to zero
All elements are initialized to zero
Question No# :
05
out of 32
________ is a derived data type.
________ is a derived data type.
A.
Array
Array
B.
INT
INT
C.
FLOAT
FLOAT
D.
CHAR
CHAR
Question No# :
06
out of 32
The best case and worst case time for searching an element using linear search is 1, n.
The best case and worst case time for searching an element using linear search is 1, n.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
07
out of 32
Set of values of the same type, which have a single name followed by an index is called
Set of values of the same type, which have a single name followed by an index is called
A.
function
B.
structure
C.
array
D.
union
Question No# :
08
out of 32
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
TRUE
B.
FALSE
FALSE
Question No# :
09
out of 32
Bounds of the array index are checked during execution.
Bounds of the array index are checked during execution.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
10
out of 32
An array is a group of related data item that share a common memory location in RAM.
An array is a group of related data item that share a common memory location in RAM.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
11
out of 32
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
TRUE
B.
FALSE
FALSE
Question No# :
12
out of 32