2
Universal Science Academy Subject: Computer Science Chapter no. Chapter no. 5 (2 nd Half) Student’s Name: ____________________________ Teacher’s Name: Rana Muhammad Irfan Time Allowed: __________ Test no: 2 Maximum Marks: 25 Part – I (Objective) Q. 1: Choose the best option: (5 x 1= 5) 1: 1’s complement of a binary number can be taken directly by: a: Replacing all 0’s to 1’s b: Subtraction c: Multiplication d: By committing –‘s to and 1’s 2: 1’s complement of 001001011is: a: 0110100 b: 110110100 c: 000110100 d: 110001000 3: In binary multiplication 1.0 = a: 1 b: -1 c: 0.1 d: None of these 4: In fixed point representation of fixed point representation position of what does not change? a: Decimal b: 0’s c: 0’s d: All of These 5: To represent a real number in a computer what is used to represent sign of the number? a: MSD b: LSD c: Sign (+ve, -ve) d: None of these Part – I (Short Questions) Q. 2: Give the short answer to the following: (6 x 2 =12) 1. What is a 1’s complement give an example? 2. What is a 2,s complement also give an example? 3. What is a fix point number representation? 4. Represent -54(10) using 8 bit 1’s complement 5. Subtract the following numbers. 110101011

9th-m

Embed Size (px)

DESCRIPTION

hg

Citation preview

Universal Science Academy

Universal Science Academy

Subject: Computer Science

Chapter no. Chapter no. 5 (2nd Half)Students Name: ____________________________

Teachers Name: Rana Muhammad IrfanTime Allowed: __________Test no: 2Maximum Marks: 25

Part I (Objective)

Q. 1: Choose the best option:

(5 x 1= 5)1: 1s complement of a binary number can be taken directly by:a: Replacing all 0s to 1sb: Subtraction

c: Multiplication d: By committing s to and 1s2: 1s complement of 001001011is:

a: 0110100

b: 110110100

c: 000110100

d: 1100010003: In binary multiplication 1.0 =a: 1

b: -1

c: 0.1

d: None of these4: In fixed point representation of fixed point representation position of what does not change?a: Decimal

b: 0s

c: 0s

d: All of These5: To represent a real number in a computer what is used to represent sign of the number?a: MSD

b: LSD

c: Sign (+ve, -ve)

d: None of thesePart I (Short Questions)

Q. 2: Give the short answer to the following:

(6 x 2 =12) 1. What is a 1s complement give an example?

2. What is a 2,s complement also give an example?

3. What is a fix point number representation?

4. Represent -54(10) using 8 bit 1s complement

5. Subtract the following numbers.

110101011

_ 011110101

6. Multiply the following numbers

11100001

X 0101Part III (Long Questions)

Q.3: Write a detailed note on fixed point number representation.

(8 x 1= 8)OR

Represent 46.475(10) in 16 bit fixed point representation a detailed note on the role of computers in Education.