WorksheetsCoding Quiz in C
Total questions: 30
Worksheet time: 21mins
What is the Output ?
21
5
13
111
What is the Output ?
3.000
3
3.5
3.500
In C '&' used in 'scanf' represents
For separating input data
Pointer to variable
Memory Location
And operator
What is the Output ?
6 6 2
12 0 3
Runtime Error
Compilation Error
'Continue' statement is used to ?
To stop program execution
To go next line
To Stop Current iteration and start next iteration
To run infinite loop
An Array is initialized with size 20 in c. if first element location is at 1940(memory address), what will the location of 11th element?
(size of int = 2bytes)
1961
1960
1950
1951
what does following code do??
Makes the Given Matrix Symmetric
Transpose the Matrix
Matrix Multiplication
None of this
What is the Output?
prints "Hello World"
prints "Hello World" 5 times in same line
prints "Hello World" 5 times in multiple line
prints "0"
What is the Value of "256>>1"
25
128
257
256
first and second term in geometric progression are 3 and 6 find common ratio?
9
2
3
18
What is (void*)0?
Representation of void pointer
Representation of NULL pointer
Error
Representation of int pointer
What will be the output of the following C code?
2 3
2 garbagevalue
Error
2 4
What is the Average and Worst time complexities of Binary Search Algorithm
O(1) , O(1)
O(log n) , O(log n)
O(1) , O(log n)
O(log n) , O(n)
Average time Complexity of Merge Sort?
O(n log n)
O(n^2)
O(n)
O(log n)
What is Output ?
P
o
Coding Club
oding Club
Which type of pointer is a most convention way of storing raw address in c programming?
Void Pointer
Double Pointer
Null Pointer
Integer Pointer
Among 4 header files, which should be included to use the memory allocation functions like malloc(), calloc(), realloc() and free()?
<string.h>
<memory.h>
<stdlib.h>
Both
<memory.h>
<stdlib.h>
What is the return type of malloc() or calloc()?
int *
int **
void *
void **
What is output?
100
Compilation Error
0
Garbage Valur
What is Output ?
-1
0
1
Compilation Error
In C File is a type of?
int
char *
struct
void
If an error occurs, the function fseek() will returns
-1
NULL
non-zero value
0
What is Output ?
14
13
12
11
What is the output ?
Error
i = 1
i = 16
i = 0
What is output ?
1
6
3
Error
what is Output ?
3 3 1 3 1
3 3 1 3 0
Garbage Values
Error
What is the Output ?
Compilation Error
Runtime Error
False
True
How many times is Hello world printed ?
1
4
2
8
What is output?
print i till 9 and j till 19
print i and j till 19
print i and j till 9
Error
The operators (. , !! , < , = )
Ascending order of precedence is?
. !! < =
< !! = .
= < !! .
= !! < .
