The purpose of mode r+ is to
Official theoretical question paper for Programming For Problem Solving (ES-CS201) conducted by Maulana Abul Kalam Azad University of Technology. All questions from Groups A, B, and C are reproduced below with marks weightings.
The purpose of mode r+ is to
Pointer is
A function may contain
Which of the following is not used as secondary storage ?
The ALU of computer normally contains a number of high speed storage elements called
The register which contains the instructions that are two execute is known as
A 32 bit microprocessor has the word length equal to
The union holds
The minimum number of auxiliary variables required in a swap routine in C language to interchange two variables is
Language C uses
If K bytes are required to store a number in hexadecimal number system, find how many bytes will be required to store the number in binary number system?
If C1 and C2 are two computer languages, what do you mean by the statement "The level of language C1 is higher than that of C2." Is it possible to convert the language of a particular level into another language of other level? If so, how? If no, why?
Write a program in C to compute the average of a few input quantities with minimum use of storage variables, where the number of inputs is not known beforehand.
a) What is recursion? b) What do you mean by pointer arithmetic? Explain with example.
a) Why do we use functions in programming? b) Write a function prototype which accepts an integer, a float pointer, a string and a structure pointer as parameters. c) How do you access a structure variable through a structure pointer? Explain with example.
a) Explain two input Exclusive NOR gate using truth table. b) Why is NOR gate called universal gate? c) Simplify : (A + B̅)·(A·C̅) + (A·B̅ + A̅·C̅)·(A̅ + D̅) d) Convert the following: i) (2AD)₁₆ = ( )₂ ii) (11100111101)₂ = ( )₁₆ iii) (25·125)₁₀ = ( )₂.
a) Draw a block diagram of a computer and briefly explain its various components. Is it possible to realize a digital computer without a primary memory? Justify. b) What is the significance of different levels of computer language? c) Distinguish between compiler and interpreter.
a) Allocate a two-dimensional array dynamically using pointers in C language. b) What is the utility of break statement in loop? Give an example. How is break statement different from an exit () statement? c) Write a program in C to find all the prime numbers in the range 10 to 100.
a) Write down the difference between malloc() and calloc(). b) What are auto, extern and static variables? Explain their uses with suitable example. c) Write a program to read a file and display its contents along with line number before each line.
a) What are the differences between recursion and iterations? b) Write a C program to print the following pattern (till n rows, where n is taken as input) 1 2 2 3 3 3 4 4 4 4 c) Create a structure to specify data on students give below: Roll Number, Name, Department, Course, and Year of admission. Assume that there are not more than 450 students in collage. Write a program to print names of all students who joined in a particular year.