//
/
#
/*
no of students
char
7th
myName
world
addition23
test-name
factorial
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
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.
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
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
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
Algorithm
Flow-Charts
Procedural
Object Oriented
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
Decimal
Binary
Octal
Hexadecimal
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
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
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
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 a Set a =4 do print a + 2 a = a-1 while (a not equals 0) end while
6 6 6 6
6 5 4 3
6 7 8 9
6 8 10 12
What is the output of the following code:
int x = 5;
printf("%d", x++);
4
5
6
Undefined
1
2
8
*
&
%