Addition, Division, Modulus
Addition, Modulus, Division
Multiplication, Substration, Modulus
Modulus, Multiplication, Substration
no of students
char
7th
myName
1return
return1
return
$return_1
2
4
1
Depends on the system
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.
results in a syntax error
output Infomax7
outputs garbage
outputs infomax and terminates abruptly
Id_No
ID_NO
IdNo
Id No
Personal Hyper Pretext
Pretext Hypertext Processor
Hypertext Preprocessor
Preprocessor Home Page
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);}
0
Error because of incorrect line-1 only.
Error because of incorrect line-1 and line-2.
Error because of incorrect line-2 only.
-1
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
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.
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.
int
float
include
int a = 5;printf("%d", a == 5);
5
Undefined
final
constant
const
static
printf("\n");
echo '\n';
printf('\n');
printf('\\n')
start()
printf()
main()
getch()
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
Algorithm
Flow-Charts
Procedural
Object Oriented
world
addition23
test-name
factorial
Rich Decorations
Faster download times.
Greater consistency in design.
No need to write HTML Tags
immutable
mutable
volatile
main function arguments
main arguments
Command-Line arguments
Parameterized arguments
A
B
ADA
C++
char > int > float
int > char > float
char < int < double
double > char > int
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
8
16
< php >
< ? php ?>
?>
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
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
auto
case
main
default
float_int, keyword, A1
ANSI, ascii, cpu
valid, variable, name
None of the above
Logical Operator
Conditional Operator
typecast
Ternary
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
30
32
36
40
2.5
2.000000
2.500000
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
Martin Richards
Dennis Ritchie
Ken Thompson
Herman Hellorith
N=m=0
Value+=10
mySize=x<y?9:11
Value=+=10
Bjarne Stroustrup
James A. Gosling
Dr. E.F. Codd
Binary operator
Unary operator
Ternary operator
All of the above
LowerCase letters
UpperCase letters
CamelCase letters
None of these
&&
| |
!
double
array
AT & Ts Bell Laboratories of USA in 1972
AT & Ts Bell Laboratories of USA in 1970
Sun Microsystems in 1973
Cambridge University in 1972
int num;
integer num;
num int;
num integer;
void
endl
switch
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
C compiler supports octal integer constant.
C compiler supports hexadecimal integer constant.
C compiler supports binary integer constant.
C compiler supports decimal integer constant.