(a) Please refer to Figure 4 of Unit 1 of Block 1 on page 11 of Instruction execution example. Assuming a similar machine is to be used for execution of the following three consecutive instructions: LOAD A ; Load the content of Memory location A into the Accumulator Register. ADD B ; Add the content of memory location B from Accumulator Register. STOR C ; Stores the content of Accumulator register to memory location C. However, this machine is different from the example of Figure 4 in the following ways:
• Each memory word of this new machine is of 64 bits in length.
• Each instruction is of length 64 bits with 24 bits for operation code (opcode) and 40 bits for specifying one direct operand.
• The Main Memory of the machine would be of size 240 words
• The three consecutive instructions are placed starting from memory location (000000FFFE)h ; operand A is at location (00000FFFF1)h and contains a value (0000051121)h, Operand B is at location (00000FFFF2)h and contains a value (00050048FE)h and operand C is at location (00000FFFF3)h and contains a value (0000000000)h.
• The AC, IR and MBR registers are of size 64 bits, whereas PC and MAR registers are of size 40 bits. The initial content of PC register is (000000FFFE)h Draw the diagrams showing the following information: (i) Initial State of the machine with the addresses and content of memory locations in hexadecimal. Show only those address locations of the memory that store the instruction and data. Also show content of all the stated registers. (2 Marks) (ii) Draw three more diagrams, each showing the state of machine after execution of every instruction viz. LOAD, ADD and STOR. Show the changes in the values of Registers and memory locations, if any, due to execution of instruction. Show all the addresses and values in hexadecimal notations. (3 Marks) (b) Perform the following conversion of numbers:
i) Decimal (6545679870)10 to binary and hexadecimal ii) Hexadecimal (ABCDEFF90)h into Octal.
iii) String “Assembly Language Programming” into UTF8
iv) Octal (2345671)O into Decimal
(c) Simplify the following function using K-map: F(A, B, C, D) = Σ (0, 1, 4, 5, 9, 10, 15) Draw the circuit for the resultant function using NAND gates.
(d) Consider the Adder-Subtractor circuit as shown in Figure 3.15 page 76 of Block 1. Explain how this circuit will perform subtraction (A-B), if the value of A is 1001 and B is 0111. You must list all the bit values including Cin and Cout and overflow, if any.
(e) Explain the functioning of a 4 × 1 multiplexer with the help of logic diagram and example input.
(f) Assume that a source data value 1101 was received at a destination as 1111. Show how Hamming's Error-Correcting code bits will be appended to source data, so this error of one bit is identified and corrected at the destination. You may assume that transmission error occurs only in the source data and not the source parity bits.
(g) Explain functioning of J-K flip flop with the help of a logic diagram and characteristic table. Also explain the excitation table of this flip-flop.
(h) Explain the functioning of a master-slave flip-flop with the help of a diagram.
(i) Represent (-49.125)10 and (0.00000025)10 in IEEE 754 single precision and double precision formats.
See Answer →Using File Handling concept in C programming, write the C programs for the following:
(a) To create and store student information of 10 MCA students in a .dat file.
(b) To edit the file created in (a) to add data for 2 more students.
(c) To delete specific line(one student record) from a file.
See Answer →Using Structures in C, write an interactive program to display the pay-slips for 10 employees working in a small departmental stores.
Note: Assumptions can be made wherever necessary and mention them.
See Answer →Using arrays in C write a program to input 2 arrays consisting of 10 numbers each and display all the numbers those are common to both the arrays and display their count.
See Answer →Write interactive C programs to perform the following on strings:
(a) To check if two strings are Anagram.
(b) To check whether the given alphabet is a vowel or consonant.
(c) To convert the given string from lower case to upper case without using the inbuilt function in
See Answer →Write an interactive program using recursion for the following:
(a) To find the HCF of two given numbers.
(b) To find the GCD of two given numbers.
(c) To find the factorial of a given number.
See Answer →Write the functions in C for the following:
(a) To calculate the power without using the pow(x,y) function of .
(b) To calculate the cube of a given number.
(c) To calculate the LCM of two given numbers
See Answer →Write an algorithm, draw corresponding flow chart and write an interactive program which prompts the user with the following options on the opening menu:
1) To reverse a 5-digit number
2) To check whether the 5-digit number is a palindrome or not
3) To find the sum of all the digits of the 5-digit number 4) Quit
Enter your choice: Note: Use SWITCH..CASE statement.
See Answer →Unions
See Answer →Policies relating to the voluntary sector in India
See Answer →Government as Stakeholders
See Answer →Social Movement
See Answer →Women and Philanthropy
See Answer →Elements in Philanthropy Social Wor
See Answer →Donor Agency
See Answer →Philanthropy and Buddhism
See Answer →Highlight the types and functions of Civil Society Organizations.
See Answer →Explain Philanthropy in Sikhism
See Answer →Highlight the various stages of CSR in India.
See Answer →Discuss the relationship between the philanthropic sector and government.
See Answer →