_infomax
3infomax
infomax_ica
infomax123
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
volatile
true
friend
export
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
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
-5
1
0
+5
A
B
ADA
C++
What is the output of the following code:
int x = 5;
printf("%d", x++);
4
5
6
Undefined
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
-4
-2.8
+2.8
+3
int num;
integer num;
num int;
num integer;
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
&
&&
||
!
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
float
double
long double
far double
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.
scanf()
getch()
getche()
gets()
What is the output of the following code?
int a = 5;printf("%d", a == 5);
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
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
Constants
Keywords
Operators
Tokens
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
float, double
short int, double, long int
float, double, long double
double, long int, float
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Both can occur multiple times, but a declaration must occur first.
A definition occurs once, but a declaration may occur many times.
Both can occur multiple times, but a definition must occur first.
A declaration occurs once, but a definition may occur many times.
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.
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
int
include
char
immutable
mutable
const
*
%
#
2
8
char > int > float
int > char > float
char < int < double
double > char > int
Binary operator
Unary operator
Ternary operator
All of the above
1return
return1
return
$return_1
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
2 bytes
4 bytes
8 bytes
1 byte
infomax
info_max
info max
All of these
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
world
addition23
test-name
factorial
A number
A special symbol other than underscore
Both of the above
An alphabet
Input data
The program does not require any function.
Output data
The program must have at least one function.
//
/
/*
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
“programming Trick”
“programming"
‘programming'
$ programming $
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