Class Test (2) 11 A
Class Test (2) 11 A
COMPUTER SCIENCE
11-A
a) Coding
b) Debugging
c) Analyzing the problem
d) Testing
a) Rectangle
b) Parallelogram
c) Diamond
d) Circle
a) List
b) Dictionary
c) Tuple
d) Set
a) random
b) math
c) sys
d) time
a) Hard Disk
b) CD-ROM
c) RAM
d) USB Drive
a) input()
b) print()
c) scan()
d) read()
x = 10
y=3
print(x % y)
a) 1
b) 3
c) 0
d) 10
Explain the difference between // (floor division) and / (regular division) in Python.
What is the purpose of the print() function in Python? Provide an example.
What is the function of the Control Unit in the CPU?
What is the difference between primary and secondary memory?
What is a module in Python? Give an example.
How do you use the math module to calculate the square root of a number?
What is the difference between lists and tuples in Python?
How do you access a specific element from a list in Python?
What is the difference between an algorithm and a flowchart?
Explain the concept of "divide and conquer" in problem-solving.
LONG ANSWER QUESTIONS: (3 MARKS EACH)
Write an algorithm and draw a flowchart to find the largest of three numbers.
Explain the different steps involved in problem-solving using computers. Illustrate with an
example.
Write a Python program to remove duplicate elements from a list.
Explain how data is handled in Python using lists and dictionaries. Write programs to
demonstrate their usage.
Explain the concept of modules in Python. How do you create and import a user-defined
module?
Write a Python program that uses the math module to calculate the area of a circle and the
random module to generate a random number between 1 and 10.
Explain the different components of a computer system and their functions (CPU,
memory, input/output devices).
Describe the basic organization of a computer system with a block diagram. Explain the
roles of the CPU, memory, and storage devices.