Previous
Next

1. What is an unsigned integer?

 
 
 
 

2. Pick the odd statement?

 
 
 
 

3. What is the Output of following Code?

#include
void main()
{
double PI = 3.142 + 0.0001111;
printf(“%f “, PI);
}

 
 
 
 

4. Can we use a switch statement to switch on strings?

 
 
 
 

5. What is the Output of following Code?

#include
int main()
{
int a = 8;
printf(“%d , %d”, a << 1,a << 2); return 0; }

 
 
 
 

6. What is the Output of following Code?

#include
main()
{
int x=5 , y=3;
x++ ? –y : ++x ;
printf(“%d,%d”,–x , –y);
}

 
 
 
 

7. What is the Output of following Code?

#include<stdio.h>
char ch ;
float f ;
void main()
{
printf(“%d, %f”, ch, f);
}

 
 
 
 

8. Which of these selection statements test only for equality?

 
 
 
 

9. What will be the output of following code?

#include
main()
{
signed char ch = 120;
while(++ch)
{
printf(“%d\t”,ch);
}
}

 
 
 
 

10. What will be the output of following code?

#include
int main()
{
int i=4,j=5;
while(i+1?i–:j++);
printf(“%d”,i);
return 1;
}

 
 
 
 

Question 1 of 10

Previous
Next

Add Comment

Courses Enquiry Form