0% found this document useful (0 votes)
26 views

Midterm paper _1pu

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Midterm paper _1pu

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HMR NATIONAL PU COLLEGE

MIDTERM EXAMINATION – 2022


I PUC – COMPUTER SCIENCE

Time: 3 Hr 15 Mins Max Marks: 70


PART A
Answer all the questions. Each question carries 1 mark. 10x1=10

1. What is an Algorithm?
2. Give one advantage of flowchart.
3. Expand OOP.
4. What is a Token?
5. Define Keyword.
6. Convert A = πr2 into equivalent C++ expression.
7. What is the purpose of the exit() function?
8. Which structure is also known as the one-way branch?
9. Give one example for positional number system.
10. Give the other name of cin().

PART B
Answer any five questions. Each question carries 2 marks. 5x2=10

11. Write a note on testing and debugging.


12. Define class & object.
13. What are Escape sequences? Give examples.
14. Convert 512(8) = ?(10).
15. Explain any 2 functions of iomanip.h.
16. Differentiate between break and continue statements.
17. Define Derived data type. Give example.
18. What is a Variable? Write the syntax to declare variable.

PART C
Answer any five questions. Each question carries 3 marks. 5x3=15

19. Mention the advantages of modular programming.


20. Write the syntax for switch statement.
21. Mention any 3 applications of OOP.
22. Explain unary operators with example.
23. What are user defined data types? Give two examples.
24. Convert 10101.11(2) into decimal.
25. Draw a flowchart to check whether a given year is a leap year or not.
26. Write a program to find area and circumference of a circle.
PART D
Answer any 7 questions. Each question carries 5 marks. 7x5=35
27. Write a program to find the sum of digits of a number using while statement.
28. Mention the various advantages of OOP.
29. What are identifiers? Mention the rules for naming identifiers.
30. Write an algorithm to input a character and check whether it is a lower case or an uppercase
letter using if-elseif.
31. Explain the structure of a C++ program.Explain different arithmetic operators used in C++.
32. Explain for statement with syntax and flowchart.
33. Write a note on cascading of input-output operators.
34. What are fundamental data types? Explain with examples.
35. What are constants? Explain integer constants with examples.
36. Mention the characteristics of a good program.
37. Write a program to interchange the values of 2 variables using third variable.

***************

You might also like