Programming Flashcards

1
Q

What is the number system and what is it used for?

A

Number system is system used to represent numbers and characters in computer-readable format

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

What are some types of number systems and their base?

A

decimal (base 10), binary (base 2), octal (base 8), and hexadecimal (base 16)

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

What is the binary notation of decimal number 1?

A

0001

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

What is the binary notation of decimal number 2?

A

0010

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

What is the binary notation of decimal number 3?

A

0011

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

What is the binary notation of decimal number 4?

A

0100

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

What is the binary notation of decimal number 5?

A

0101

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

What is the binary notation of decimal number 6?

A

0110

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

What is the binary notation of decimal number 7?

A

0111

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

What is the binary notation of decimal number 8?

A

1000

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

What is the binary notation of decimal number 9?

A

1001

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

What is the binary notation of decimal number 10?

A

1010

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

How do you convert binary code into a decimal number?

A

Input the binary code

Represent each bit of the binary code with the power of 2

Find the power values of each bit

Add the power values to obtain the decimal number

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

What is the method to convert a decimal number into binary code?

A

Input the decimal number

Divide the number by 2 and store the remainder

Repeat step 2 until the number cannot be divided

Display remainders in reverse order

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