&&
| |
!
All of the above
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
volatile
true
friend
export
.html
.xml
.php
.ph
1
2
4
8
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
What is the output of the following code?
int a = 10, b = 5;printf("%d", a / b);
5
0.5
15
Decimal
Binary
Octal
Hexadecimal
Adobe Dreamweaver
Apache
IIS
float, double
short int, double, long int
float, double, long double
double, long int, float
Creating Style Sheets
Cascading Style Sheets
Computer Style Sheets
Colorful Style Sheets
Depends on the system
//
#
/* */
16
Easier to maintain and update.
Greater consistency in design.
More formatting options.
*
&
%
Binary operator
Unary operator
Ternary operator
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.
Id_No
ID_NO
IdNo
Id No
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
scanf()
getch()
getche()
gets()
It is used to define global variables
It is used to define a macro
It is used to include standard or user-defined header files in the program
It is used to include comments in the code
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
int num;
integer num;
num int;
num integer;
A
B
ADA
C++
||
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
2 bytes
4 bytes
8 bytes
1 byte
final
constant
const
static
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
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.
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
print()
input()
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
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.
LowerCase letters
UpperCase letters
CamelCase letters
None of these
link, load, code, compile and execute
code, compile, link, execute and load
code, compile, link, load and execute
compile, code, link, load and execute
auto
case
main
default
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
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
float
double
long double
far double
Easier to maintain and update
Greater consistency in design
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.
int number;
float rate;
int variable_count;
int $main;
+
++
2.5
2.000000
2.500000
<
=
>=
<=