NEW
Font size
WorksheetsC module 1 second quiz
Total questions: 25
Worksheet time: 8mins
............ is a preprocessor directive in C
$
@
#
%
Comments can be included in C program by ...........
//
##
**
>>
A constant in C can be defined using ................
#define
#include
%define
%include
Mode specifier for int datatype is ........
%d
%c
%f
%s
…….. is a preprocessor directive in C
$
#
%
@
Symbol of assignment operator?
=
==
!=
#=
Symbol of equal to operator in C
==
!=
=
>
output function in C is ........................
printf()
scanf()
main()
clrscr()
Input function in C is ...................
printf()
scanf()
main()
clrscr()
symbol of conditional operator?
@?
?:
?;
?<
int a,b;
In this statement, how many variables are declared?
1
2
3
4
12xyz is a valid variable in C.True or false
True
False
int is a valid variable in C. True or false
True
False
_xyz is a valid variable in C. True or false
True
False
float a,b;
In the above statement , float is ..........
datatype
variable
memory
operator
..................... is a named memory location
keyword
token
variable
operator
The code used to create a variable of character type
int a;
float a;
char a;
i=4;
printf("%d",++i);
what is the output?
3
4
5
6
i=4;
printf("%d",i++);
what is the output?
3
4
5
6
i++ is
pre increment operator
post increment operator
--i is .......
Pre decrement operator
Post decrement operator
#include<stdio.h>
#include<conio.h>
void main()
{
int s,a,b;
a=4;
b=5;
s=a+b;
printf("s is %d",s);
getch();
}
What is the output
s=5
s=9
s is 5
s is 9
Syntax of using conditional operator
variable=(condition):True ans?False ans;
variable=(condition)?False ans: True ans;
variable=(condition)?True ans: False ans;
Process of casting one type in to another type
Type casting
Type screening
Type modification
Type qualifiers is also called .......
Type cast
Type operator
Type modifiers
