C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
Algorithm
Flow-Charts
Procedural
Object Oriented
double
float
char
array
Id_No
ID_NO
IdNo
Id No
&&
| |
!
All of the above
-5
1
0
+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
int
include
auto
case
main
default
2
3
4
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
8
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
int a = 5;printf("%d", a == 5);
Undefined
Depends on the system
long double
far double
A number
A special symbol other than underscore
Both of the above
An alphabet
2.5
2.000000
2.500000
Either True or False
is less than or is more than
is equal or less or more
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
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
signed short
unsigned short
long
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
A
B
ADA
C++
void
endl
switch
int num;
integer num;
num int;
num integer;
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
10
20
None
Logical Operator
Conditional Operator
typecast
Ternary
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
An Editor
A compiler
An operating system
None of these
compare two numeric values
combine two numeric values
compare two boolean values
None of the above
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
start()
printf()
main()
getch()
infomax
info_max
info max
All of these
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
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
What will be the output of the following code?
int x = 5;printf("%d", ++x);
6
7
Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
16
volatile
true
friend
export
-4
-2.8
+2.8
+3
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.
float, double
short int, double, long int
float, double, long double
double, long int, float
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
int number;
float rate;
int variable_count;
int $main;
scanf()
getche()
gets()
2 bytes
4 bytes
8 bytes
1 byte
32
36
40