while (1)
{i++;}
for( ; ; );
while (true)
{false = 1;}
do
{y = x;}
while (x==0);
C. int true=0< false;
while (true)
{false = 1;}
True
False
Throw by value and catch by reference.
Throw by reference and catch by reference.
Throw by value and catch by value
Throw the pointer value and provide catch for teh pointer type.
Dennis Ritchie
Ken Thompson
Bill Gates
Peter Norton
**, * or /, + or -
**, *, /, +, -
**< /< *< +<-
/ or *, - or +
#include
int main(){
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
1
64
320
Compiler Error
a = 5
a += 5
a = b = c
a = b
True
False
True
False
True
False
/ + *
* / +
+ / *
* / + -
True
False
True
False
putchar(65)
putchar('x')
putchar("x")
')
double and chars
floats and doubles
ints and floats
ints and chars
91
88
90
89
True
False
True
False
main()
{
int a = 0;
for (; i = 0; i++)
printf("%d", a);
}
0
Nothing will be displayed
Infinite loop
None of the above
True
False
True
False
3.4e38 to 3.4e38
32767 to 32768
32768 to 32767
32668 to 32667
the question mark should be an equal sign
the first semicolon should be a colon
there are too many variables in the statement
the conditional operator is only used with apstrings
void main()
{
int a = 0;
while (a<=50) for(;;) if(++a % 50==0) break;
printf("a = %d", a);
}
a = 100
a = 50
compilation error
runtime error
True
False
pointers to strings
string to pointer
both
to go to the next iteration in a loop
come out of a loop
exit and return to the main function
restarts iterations from beginning of loop
void main()
{
float a;
int x = 10, y = 3; a = x / y;
printf("%f", a); }
3.999999
Error
3
3.000000
High Level and Procedural
Low Level and OOPS
Middle Level and Procedural
Machine Level and OOPS
Positive value
Zero
Negative value
None of these
True
False