for loop
while loop
do-while loop
None of the above
Using malloc() without free()
Using calloc() without realloc()
Using pointers incorrectly
Logical Operator
Conditional Operator
typecast
Ternary
Continue
break
goto
exit
char > int > float
int > char > float
char < int < double
double > char > int
return
static
new
volatile
Because it was raining
The dog barked
While I was sleeping
Since she is tired
Nested structure
Recursive structure
Union structure
Inline structure
was doing
did
will do
have done
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
What will be output if you compile and execute the following ‘C’ code?
void main(){int i=4,x;x=++i + ++i + ++i;printf("%d",x);}
21
18
19
Compilation error
2.5
2
2.000000
2.500000
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
0
1
System programming language
General purpose language
Data processing language
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
LowerCase letters
UpperCase letters
CamelCase letters
None of these
pair of parenthesis
semicolon
braces
colon
arr[4]
arr(5)
arr[5]
arr[6]
A number
A special symbol other than underscore
Both of the above
An alphabet
do-while
if-else
for
while
fclose()
closefile()
fileclose()
endfile()
int func();
func() int;
function int func();
declare int func();
while(1)
for(;;)
do{ } while(1);
All of the above
print("Hello World");
echo("Hello World");
printf("Hello World");
continue
20
None
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
5
6
12345
1return
return1
$return_1
“programming Trick”
“programming"
‘programming'
$ programming $
3
4
Program will terminate with an error
Undefined behavior
Array index will wrap around
calloc()
malloc()
allocate
New
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
What is the output of the following code?
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
What will be the output of the following pseudo code ?
Integer aSet a =4do print a + 2 a = a-1while (a not equals 0)end while
6 6 6 6
6 5 4 3
6 7 8 9
6 8 10 12
How many times will the following loop execute?
int j;for(j = 1; j <= 10; j = j-1)printf("INFOMAX");
Forever
Never
immutable
mutable
const
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
Read
Write
Execute
Copy
Return
GOTO
Switch
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
&&
| |
!
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
it Compare the variable a and the variable b are same.
The value of b is assigned to variable a but if b changes later, it will not effect the value of variable a.
The value of b is assigned to variable a but if b changes later, it will effect the value of variable a.
The value of variable a is assigned to variable b, and the value of variable b is assigned to variable a.
Deriving a base class from derived class
Deriving a derived class from base class
Deriving a derived class from more than one base class
None of the mentioned
no of students
char
7th
myName
Nominative form
Comparative form
Superlative form
Positive form