How To Exam?

# Birla Institute of Technology (BIT Mesra) 2006 COMPUTER PROGRAMMING - Question Paper

Saturday, 19 January 2013 08:55Web

Birla Institute of Technology & Science, Pilani

Distance Learning Programmes Division

Second Semester 2006-2007

Mid-Semester Test (EC-1 Regular)

Course No. : TA ZC142

Course Title : COMPUTER PROGRAMMING

No. of Pages = 1

No. of ques. = six
Nature of examination : Closed Book

Weightage : 40%

Duration : two Hours

Date of examination : 04/02/2007 (FN)

Note:

1. Please follow all the Instructions to Candidates provided on the cover page of the ans book.

2. All parts of a ques. should be answered consecutively. every ans should begin from a fresh page.

Q.1. You wish to express –128 as a 2’s complement number.

(a). How many bits do you need (the minimum number)?

(b). With this number of bits, what is the largest positive number you can represent? (Please provide ans in both decimal and binary).

(c). With this number of bits, what is the largest unsigned number you can represent? (Please provide ans in both decimal and binary). [3 × two = 6]

Q.2 (a) What is an assembly language? Why mnemonics are used in assembly language program?

Q.2 (b) discuss the execution process in the assembly language. Briefly explain the advantage and disadvantage of assembly language. [3 × two = 6]

Q.3 (a) You know a byte is 8-bits. We call a 4-bit volume a nibble. If a byte- addressable memory has a 14-bit address, how many nibbles of storage are in this memory?

Q.3 (b) If a computer has 8-byte addressability and needs 3 bits to access a location in memory, what is the total size of memory in bytes? [3 × two = 6]

Q.4. For this ques. follow the subsequent figure-1.

Figure-1

(a). define the output of this circuit when the choose line S is a logical 0. That is, what is the output Z for every value of A?

(b). If the choose line S is switched from a logical 0 to 1, what will the output be?

(c). Is this logical circuit a storage element? [3 × three = 9]

Q.5 (a) Suppose a 32-bit instruction takes the subsequent format:

OPCODE
SR
DR
IMM

If there are 60 opcodes and 32 registers, what is the range of values that can be represented by the immediate (IMM)? presume IMM is a 2’s complement value.

Q.5 (b) State the phases of the instruction cycle and briefly define what operations occur in every phase? [3 × two = 6]

Q.6 (a) What is the largest positive number we can represent literally (i.e. as an immediate value) within an LC-3 ADD instruction?

Q.6 (b) Draw the flowchart to obtain the sum of the square of 1st 30 even numbers. [3 + four = 7]

******** 