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

I PU Midterm Chapterwise Questions

Uploaded by

paiprashanth92
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)
33 views

I PU Midterm Chapterwise Questions

Uploaded by

paiprashanth92
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
You are on page 1/ 4

CHAPTER-1 COMPUTER SYSTEM

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.

CHAPTER-2 NUMBER SYSTEM


Refer the problems taught in the class.
CHAPTER-4 INTRODUCTION TO PROBLEM SOLVING
2 marks questions:
1. Define algorithm. Who introduced the term algorithm?
2. Which are the two different methods of representing an algorithm?
3. Define: a) Flowchart b) Pseudocode

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.

CHAPTER – 5 GETTING STARTED WITH PYTHON


2 marks questions:
1. Define program and programming language.
2. Mention the execution modes of the Python Interpreter.
3. Mention any two python interpreters.
4. Identify the invalid identifier names in the table given below:
Number 1 _marks1 marks-1 TRUE True

True False 1number area$ None


5. Define comment. Which symbol is used to specify a single line comment?
6. Which function returns the identity of an object.
7. Explain sets with an example.
8. Explain mapping with an example.
9. Explain different types of identity operators.
10. Explain different types of membership operators.
11. Which function returns the datatype of a variable?
12. Define debugging and bugs.

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)

b) num1 = num1 ** (num2 + num3)


print (num1)

c) num1 = '5' + '5'


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.

Algorithm, Flowchart, Pseudocode and Python program:


1. To swap two numbers using third variable.
2. To enter two integers and perform all arithmetic operations on them.
3. To find area and perimeter of a rectangle.
4. To calculate simple interest and amount payable.
5. To find largest among three numbers.
6. To check whether a person is eligible to apply for driving license.
7. To find the grade of a student.

You might also like