4
5
6
Undefined
_infomax
3infomax
infomax_ica
infomax123
Input data
The program does not require any function.
Output data
The program must have at least one function.
Binary operator
Unary operator
Ternary operator
All of the above
signed short
unsigned short
long
int
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
What is the output of the following code:
int x = 5;
printf("%d", x++);
no of students
char
7th
myName
Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
Algorithm
Flow-Charts
Procedural
Object Oriented
float, double
short int, double, long int
float, double, long double
double, long int, float
int number;
float rate;
int variable_count;
int $main;
1
2
8
* / % + - =
= * / % + -
/ * % - + =
* % / - + =
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
1return
return1
return
$return_1
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
A
B
ADA
C++
-1
0
double
float
array
int num;
integer num;
num int;
num integer;
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
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
start()
printf()
main()
getch()
auto
case
main
default
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
-5
+5
&
&&
||
!
30
32
36
40
getchar()
gets()
scanf()
cin.get()
What will be the output of the following program?
int main() { int x=5; printf(“%d %d %d”,x,x<<2,x>>2); }
1 20 5
5 1 20
5 20 1
20 1 5
Spaces
Digits
Underscores
Letters
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
-4
-2.8
+2.8
+3
LowerCase letters
UpperCase letters
CamelCase letters
*
%
#
Depends on the system
System programming language
General purpose language
Data processing language
None of the above
+
++
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
//
/
/*
Keywords can be used as variable names
Variable names can contain digits
Variable names do not contain blank spaces
Capital letters can be used in variable names.
16
print()
input()
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
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
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
Bjarne Stroustrup
James A. Gosling
Dr. E.F. Codd