Integer Values , Variables, and comments Flashcards

1
Q

it’s the system computers use for storing numbers and that they can perform any operation upon them.

A

binary system

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

that is, those which are devoid of the fractional part;

A

integers

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

numbers that contain the fractional part

A

double/float

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

the characteristic of a number that determines its kind, range, and application is called a…

A

Type

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

If an integer number is preceded by the 0 digit, it will be treated as an

A

octal value

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

his type of number should be preceded by a prefix written as 0x or 0X.

A

hexadecimal numbers

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

To calculate for octal value

A

8^0 right to left
multiply number
then add
ex. 0123
0×8^3
1×8^2
2×8^1
3×8^0
0+64+16+3 = 83 decimals

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

To calculate for haxadecimal

A

just like in octal but exclude the 0 and instead of 8 make it 16

ex.0x123 = 291 decimals

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

print an integer use.

A

%d

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

print a float use..

A

%f

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

What are variables in programming?

A

Variables are special “containers” used to store data that can be varied or changed

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

is a syntactic structure that binds a name, provided by the programmer, to a specific type offered by the “C” language.

A

Declaration

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