void
endl
float
switch
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
Logical Operator
Conditional Operator
typecast
Ternary
LowerCase letters
UpperCase letters
CamelCase letters
None of these
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
*
&
%
#
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
arr[4]
arr(5)
arr[5]
arr[6]
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
print("Hello World");
echo("Hello World");
printf("Hello World");
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
Binary operator
Unary operator
Ternary operator
All of the above
0
Infinitely
1
Variable
stdio.h
conio.h
stdlib.h
compare two numeric values
combine two numeric values
compare two boolean values
do-while
if-else
for
while
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
&&
||
!
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
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
main(){ int a, b; a=b=4; b=a++; printf("%d %d %d %d", a++, --b, ++a, b--);}
5 3 7 3
Syntax error
5 4 5 3
6 2 6 4
ctype.h
math.h
int a = 5, b = 10;if (a < b)printf("a is less than b");elseprintf("a is greater than or equal to b");
a is greater than or equal to b
a is less than b
Compiler Error
Undefined
4
8
16
Algorithm
Flow-Charts
Procedural
Object Oriented
infomax
info_max
info max
All of these
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
An array of characters
The object of some class
Same as other primitive data type
Linkedlist of characters
return
static
new
volatile
Find the output of following code :
int main() { int i=-2; printf (“-i=%d”,-i); return b; }
–i=2
i=-2
–i=-2
–i=+2
exit
break
continue
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
-4
-2.8
+2.8
+3
print()
scanf()
input()
_infomax
3infomax
infomax_ica
infomax123
Nested structure
Recursive structure
Union structure
Inline structure
break stops the loop, continue skips the rest of the iteration
Both stop the loop
break skips to the next iteration, continue exits the loop
Both skip to the next iteration
is executed only once if the conditions is true
is also known as entry-controlled loop
is executed at least once if the conditions is false
the unconditional loop
double
char
array
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
Either True or False
is less than or is more than
is equal or less or more
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
2
3
Compiler
Interpreter
Assembler
None of These
How many times will the following loop execute?
int j;for(j = 1; j <= 10; j = j-1)printf("INFOMAX");
Forever
Never
10
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
int a(char *s)
void b(int a[], int n)
float *c()
short d(long x)