Calm
Rough
Hard
Still
Nested structure
Recursive structure
Union structure
Inline structure
conio.h
string.h
math.h
graphic.h
What will be the output of the following code?
int main(){int x,y,z;x='1'-'0'; /* line-1 */y='a'-'b'; /* line-2 */z=x+y;printf("%d",z);}
0
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
//
/
#
/*
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
Logical Operator
Conditional Operator
typecast
Ternary
Read
Write
Execute
Copy
Return
GOTO
Switch
exit
arr[4]
arr(5)
arr[5]
arr[6]
What will be the output of following program?
int main() { for(int c=1;c<5;++c); printf(“%d”,c); }
1
5
6
12345
Infinitely
Variable
return
static
new
volatile
4
8
16
What will the following code print?
int x = 5;if (x = 0)printf("Zero");elseprintf("Not zero");
Zero
Not zero
Compilation error
Error
arr[2]
arr(2)
arr[3]
arr[1]
When the following piece of code is executed, what happens?
b = 3;a = b++;
a contains 3 and b contains 4
a contains 4 and b contains 4
a contains 4 and b contains 3
a contains 3 and b contains 3
Simple Inheritance
Hybrid Inheritance
Multiple Inheritances
Hierarchical Inheritance
throws
throw
threw
thrown
2
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
"r"
"w"
"rw"
"read"
switch
goto
go back
power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
A
B
ADA
C++
char
int
float
double
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
strlen()
sizeof()
length()
strlength()
Call by reference
Call by value
Call by reference by passing base address to a function
Both A and C
void
endl
calloc()
malloc()
allocate
New
Either True or False
is less than or is more than
is equal or less or more
All of the above
&&
| |
!
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
final
constant
const
What is the output of the following code?
int a = 5;printf("%d", a == 5);
Undefined
An Editor
A compiler
An operating system
None of these
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
try
catch
finally
What is the output of the following code:
int x = 5;
printf("%d", x++);
world
addition23
test-name
factorial
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
-4
-2.8
+2.8
+3
What will be the output of the following pseudo code ?
Integer aSet a =4do print a + 2 a = a-1while (a not equals 0)end while
6 6 6 6
6 5 4 3
6 7 8 9
6 8 10 12
do-while
if-else
for
while
no of students
7th
myName
break
continue
Constants
Keywords
Operators
Tokens
char > int > float
int > char > float
char < int < double
double > char > int
&
||