Assignment Relational Arithmetic
Arithmetic Relational Assignment
Relational Arithmetic Assignment
Assignment Arithmetic Relational
int number;
float rate;
int variable_count;
int $main;
Style sheets allow content to be optimized for more than one type of device.
CSS can store web applications locally With the help of an offline cache
Using CSS, we can view online website. In cache also ensures faster loading and better overall performance of the website.
All of the above.
1
-1
0
2
&&
| |
!
All of the above
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.
signed short
unsigned short
long
int
*
&
%
#
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
Easier to maintain and update
Greater consistency in design
More formatting options.
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
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.
What will be the output of the following code?
int a = 10, b = 20;printf("%d", a + b);
30
1020
10+20
Compiler error
4
Depends on the system
//
/
/*
< php >
< ? php ?>
?>
LowerCase letters
UpperCase letters
CamelCase letters
None of these
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
float, double
short int, double, long int
float, double, long double
double, long int, float
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
/* */
auto
case
main
default
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
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
PHP 4
PHP 5
PHP 5.3
PHP 6
Easier to maintain and update.
Greater consistency in design.
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
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
no of students
char
7th
myName
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.
float
double
infomax
info_max
info max
All of these
Compiler
Interpreter
Assembler
None of These
Logical Operator
Conditional Operator
typecast
Ternary
A
B
ADA
C++
Either True or False
is less than or is more than
is equal or less or more
System programming language
General purpose language
Data processing language
None of the above
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
int num;
integer num;
num int;
num integer;
real
print("Hello World");
echo("Hello World");
printf("Hello World");
What is the output of the following code:
int x = 5;
printf("%d", x++);
5
6
Undefined
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
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
final
constant
const
static
-4
-2.8
+2.8
+3
Creating Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
2 bytes
4 bytes
8 bytes
1 byte
int x = 5;printf("%d", ++x);
7