I PU Midterm Chapterwise Questions
I PU Midterm Chapterwise Questions
2 marks questions:
1. Write a short note on cache memory.
2. Explain the types of primary memory.
3. Define: a) Word size b) Memory size c) Clock speed
4. Give one difference between microprocessor and microcontroller.
5. Define data and information.
6. Write one difference between hard copy and soft copy.
7. Mention the classification of programming languages.
8. Give two examples for high-level programming language.
9. Write one difference between source code and object code.
3 marks questions:
1. Define microcontroller. Give two examples.
2. Identify the category (System software, Application software, Programming tool) among
the following software:
a) Interpreter b) Ubuntu c) Anti-virus software d) Assembler e) Android f) iTunes
3. Explain the functions of operating system.
4. Explain the types of data.
5. Define software. Mention its three categories.
6. Mention the categories of programming tools.
7. Define: a) Compiler b) Assembler c) Interpreter
8. Define operating system. Mention the different types of OS interfaces.
5 marks questions:
1. Explain with a neat block diagram the functional units of a computer system.
2. Write a short note on evolution of computer.
3. Write the differences between RAM and ROM.
4. Write the differences between primary memory and secondary memory.
5. Define computer bus. Explain its types.
6. Define microprocessor. Explain its specifications.
7. Define system software. Explain its categories.
8. Define application software. Explain its categories.
3 marks questions:
1. Mention any three need for algorithm.
2. Define: a) Coding b) Testing c) Debugging
3. Mention any three keywords used while writing pseudocode.
4. Mention the different types of programming constructs.
5. Define selection construct. Mention its types.
5 marks questions:
1. Explain the steps involved in problem solving.
2. Explain the characteristics of an algorithm.
3. Explain the different symbols used in flowchart.
4. Explain simple if construct with syntax and example.
5. Explain if-else construct with syntax and example.
6. Explain if else if construct with syntax and example.
3 marks questions:
1. Define Keywords. Mention any two keywords used in python.
2. Define identifiers and write the rules for naming an identifier.
3. Define variables and write the rules for naming a variable.
4. Define number datatype. Explain its types.
5. Define sequence datatype. Explain its types.
6. Write the differences between Mutable and Immutable data types.
7. Explain different types of logical operators.
8. Explain input() with syntax and example.
9. Explain print() with syntax and example.
10. Explain the types of errors.
11. Write the output of the following:
a) num1 = 4
num2 = num1 + 1
num1 = 2
print (num1, num2)
b) num1, num2 = 2, 6
num1 = num2
num2 = num1 + 2
print (num1, num2)
c) num1, num2 = 2, 3, 4
num3, num2 = num1, num3 + 1
print (num1, num2, num3)
12. Give the output of the following when num1 = 4, num2 = 3, num3 = 2
a) num1 += num2 + num3
print (num1)
d) print(4.00/(2.0+2.0))
e) num1 = 2+9*((3*12)-8)/10
print(num1)
f) num1 = 24 // 4 // 2
print(num1)
g) num1 = float(10)
print (num1)
h) num1 = float('3.14')
print (num1)
i) print('Bye' == 'BYE')
j) print(10 != 9 and 20 >= 20)
13. Categorise the following as syntax error, logical error or runtime error:
a) 25 / 0
b) num1 = 25;
c) average=a+b+c/3
5 marks questions:
1. Write any 5 features of Python programming languages.
2. Define datatypes. Explain the different datatypes used in Python.
3. Define operators. Explain different types of arithmetic operators.
4. Explain different types of relational operators.
5. Explain different types of assignment operators.
6. Explain the types of datatype conversion.
7. Write the corresponding Python assignment statements:
a) Assign 10 to variable length and 20 to variable breadth.
b) Assign the average of values of variables length and breadth to a variable sum.
c) Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to a variable stationery.
d) Assign the strings ‘Mohandas’, ‘Karamchand’, and ‘Gandhi’ to variables first, middle and
last.
CHAPTER-6 FLOW OF CONTROL
3 marks questions:
1. Define flow of control. Mention the types of control structures supported by Python.
2. Define selection statements. Mention types of selection statements.
3. Define indentation. How does Python groups statements into a single block?
5 marks questions:
1. Explain if statement with Python syntax and programming example.
2. Explain if else statement with Python syntax and programming example.
3. Explain if else if statement with Python syntax and programming example.