ctype.h
stdio.h
conio.h
math.h
1
-1
0
2
Nested structure
Recursive structure
Union structure
Inline structure
malloc()
free()
calloc()
realloc()
int number;
float rate;
int variable_count;
int $main;
int
float
include
char
4
5
6
Undefined
arr[4]
arr(5)
arr[5]
arr[6]
Depends on array size
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
30
32
36
40
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
1020
10+20
Compiler error
return
static
new
volatile
double
for loop
while loop
do-while loop
None of the above
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
It exits the current loop and continues with the next iteration
It terminates the current loop and transfers control to the next statement after the loop
It skips the current iteration and moves to the next iteration
It repeats the current iteration
break
continue
exit
Id_No
ID_NO
IdNo
Id No
//
/
#
/*
“programming Trick”
“programming"
‘programming'
$ programming $
8
16
int a = 5;printf("%d", a == 5);
no of students
7th
myName
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
start()
printf()
main()
getch()
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
Spaces
Digits
Underscores
Letters
Depends on the system
pair of parenthesis
semicolon
braces
colon
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
10
9
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
Using malloc() without free()
Using calloc() without realloc()
Using pointers incorrectly
Logical Operator
Conditional Operator
typecast
Ternary
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
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
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
Moves the file pointer to a specific location
Reads a file
Writes to a file
Closes a file
<
=
>=
<=
Stack
CISC
RISC
Parallel
1return
return1
$return_1
&&
| |
!
All of the above
LowerCase letters
UpperCase letters
CamelCase letters
None of these
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
3
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
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
char > int > float
int > char > float
char < int < double
double > char > int
arr[2]
arr(2)
arr[3]
arr[1]