MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Computer Science
C Programming
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
Worst case time complexity of AVL tree is better in comparison to binary search tree for
search and insert operations
search and delete operations
insert and delete operations
search, insert and delete operations
Q.2
"C" language is
context free language
context sensitive language
regular language
none of the above
Q.3
Is function?
function is a block of statements that perform some specific task.
function is the fundamental modular unit. a function is usually designed to perform a specific task.
function is a block of code that performs a specific task. it has a name and it is reusable
all the above
Q.4
One of the following sentences is true ?
the body of a while loop is executed at least onc
the body of a do ... while loop is executed at least onc
the body of a do ... while loop is executed zero or more times.
a for loop can never be used in place of a while loop.
Q.5
Is the work of break keyword?
halt execution of program
restart execution of program
exit from loop or switch statement
none of the above
Q.6
Switch statement, each case instance value must be _______?
constant
variable
special symbol
none of the above
Q.7
_______ memory allocation function modifies the previous allocated space.
calloc
free
malloc
realloc
Q.8
Operators are known as Ternary Operator?
::, ?
?, :
?, ;;
none of the above
Q.9
Is the right way to declare constant in C?
int constant var =10;
int const var = 10;
const int var = 10;
b & c both
Q.10
Statement printf("%c", 100); will print?
prints 100
print garbage
prints ascii equivalent of 100
none of the above
Q.11
Of the following data structure is linear type?
strings
queue
lists
all of the above
Q.12
Is constant?
constants have fixed values that do not change during the execution of a program
constants have fixed values that change during the execution of a program
constants have unknown values that may be change during the execution of a program
none of the above
Q.13
Is Keywords?
keywords have some predefine meanings and these meanings can be change
keywords have some unknown meanings and these meanings cannot be change
keywords have some predefine meanings and these meanings cannot be change
none of the above
Q.14
Is C Tokens?
the smallest individual units of c program
the basic element recognized by the compiler
the largest individual units of program
a & b both
Q.15
Statement print f ("%d",? 0 ? 5 : 1 : 12); will print?
10
0
12
1
Q.16
Is a _____________ list.
lifo
lilo
filo
fifo
Q.17
Operators can operate upon?
double and chars
floats and doubles
ints and floats
ints and chars
Q.18
) function used to ?
work same as printf()
prints the error message specified by the compiler
prints the garbage value assigned by the compiler
none of the above
Q.19
Represent hierarchical relationship between elements, which data structure is suitable?
priority
tree
dqueue
all of the above
Q.20
Is the right way to access value of structure variable book{ price, page }?
printf("%d%d", book.price, book.page);
printf("%d%d", pricbook, pagbook);
printf("%d%d", price::book, page::book);
printf("%d%d", price->book, page->book);
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page