power of y to the x
power of x to the y
logarithm of x on the base y
Such function does not exist
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
What is the output of the following code?
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
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
Logical Operator
Conditional Operator
typecast
Ternary
immutable
mutable
const
volatile
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
char > int > float
int > char > float
char < int < double
double > char > int
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
Undefined
int arr[10][10];
int arr[10,10];
array int arr[10][10];
int arr{10}{10};
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
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
ceil(1.66)
floor(1.66)
roundup(1.66)
roundto(1.66)
What will be the output of the following code?
int x = 5;printf("%d", ++x);
4
5
6
7
do-while
if-else
for
while
switch
goto
go back
return
-1
1
Null
EOF
arr[4]
arr(5)
arr[5]
arr[6]
for loop
while loop
do-while loop
None of the above
break
continue
exit
Read
Write
Execute
Copy
no of students
char
7th
myName
&&
| |
!
All of the above
int number;
float rate;
int variable_count;
int $main;
A
B
ADA
C++
print()
scanf()
input()
Input data
The program does not require any function.
Output data
The program must have at least one function.
An array of characters
The object of some class
Same as other primitive data type
Linkedlist of characters
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
0
Depends on array size
float
real
int
double
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
It breaks out of both loops.
It only breaks out of the innermost loop.
It causes a compile-time error.
It stops the program.
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
Algorithm
Flow-Charts
Procedural
Object Oriented
What will the following code print?
int x = 5;if (x = 0)printf("Zero");elseprintf("Not zero");
Zero
Not zero
Compilation error
Error
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
Constants
Keywords
Operators
Tokens
int a = 5;printf("%d", a == 5);
Decimal
Binary
Octal
Hexadecimal
Id_No
ID_NO
IdNo
Id No
for (int i = 0; i < 10; i++)
for i = 0 to 10 step 1
for (i = 0; i < 10; i++)
for (i < 10; i++)
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.
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
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.