c Flashcards

1
Q

Which level language is C

A

Middle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

C is available in which OS?

A

DOS, Windows, Unix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which symbol is used for pre-processor statement?

A

#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Float is which type of datatype?

A

Scalar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is keywords, variables, and constants in C?

A

Tokens

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which is the valid range of “int” data type?

A

-32768 to +32767

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which symbol is used to terminate a statement?

A

;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which escape sequence character is a line terminator?

A

\n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which escape sequence character is used to beep from speaker?

A

\a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Character constants should be enclosed between

A

Single Quotes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

String constants should be enclosed between

A

Double Quotes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The maximum length of a variable in C is

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The maximum size of ‘float’ variable is

A

4 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

The maximum size of ‘double’ variable is

A

8 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A declaration of float a; double b; occupies ________ of memory.

A

12 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A declaration float a, b; occupies ___ of memory

A

8 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The size of a string variable is

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

a+=10 is an example of__________ assignment statement?

A

compounded assignment statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

The operator && is used for

A

Logical comparison

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The operator & is used for

A

Bitwise AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

The equality operator is represented by

A

==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Operator’s precedence determines which operator is

A

Evaluated first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The bitwise AND is used for

24
Q

The operator &laquo_space;is used for

25
The description, associatively of () operator is
Parentheses (function call), Left-to-Right
26
The description, associatively of [] operator is
Array Subscript (Square Brackets), Left-to-Right
27
The description, associatively of . operator is
Dot Operator, Left-to-Right
28
The description, associatively of -> operator is
Structure Pointer Operator, Left-to-Right
29
The description, associatively of ++ , — operator is
Postfix increment, decrement, Left-to-Right
30
The description, associatively of ++ / — operator is
Prefix increment, decrement, Right-to-Left
31
The description, associatively of + / – operator is
Unary plus, minus, Right-to-Left
32
32
The description, associatively of ! , ~ operator is
Logical NOT, Bitwise complement, Right-to-Left
33
34
Which operator has LOWEST priority
||
35
Which operator has the HIGHEST precedence?
+
36
Which operator has HIGHEST priority
++
37
Integer Division results in
Truncating the fractional part
38
The typecast operator is
(data type)
39
Explicit type of conversion is also called
casting
40
Which is a Ternary Operator?
?:
41
The operator + in a+=4 means
a=a+4
42
p++ executes faster than p=p+1 because
p++ is a single instruction
43
44
45
46
47
48
49
50
51
52
53
54
55
56