power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
world
addition23
test-name
factorial
Nested structure
Recursive structure
Union structure
Inline structure
getchar()
gets()
scanf()
cin.get()
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
no of students
char
7th
myName
int
float
double
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
int number;
float rate;
int variable_count;
int $main;
for loop
while loop
do-while loop
None of the above
conio.h
string.h
math.h
graphic.h
The dog barked.
The cat chased the mouse.
The dog barked because it was hungry.
The cat chased the mouse, and the mouse ran away.
return
static
new
volatile
arr[4]
arr(5)
arr[5]
arr[6]
Stack
CISC
RISC
Parallel
while(1)
for(;;)
do{ } while(1);
All of the above
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Binary operator
Unary operator
Ternary operator
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
was doing
did
will do
have done
4
5
6
Undefined
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
What will be the output of the following code?
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
0
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
array
What is the output of the following code?
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
A
B
ADA
C++
Nominative form
Comparative form
Superlative form
Positive form
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
1
2
3
What will be the output of the following program?
int main() { int x=5; printf(“%d %d %d”,x,x<<2,x>>2); }
1 20 5
5 1 20
5 20 1
20 1 5
void
endl
switch
In the following nested conditional statements, which branch will execute?
int x = 4;if (x > 2) { if (x < 5) { printf("x is between 2 and 5"); }} else { printf("x is 2 or less");}
x is between 2 and 5
x is 2 or less
Error
No output
Calm
Rough
Hard
Still
long double
far double
signed short
unsigned short
long
-5
+5
break
continue
final
constant
const
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
30
32
36
40
Book
Cat
Happiness
Table
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
-1
Null
EOF
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
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
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.