int number;
float rate;
int variable_count;
int $main;
4
8
16
1
10
20
0
None
double
float
char
array
5
6
Undefined
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
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
Compiler
Interpreter
Assembler
None of These
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
break
exit(0)
abort()
break stops the loop, continue skips the rest of the iteration
Both stop the loop
break skips to the next iteration, continue exits the loop
Both skip to the next iteration
int a(char *s)
void b(int a[], int n)
float *c()
short d(long x)
for loop
while loop
do-while loop
None of the above
final
constant
const
static
System programming language
General purpose language
Data processing language
Infinitely
Variable
2.5
2
2.000000
2.500000
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.
LowerCase letters
UpperCase letters
CamelCase letters
None of these
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
getchar()
gets()
scanf()
cin.get()
do-while
if-else
for
while
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.
return
new
volatile
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
"r"
"w"
"rw"
"read"
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 number
A special symbol other than underscore
Both of the above
An alphabet
float, double
short int, double, long int
float, double, long double
double, long int, float
int num;
integer num;
num int;
num integer;
immutable
mutable
Using malloc() without free()
Using calloc() without realloc()
Using pointers incorrectly
real
int
Algorithm
Flow-Charts
Procedural
Object Oriented
print()
input()
All of the above
conio.h
string.h
math.h
graphic.h
What is the final value of x when the code is executed?
int x; for(x=0; x<10; x++) {}
9
no of students
7th
myName
none of the above
Read
Write
Execute
Copy
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
<
=
>=
<=
&
&&
||
!
3
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
world
addition23
test-name
factorial
ctype.h
stdio.h