4
5
6
Undefined
What is the output of the following code?
int x = 5;if (x > 3) { printf("Greater than 3"); } else { printf("Not greater than 3"); }
Greater than 3
Not Greater than 3
Error
No Output
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
LowerCase letters
UpperCase letters
CamelCase letters
None of these
*
&
%
#
When the following piece of code is executed, what happens?
b = 3;a = b++;
a contains 3 and b contains 4
a contains 4 and b contains 4
a contains 4 and b contains 3
a contains 3 and b contains 3
+
++
&&
for (int i = 0; i < 10; i++)
for i = 0 to 10 step 1
for (i = 0; i < 10; i++)
for (i < 10; i++)
_infomax
3infomax
infomax_ica
infomax123
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
-5
1
0
+5
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
Compiler
Interpreter
Assembler
None of These
conio.h
string.h
math.h
graphic.h
stdio.h
stdlib.h
float, double
short int, double, long int
float, double, long double
double, long int, float
for loop
while loop
do-while loop
none of the above
immutable
mutable
const
volatile
What is the output of the following code:
int x = 5;
printf("%d", x++);
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
None of the above
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
break
continue
return
2
3
int
float
include
char
"r"
"w"
"rw"
"read"
A
B
ADA
C++
Using malloc() without free()
Using calloc() without realloc()
Using pointers incorrectly
//
/
/*
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
Constants
Keywords
Operators
Tokens
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
-1
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
20
None
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
true
friend
export
int num;
integer num;
num int;
num integer;
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
Return
GOTO
Switch
exit
32
36
40
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
int x = 5;printf("%d", ++x);
7
double
array
2 bytes
4 bytes
8 bytes
1 byte
<
=
>=
<=
infomax
info_max
info max
All of these
is executed only once if the condition is true.
is also known as entry-controlled loop.
is executed at least once if the condition is false.
is unconditional looping statement..