0% found this document useful (0 votes)
2 views2 pages

Programming For Problem Solving Question Bank

The document is a question bank for the course BCS-201, Programming for Problem Solving, covering two units. Unit 1 focuses on computer system components, programming concepts, and C programming basics, while Unit 2 addresses operators, expressions, data types, and conditional statements in C. Each question prompts detailed explanations, definitions, examples, or program demonstrations related to the topics.

Uploaded by

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

Programming For Problem Solving Question Bank

The document is a question bank for the course BCS-201, Programming for Problem Solving, covering two units. Unit 1 focuses on computer system components, programming concepts, and C programming basics, while Unit 2 addresses operators, expressions, data types, and conditional statements in C. Each question prompts detailed explanations, definitions, examples, or program demonstrations related to the topics.

Uploaded by

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

BCS-201, Programming for Problem Solving(PPS)

QUESTION BANK
UNIT–1 (CO1)
1. Explain the components of a computer system. Describe the role of memory, CPU,

I/O devices, storage, and operating system.

2. Differentiate between assembler, compiler, and interpreter with suitable examples.

3. What are loader and linker? Explain their functions in program execution.

4. Define algorithm. Explain the characteristics of a good algorithm.

5. Represent an algorithm to find the maximum of two numbers using pseudo code.

6. Draw a flowchart to find the sum of first N natural numbers.

7. Explain the structure of a C program with its major components.

8. Describe the steps involved in compiling and executing a C program.

9. What are syntax errors and logical errors? Explain with examples.

10. Differentiate between variables and constants in C with examples.

11. Write a C program to add two numbers using user input.

12. Write a C program to demonstrate the use of variables and constants.

13. Explain fundamental data types in C with suitable examples.

14. Write a C program to demonstrate the use of int, float, and char data types.

15. Explain the working of printf () and scanf () functions in C with an example.
UNIT–2 (CO2)
Operators, Expressions, Data Types & Conditional Statements

16. What is an operator in C? Explain its classification with examples.

17. Explain arithmetic, relational, and logical operators with examples.

18. What are bitwise and assignment operators? Illustrate with examples.

19. Define expression in C. Explain different types of expressions.

20. What do you mean by operands in C? Explain types with examples.

21. Explain mixed mode operations in C. Describe implicit and explicit type
conversion.

22. What is operator precedence and associativity? Explain with examples.

23. What is conditional branching in C? Explain if statement with syntax and example.

24. Explain if–else statement with suitable example.

25. Define nested if statement in C. Write syntax and example.

26. Explain the switch statement in C with syntax and example.

27. Differentiate between if–else and switch statements.

28. Explain break statement in C with example.

29. Explain continue statement in C with example.

30. What is goto statement? Explain its syntax and usage with example.

You might also like