Sie sind auf Seite 1von 7

1 The purpose of main function is

to stop program execution


to stop algorithm
to start algorithm
to start program execution
Ans:to start program execution
2 What is the valid identifier in the following?
1fdasgf
@hgd12
fahs%
q1234
Ans:q1234
3 What is range of char data value?
-64 to 64
-128 to 127
0 to 255
-127 to 128
Ans:-128 to 127
4 What symbol is used to represent the connector
parellogram
rectangle with rounded end
circle
rectangle
Ans:circle
5 The ANSI C standard recognizes maximum length of a variable up to
8 characters
unlimited characters
31 characters
15 characters
Ans:31 characters
6 Which of the following is an incorrect variable name.
else
name
string
age
Ans:else
7 What is the size of long double variable
10 bytes
8 bytes
4 bytes
16 bytes
Ans:10 bytes
8 Variables are initialized in C, using
:=
>
=
==
Ans:=
9 If a is float variable, a=5/2 will return a value
2.5
2
2.0
3
Ans:2.0
10 In the following, which is bitwise operator?
>
*
|
<
Ans:|
11 Representing various steps in a flow diagram is called as
diagram
flow chart
program
paint
Ans:flow chart
12 C is a
Machine language
High level language
High level language with some low level features
Low level language
Ans:High level language with some low level features
13 What are the smallest individual units in a program
Structures
Functions
record
Tokens
Ans:Tokens
14 Which of the following is an empty data type.
Integer
float
character
void
Ans:void
15 The operator ++ is called as operator
special increment
increment
double addition
decrement
Ans:increment
16 Which of the following is not a relational operator
<=
&&
!=
>
Ans:& &
17 Pseudo code is
language independent code
refined version of program
code developed using the syntax of a specific language
outcome of compilation process
Ans:language independent code
18 A block is enclosed with pair of
()
{}
<>
[]
Ans:{ }
19 Which of the following cannot be used as an identifier.
alphabet followed by digit
alphabet
Keywords
Library function name
Ans:Keywords
20 Size of (double) returns———
4
8
10
2
Ans:8
21 Every executable C program must contain a
printf function
scanf, printf and main functions
main function
scanf function
Ans:main function
22 The individual units of a C program is known as
records
tokens
units
program
Ans:tokens
23 The keyword is used to define enumerated data type
array
enum
typedef
struct
Ans:enum
24 How many variables of the same type can be initialized at a time with the same value
Three
One
Two
any number of variables
Ans:any number of variables
25 The operator with lowest priority in the list && , + , | | , < is
+
||
&&
<
Ans:| |
26 What type of errors are checked during compilation
divide by zero error
logical errors
run - time errors
syntax errors
Ans:syntax errors
27 Which of the following is a valid numeric constant
20,000
15 750
$1000
65432
Ans:65432
28 Which of the following is the assignment operator in C
!=
==
=
=
Ans:=
29 The equality relational operator is represent by
:=
==
.EQ.
=
Ans:==
30 The process of removing a bug is known as
running
executing
debugging
compilation
Ans:debugging
31 How many keywords are there in C
34
30
31
32
Ans:32
32 The declaration of a variable should be done
before using it
after using it
at the time of using
only in the calling program
Ans:before using it
33 Which of the following is allowed in a C arithmetic statement
{}
[]
//
()
Ans:( )
34 Identify the relational operator in C
||
&&
!
<
Ans: <
35 The symbol for right shift operator is
−>
>
<=
>>
Ans:>>
36 What symbol is used to represent input/output operations in a flow chart.
Rectangles
Parellograms
circles
Rectangle with rounded end
Ans:Parellograms
37 Which of the following is not a key word of C?
main
void
const
sizeof
Ans:main