N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
double
float
char
array
What will be output if you will compile and execute the following c code?
int main(){ int a=5; float b; printf("%d",sizeof(++a+b)); printf(" %d",a); return 0;}
2 6
4 6
2 5
4 5
no of students
7th
myName
Binary operator
Unary operator
Ternary operator
All of the above
real
int
long double
far double
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
infomax
info_max
info max
All of these
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
final
constant
const
static
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
-4
-2.8
+2.8
+3
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
char > int > float
int > char > float
char < int < double
double > char > int
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
include
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
1
-1
0
2
3
4
Input data
The program does not require any function.
Output data
The program must have at least one function.
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
8
16
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
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.
int a = 5;printf("%d", a == 5);
5
Undefined
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
A number
A special symbol other than underscore
Both of the above
An alphabet
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
immutable
mutable
volatile
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.
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
What is the output of the following code:
int x = 5;
printf("%d", x++);
6
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
32
36
40
//
/
#
/*
signed short
unsigned short
long
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
_infomax
3infomax
infomax_ica
infomax123
An Editor
A compiler
An operating system
None of these
1return
return1
return
$return_1
2 bytes
4 bytes
8 bytes
1 byte
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
scanf()
getch()
getche()
gets()
<
=
>=
<=
print("Hello World");
echo("Hello World");
printf("Hello World");
*
+
++
&&
A
B
ADA
C++