ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
2
4
1
Depends on the system
break
continue
return
goto
Binary operator
Unary operator
Ternary operator
All of the above
float, double
short int, double, long int
float, double, long double
double, long int, float
Because it was raining
The dog barked
While I was sleeping
Since she is tired
compare two numeric values
combine two numeric values
compare two boolean values
None of the above
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
malloc()
free()
calloc()
realloc()
To exit the function and return control to the calling function
To pause the function temporarily
To call the function again
To exit the program
char
int
float
double
include
final
constant
const
static
What is the output of the following code?
int arr[5] = {1, 2, 3, 4, 5};printf("%d", arr[3]);
3
print()
scanf()
input()
What will the following code print?
int x = 5;if (x = 0)printf("Zero");elseprintf("Not zero");
Zero
Not zero
Compilation error
Error
do-while
if-else
for
while
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
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
void
endl
switch
fclose()
closefile()
fileclose()
endfile()
int x = 5;if (x > 3) { printf("Greater than 3"); } else { printf("Not greater than 3"); }
Greater than 3
Not Greater than 3
No Output
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
2.5
2.000000
2.500000
try
catch
finally
None of these
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.
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
start()
printf()
main()
getch()
arr[4]
arr(5)
arr[5]
arr[6]
System programming language
General purpose language
Data processing language
Adjective
Adverbs
Noun
Verb
exit(0)
abort()
All of the mentioned
Read
Write
Execute
Copy
auto
case
main
default
_infomax
3infomax
infomax_ica
infomax123
Please close the door.
It is drizzling outside.
Is the food ready?
He is not here yet.
LowerCase letters
UpperCase letters
CamelCase letters
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.
8
16
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
In the following nested conditional statements, which branch will execute?
int x = 4;if (x > 2) { if (x < 5) { printf("x is between 2 and 5"); }} else { printf("x is 2 or less");}
x is between 2 and 5
x is 2 or less
No output
immutable
mutable
volatile
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
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
Raj says, “He wants ice cream”
Raj had said, “He wants an ice-cream”
Raj will say, “I want an ice-cream”
Raj said, “I want an ice-cream”
Algorithm
Flow-Charts
Procedural
Object Oriented
signed short
unsigned short
long
Spaces
Digits
Underscores
Letters
was doing
did
will do
have done
stdio.h
conio.h
stdlib.h