NEW
Font size
WorksheetsFINAL ROUND
Total questions: 10
Worksheet time: 5mins
Find the output in following code
int main ()
{
int a,b ;
a= b= 4 ;
b =a++;
Printf ( " %d %d %d %d", a++, --b, ++a, b--);
}
5 3 73
5 4 5 3
6 2 6 4
Syntax Error
C is a ____________ programming language
Object oriented Programming
Procedure oriented Programming
Structured programming language
Structure and Procedure Oriented Programming
_______________to be included to use standard I/O functions : prinf(),scanf()
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<math.h>
All statements should be written in lower case letters. Upper case letters are only used for symbolic constants.
True
False
Blank spaces can be used while declaring a variable, keyword, constant and function.
True
False
Constants are classified as____________
Literal constants
Qualified constants
Symbolic constants
All
A variable is an entity whose value ____________ during the execution of a program
can change
cannot change
Find Error/ output in following code
int main ()
{
int x= 0, y= 0;
if ( x > 0)
if ( y >0)
printf ("True");
else
printf ("False");
}
No output
True
False
Error because of dangling else problem
int x = 10;
int main()
{
int x = 0;
printf("%d",x);
return 0;
}
10
0
compile error
undefined
what is the Output:
void main()
{
int a=3,b=6;
if(a>b)
printf("%d",a);
else
printf("%d",b);
}
3
6
Compilation Error
Run Time Error
