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

A

Masking

24
Q

The operator &laquo_space;is used for

A
25
Q

The description, associatively of () operator is

A

Parentheses (function call), Left-to-Right

26
Q

The description, associatively of [] operator is

A

Array Subscript (Square Brackets), Left-to-Right

27
Q

The description, associatively of . operator is

A

Dot Operator, Left-to-Right

28
Q

The description, associatively of -> operator is

A

Structure Pointer Operator, Left-to-Right

29
Q

The description, associatively of ++ , — operator is

A

Postfix increment, decrement, Left-to-Right

30
Q

The description, associatively of ++ / — operator is

A

Prefix increment, decrement, Right-to-Left

31
Q

The description, associatively of + / – operator is

A

Unary plus, minus, Right-to-Left

32
Q
A
32
Q

The description, associatively of ! , ~ operator is

A

Logical NOT, Bitwise complement, Right-to-Left

33
Q
A
34
Q

Which operator has LOWEST priority

A

||

35
Q

Which operator has the HIGHEST precedence?

A

+

36
Q

Which operator has HIGHEST priority

A

++

37
Q

Integer Division results in

A

Truncating the fractional part

38
Q

The typecast operator is

A

(data type)

39
Q

Explicit type of conversion is also called

A

casting

40
Q

Which is a Ternary Operator?

A

?:

41
Q

The operator + in a+=4 means

A

a=a+4

42
Q

p++ executes faster than p=p+1 because

A

p++ is a single instruction

43
Q
A
44
Q
A
45
Q
A
46
Q
A
47
Q
A
48
Q
A
49
Q
A
50
Q
A
51
Q
A
52
Q
A
53
Q
A
54
Q
A
55
Q
A
56
Q
A