Easier to maintain and update
Greater consistency in design
More formatting options.
All of the above
4
5
6
Undefined
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
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
What will be the output of the following code segment?
int x = 24, y = 39, z = 45;z = x + y;y = z - y;x = z - y;printf("\n%d %d %d", x, y, z);
24 39 63
39 24 63
24 39 45
39 24 45
float
real
int
double
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.
CSS
jQuery
JavaScript
PHP
volatile
true
friend
export
What is the output of the following code:
int x = 5;
printf("%d", x++);
Structural
Presentational
Markup
Behavioral
Bjarne Stroustrup
James A. Gosling
Dennis Ritchie
Dr. E.F. Codd
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Notepad
Notepad++
Adobe Dreamweaver
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
Apache
IIS
Algorithm
Flow-Charts
Procedural
Object Oriented
world
addition23
test-name
factorial
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
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
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.
LowerCase letters
UpperCase letters
CamelCase letters
None of these
char > int > float
int > char > float
char < int < double
double > char > int
Some selectors can lead to cross-browser issues
Cannot request a webpage through CSS
Parent Selector tag is always available
Cannot always assure compatibility with every browser
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
signed short
unsigned short
long
auto
case
main
default
&&
| |
!
&
||
//
/
#
/*
<
=
>=
<=
What is the output of this statement
printf("%d", (a++));
The value of (a + 1)
Error message
Garbage
The current value of a
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
*
%
Decimal
Binary
Octal
Hexadecimal
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
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
8
16
1
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
-1
0
2
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
print()
scanf()
input()
Depends on the system
char
array
void
endl
switch
What will be the output of the following code?
int x = 5;printf("%d", ++x);
7
PHP 4
PHP 5
PHP 5.3
PHP 6
no of students
7th
myName
A
B
ADA
C++
printf("\n");
echo '\n';
printf('\n');
printf('\\n')