Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
Logical Operator
Conditional Operator
typecast
Ternary
int
float
include
char
//
#
/* */
All of the above
4
5
6
Undefined
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.
-4
-2.8
+2.8
+3
_infomax
3infomax
infomax_ica
infomax123
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
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
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
2.5
2
2.000000
2.500000
Id_No
ID_NO
IdNo
Id No
scanf()
getch()
getche()
gets()
print("Hello World");
echo("Hello World");
printf("Hello World");
None of these
-5
1
0
+5
8
*
&
%
Spaces
Digits
Underscores
Letters
3
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
Apply styles for the web page
Define structure of the web page
Provide meaning to the sections of the web page
None of the above
+
++
&&
Compiler
Interpreter
Assembler
None of These
int num;
integer num;
num int;
num integer;
Rich Decorations
Faster download times.
Greater consistency in design.
No need to write HTML Tags
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
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.
< php >
< ? php ?>
?>
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
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
2 bytes
4 bytes
8 bytes
1 byte
no of students
7th
myName
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 code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
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.
Personal Hyper Pretext
Pretext Hypertext Processor
Hypertext Preprocessor
Preprocessor Home Page
signed short
unsigned short
long
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
0.5
15
Depends on the system
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
“programming Trick”
“programming"
‘programming'
$ programming $
/
/*
32
36
40
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
world
addition23
test-name
factorial
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
double
long double
far double
||
!