Consider the Adder-Subtractor circuit given in Unit 3 of Block 1. Explain how this circuit will perform subtraction (A-B) if the value of A is 0001 and B is 1101. You must list all the bit values including Cin and Cout and overflow condition.
See Answer →Simplify the following function using K-map:F(A, B, C, D) = Σ (1, 3, 5, 7, 13, 15). Draw the resultant circuit for the function using NAND gates.
See Answer →Perform the following conversion of numbers:
(i) Decimal (5432109876)10 to binary and hexadecimal.
(ii) Hexadecimal (FCEB9A86)h to Octal.
(iii) String “ABCD987$@&” to UTF 16
(iv) Octal (10235647)Oto Decimal
List the differences between von Neumann and Harvard architecture.
See Answer →Define the main features of von Neumann's architecture with the help of a diagram.
See Answer →Differentiate between the following with the help of suitable example for each :
a. Co-routines and subroutines
b. Co-routines and threads
What are Lambda functions ? How do Lambda functions differ from Built-in functions ? Write lambda function to calculate cube of a number. Also write the program to find cube of a number without using lambda function.
See Answer →Write Python code to perform the following :
a. Reading data from a file
b. Creating a file and add content to it
Compare overloading and overriding in Python. Give suitable example code for each in Python.
See Answer →What is the utility of map( ) function do ? Write a program in Python to print the square of the numbers present in the list, by using map( ) function.
See Answer →Differentiate between mutable and immutable data types in Python. Briefly discuss the following data types of Python : a. Lists b. Tuples c. Dictionary
See Answer →What is C-Python ? Briefly discuss the relation between framework, library, package and module in Python.
See Answer →Compare any two of the following (give suitable C code for each) :
a. Break and Continue Statement
b. Structure and Union
Differentiate between Random access and Sequential access of files in C. Discuss the syntax and role of fseek( ) and rewind( ) function, while accessing any file.
See Answer →Write the syntax of looping control statements. Also draw the flowchart for each statement. Write a program in C to generate the following pattern :
*
**
***
See Answer →Briefly discuss the relation between pointers and arrays, giving suitable example. Write a program in C, to print transpose of a 2D matrix entered by a user. Also give comments.
See Answer →Write an algorithm to find the HCF (Highest Common Factor) of the two numbers entered by a user. Transform your algorithm into a C program, support your program with suitable comments.
See Answer →Explain the concept of call by reference, with suitable code in C for each. Give advantage and disadvantage of call by reference
See Answer →Differentiate between Recursion and Iteration. Give suitable code to find factorial of a number entered by user in C for each.
See Answer →Compare flowchart and algorithm. Write Algorithm and also draw flowchart to perform following:
a. Find factorial of a number entered by user.
b. Print Fibonacci series up to the number of terms entered by the uses