-4
-2.8
+2.8
+3
conio.h
string.h
math.h
graphic.h
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
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.
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
2.5
2
2.000000
2.500000
0
Infinitely
1
Variable
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.
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
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
An Editor
A compiler
An operating system
None of these
What is the output of the following code:
int x = 5;
printf("%d", x++);
4
5
6
Undefined
signed short
unsigned short
long
int
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.
-1
Null
EOF
start()
printf()
main()
getch()
pair of parenthesis
semicolon
braces
colon
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
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
void
endl
float
switch
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
for loop
while loop
do-while loop
None of the above
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
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
//
/
#
/*
double
char
array
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
include
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
A
B
ADA
C++
volatile
true
friend
export
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
3
*
&
%
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
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
12345
_infomax
3infomax
infomax_ica
infomax123
auto
case
main
default
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
compare two numeric values
combine two numeric values
compare two boolean values
2 bytes
4 bytes
8 bytes
1 byte
20
None
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
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
int func();
func() int;
function int func();
declare int func();
Stack
CISC
RISC
Parallel