LowerCase letters
UpperCase letters
CamelCase letters
None of these
Compilation error
Program will terminate with an error
Undefined behavior
Array index will wrap around
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
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.
//
/
#
/*
2
4
1
Depends on the system
strlen()
sizeof()
length()
strlength()
2 bytes
4 bytes
8 bytes
1 byte
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.
_infomax
3infomax
infomax_ica
infomax123
char
int
float
double
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
5
6
12345
3
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
8
float, double
short int, double, long int
float, double, long double
double, long int, float
16
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
0.5
15
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
Decimal
Binary
Octal
Hexadecimal
-4
-2.8
+2.8
+3
Nested structure
Recursive structure
Union structure
Inline structure
10
20
0
None
immutable
mutable
const
volatile
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
Algorithm
Flow-Charts
Procedural
Object Oriented
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
eagerly
quickly
slowly
loudly
true
friend
export
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
Compiler
Interpreter
Assembler
None of These
System programming language
General purpose language
Data processing language
None of the above
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
-5
+5
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
Bjarne Stroustrup
James A. Gosling
Dr. E.F. Codd
for loop
while loop
do-while loop
throws
throw
threw
thrown
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
break
exit(0)
abort()
All of the mentioned
int a = 5;printf("%d", a == 5);
Undefined
30
32
36
40
A
B
ADA
C++
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
char > int > float
int > char > float
char < int < double
double > char > int
What will be the output of the following code?
int x = 5;printf("%d", ++x);
7
Because it was raining
The dog barked
While I was sleeping
Since she is tired
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
real