-4
-2.8
+2.8
+3
exit
break
continue
return
immutable
mutable
const
volatile
Nominative form
Comparative form
Superlative form
Positive form
&&
| |
!
All of the above
0
1
-1
Depends on array size
while(1)
for(;;)
do{ } while(1);
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
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
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
What will the following code print?
int x = 5;if (x = 0)printf("Zero");elseprintf("Not zero");
Zero
Not zero
Error
static
new
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Calm
Rough
Hard
Still
_infomax
3infomax
infomax_ica
infomax123
Simple Inheritance
Hybrid Inheritance
Multiple Inheritances
Hierarchical Inheritance
for (i=1; i < 20; i++) printf ("k");
for (i=1; i = 20; i++) printf ("k");
for (i=0; i < 20; i++) printf ("k");
for (i=0; i <= 20; i++) printf ("k");
Constants
Keywords
Operators
Tokens
auto
case
main
default
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
for loop
while loop
do-while loop
None of the above
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
An Editor
A compiler
An operating system
None of these
&
||
float, double
short int, double, long int
float, double, long double
double, long int, float
stdio.h
conio.h
stdlib.h
4
8
16
//
/
#
/*
float
double
long double
far double
do-while
if-else
for
while
What is the output of the following code:
int x = 5;
printf("%d", x++);
5
6
Undefined
was doing
did
will do
have done
“programming Trick”
“programming"
‘programming'
$ programming $
What is the output of the following code?
int a = 5, b = 10;if (a < b)printf("a is less than b");elseprintf("a is greater than or equal to b");
a is greater than or equal to b
a is less than b
Compiler Error
Algorithm
Flow-Charts
Procedural
Object Oriented
int func();
func() int;
function int func();
declare int func();
2
Depends on the system
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
Continue
goto
Decimal
Binary
Octal
Hexadecimal
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
12345
print("Hello World");
echo("Hello World");
printf("Hello World");
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
A
B
ADA
C++
The dog barked.
The cat chased the mouse.
The dog barked because it was hungry.
The cat chased the mouse, and the mouse ran away.
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
start()
printf()
main()
getch()
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration