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
*
+
++
&&
void
endl
float
switch
real
int
double
Logical Operator
Conditional Operator
typecast
Ternary
To determine which operator evaluated first from left to right.
To determine the level of an operator in a program.
To determine how an expression involving more than one operator is evaluated.
To check the expression is valid or not.
getchar()
gets()
scanf()
cin.get()
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
-5
1
0
+5
| |
!
All of the above
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
Spaces
Digits
Underscores
Letters
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
Algorithm
Flow-Charts
Procedural
Object Oriented
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
include
char
signed short
unsigned short
long
Binary operator
Unary operator
Ternary operator
Input data
The program does not require any function.
Output data
The program must have at least one function.
world
addition23
test-name
factorial
_infomax
3infomax
infomax_ica
infomax123
<
=
>=
<=
10
20
None
long double
far double
“programming Trick”
“programming"
‘programming'
$ programming $
&
||
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Either True or False
is less than or is more than
is equal or less or more
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
infomax
info_max
info max
All of these
Compiler
Interpreter
Assembler
None of These
char > int > float
int > char > float
char < int < double
double > char > int
immutable
mutable
const
volatile
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
print()
input()
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
A number
A special symbol other than underscore
Both of the above
An alphabet
4
5
6
Undefined
Id_No
ID_NO
IdNo
Id No
int number;
float rate;
int variable_count;
int $main;
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.
A
B
ADA
C++
put together the file and functions that are required by the program
translate the instructions into a form suitable for execution by the program
load the executable code into the memory and execute them
allow the user to type the program
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
2.5
2
2.000000
2.500000
-4
-2.8
+2.8
+3
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.