no of students
char
7th
myName
30
32
36
40
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
1return
return1
return
$return_1
int
float
include
Spaces
Digits
Underscores
Letters
void
endl
switch
int num;
integer num;
num int;
num integer;
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
“programming Trick”
“programming"
‘programming'
$ programming $
4
8
16
1
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
10
20
0
None
An Editor
A compiler
An operating system
None of these
2.5
2
2.000000
2.500000
Logical Operator
Conditional Operator
typecast
Ternary
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
double
array
volatile
true
friend
export
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
print("Hello World");
echo("Hello World");
printf("Hello World");
LowerCase letters
UpperCase letters
CamelCase letters
print()
scanf()
input()
All of the above
-5
+5
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
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
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
*
&
%
#
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
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);}
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
A number
A special symbol other than underscore
Both of the above
An alphabet
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
Algorithm
Flow-Charts
Procedural
Object Oriented
immutable
mutable
const
signed short
unsigned short
long
Constants
Keywords
Operators
Tokens
What is the output of the following code:
int x = 5;
printf("%d", x++);
6
Undefined
-4
-2.8
+2.8
+3
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
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
Binary operator
Unary operator
Ternary operator
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
Depends on the system
3
int number;
float rate;
int variable_count;
int $main;
infomax
info_max
info max
All of these
float, double
short int, double, long int
float, double, long double
double, long int, float
long double
far double