Problem Solving Question
Problem Solving Question
2. Draw and describe the Vann Neumann architecture of a Computer system. Why it is called stored
program architecture? Is it essential to have memory in computer architecture? Justify your Answer
(2+1.5+1.5)
3. Differentiate between (2.5 x 2)
a) Call by Value and Call by reference
b) While and Do-While loop.
4. Write programs for the following (2.5 x 2)
a) To check whether a number is prime number or not.
b) Recursive function to generate GCD of two numbers.
5. a)Describe the functionality of Break, Continue and Exit with examples (3)
b)Write a program to print the following pattern. (2)
*
* *
* * *
* * * *
6. Write a C program to print the content of any text file. (5)
Group - C
Attempt any three Questions (15 x 3 = 45)
8) a) Write down the significance of base of number system and complements with example. (3)
b) Explain implicit type casting and explicit type casting with example. (2)
c) What is Pointer? What is the size of a pointer variable? Explain pointer arithmetic with example?
(1+1+3)
d) Explain pointer to pointer with example. (2)
e) Describe void and null pointer with suitable example. (3)
9)
a) Perform the following Conversions (5 x 2 = 10)
i) (35.21)8 = ( )2 Without using Decimal Number System.
ii) (28)5 = ( )6
iii) (31.75)10 = ( )2
iv) (38E.3C)16 = ( )10
v) (3.25) = (?)2 in IEEE 754 standard
b) Perform the following (2.5 x 2 = 5)
i) Convert (1100101000)2 to (?)4 directly.
ii) Subtract (11011)2 from (10001)2