2
4
1
Depends on the system
int num;
integer num;
num int;
num integer;
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
5
6
Undefined
final
constant
const
static
getchar()
gets()
scanf()
cin.get()
10
20
0
None
&&
| |
!
All of the above
2 bytes
4 bytes
8 bytes
1 byte
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
What will be the output of the following code?
int a = 10, b = 20; printf("%d", a + b);
30
1020
10+20
Compiler error
What is the output of the following code?
int a = 5; printf("%d", a == 5);
*
+
++
int x = 5; printf("%d", ++x);
7
int a = 10, b = 5; printf("%d", a / b);
0.5
15
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
They execute programs faster than compilers
They translate the entire program at once
They translate and execute code line by line
They are not used in modern programming
int
float
include
char
8
16