0% found this document useful (0 votes)
19 views3 pages

Class Test (2) 11 A

Uploaded by

soumyagautam404
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)
19 views3 pages

Class Test (2) 11 A

Uploaded by

soumyagautam404
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/ 3

CLASS TEST

COMPUTER SCIENCE

11-A

MULTIPLE CHOICE QUESTIONS: (1 MARKS EACH)

 What is the first step in solving a problem using a computer?

a) Coding
b) Debugging
c) Analyzing the problem
d) Testing

 Which of the following is a flowchart symbol for a decision-making step?

a) Rectangle
b) Parallelogram
c) Diamond
d) Circle

 Which of the following is an immutable data type in Python?

a) List
b) Dictionary
c) Tuple
d) Set

 What does the len() function do in Python?

a) Returns the sum of elements in a list


b) Returns the count of characters in a string
c) Returns the length of a list or string
d) Returns the index of the largest element in a list

 Which module is used to generate random numbers in Python?

a) random
b) math
c) sys
d) time

 What is the purpose of the import statement in Python?

a) To create a new function


b) To include modules in the program
c) To read input from the user
d) To handle errors
 The CPU consists of which of the following components?

a) ALU and RAM


b) ALU and Control Unit
c) RAM and Hard Disk
d) Control Unit and Monitor

 Which of the following is a primary storage device?

a) Hard Disk
b) CD-ROM
c) RAM
d) USB Drive

 Which of the following is used to take user input in Python?

a) input()
b) print()
c) scan()
d) read()

 What will be the output of the following Python code?

x = 10

y=3

print(x % y)

a) 1
b) 3
c) 0
d) 10

SHORT ANSWER QUESTIONS: (2 MARKS EACH)

 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.

You might also like