Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
2
4
1
Depends on the system
*
&
%
#
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
8
for loop
while loop
do-while loop
None of the above
double
float
char
array
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
signed short
unsigned short
long
int
strlen()
sizeof()
length()
strlength()
Please close the door.
It is drizzling outside.
Is the food ready?
He is not here yet.
Deriving a base class from derived class
Deriving a derived class from base class
Deriving a derived class from more than one base class
None of the mentioned
A number
A special symbol other than underscore
Both of the above
An alphabet
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
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
Error
No output
+
++
&&
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.
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
float, double
short int, double, long int
float, double, long double
double, long int, float
fclose()
closefile()
fileclose()
endfile()
5
6
Undefined
What will the following code print?
int x = 5;if (x = 0)printf("Zero");elseprintf("Not zero");
Zero
Not zero
A
B
ADA
C++
scanf()
getch()
getche()
gets()
arr[4]
arr(5)
arr[5]
arr[6]
LowerCase letters
UpperCase letters
CamelCase letters
None of these
What is the output of the following code?
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
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
Nominative form
Comparative form
Superlative form
Positive form
Calm
Rough
Hard
Still
Continue
break
goto
exit
print()
input()
All of the above
<
=
>=
<=
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
Nested structure
Recursive structure
Union structure
Inline structure
2.5
2.000000
2.500000
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
_infomax
3infomax
infomax_ica
infomax123
It returns the size of the variable in bits
It returns the size of the variable in bytes
It returns the size of the variable in kilobytes
It returns the number of elements in an array
across
over
under
from
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
12345
return
static
new
volatile
Consider the following code and How many bytes of memory will be allocated?
int *ptr = (int *)malloc(10 * sizeof(int));
10 bytes
20 bytes
80 bytes
40 bytes
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
2 bytes
4 bytes
8 bytes
1 byte
They played games at the picnic.
He takes his dog on a walk.
She watched a movie with her friend.
The sun is shining brightly