PPS Reema Important Questions
PPS Reema Important Questions
_________________
GLOBAL INSTITUTE OF TECHNOLOGY
B. Tech. _II
1FY3-06/ 2FY3-06: Programming for Problem Solving
10x1 = 10
1. List Significance of second generation of computers
2. What is translator?
3. Write bottleneck of Von Neumann Computer Architecture.
4. Why do we need programming language?
5. What is radix? Explain r’s and r-1’s complement with example.
6. Illustrate difference between Algorithm and Pseudocode.
7. Solve (11011011101)2 + (11011011111)2
8. Solve (110001)2 - (101111)2
9. Solve (2AB)16 +( 3A4)16
10. Find r’s and r-1’s complement of ( 562)7 Where Radix/base is 7
11. Convert (456)10 to ( ?)9
12. What is an Identifier in ‘C’.
13. What is Data type ?
14. What is pointer ?
15. Describe pre-processor directives.
16. Declare a structure with four data members suitable to store details of a product.
17. What is keyword? List any five keywords .
18. Explain isdigit(),isalpha() functions.
19. Write any two string functions with syntax.
20. Write way to declare constant in a ‘C’ Program.
21. What are ASCII and BCD Codes.
22. Describe break and Continue statements. .
23. Differentiate between getch(0, getche() and getchar().
24. Different ways to declare Comments in ‘C’.
25. Differentiate between structure and union.
26. Type casting in ‘C’,
1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
13. What do you mean by recursive function? Write a recursive function to calculate factorial of a number.
12. Explain switch .... case and if (Decision) statements. With examples
14. Differentiate between a text file and binary file.
Percentage Division
>=60 First
>=48 and <=59 Second
>=40 and <=47 Third
<40 Fail
i. (467)8 to ( ? )16
ii. (CB10) 16 to (? )10
iii. (467)10 to ( ? )2
iv. (1110001101) 2 to (? )8
4. Explain ‘Call by Value’ and ‘Call by Reference’ with the help of C program.
5. Define Array and write a program to create an array of 10 integers and sort them in ascending order or find
secon largest..
6. Write a ‘C’ program to transpose a matrix.(2D Array)
7. Differentiate between Entry Control and Exit Control Loops with the help of ‘C’ code.
8. Write a program to read data from keyboard and write it to a file. Read contents/data stored in the file and
display it on the screen.