Download Model question papers & previous years question papers
Submit Previous Years University Question Papers
Posted Date: 25 Dec 2008 Posted By:: sridevi Member Level: Gold Points: 5 (Rs. 1)
2006 Birla Institute of Technology-Mesra COMPUTER PROGRAMMING University Question paper
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 Questions = 6
Nature of Exam : Closed Book
Weightage : 40%
Duration : 2 Hours
Date of Exam : 04/02/2007 (FN)
1. Please follow all the Instructions to Candidates given on the cover page of the answer book.
2. All parts of a question should be answered consecutively. Each answer should start 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 give answer in both decimal and binary).
(c). With this number of bits, what is the largest unsigned number you can represent? (Please give answer in both decimal and binary). [3 × 2 = 6]
Q.2 (a) What is an assembly language? Why mnemonics are used in assembly language program?
Q.2 (b) Explain the execution process in the assembly language. Briefly discuss the advantage and disadvantage of assembly language. [3 × 2 = 6]
Q.3 (a) You know a byte is 8-bits. We call a 4-bit quantity 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 three bits to access a location in memory, what is the total size of memory in bytes? [3 × 2 = 6]
Q.4. For this question follow the following figure-1.
(a). Describe the output of this circuit when the select line S is a logical 0. That is, what is the output Z for each value of A?
(b). If the select line S is switched from a logical 0 to 1, what will the output be?
(c). Is this logical circuit a storage element? [3 × 3 = 9]
Q.5 (a) Suppose a 32-bit instruction takes the following format:
If there are 60 opcodes and 32 registers, what is the range of values that can be represented by the immediate (IMM)? Assume IMM is a 2’s complement value.
Q.5 (b) State the phases of the instruction cycle and briefly describe what operations occur in each phase? [3 × 2 = 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 find the sum of the square of first 30 even numbers. [3 + 4 = 7]
Return to question paper search
and make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.