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

Revision of Chap 1to 3

The document contains a series of questions and exercises related to computer science and Python programming. It includes fill-in-the-blank questions, short answer questions, detailed explanations, and programming tasks. Topics covered include CPU operations, data processing, Python syntax, and various programming concepts.

Uploaded by

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

Revision of Chap 1to 3

The document contains a series of questions and exercises related to computer science and Python programming. It includes fill-in-the-blank questions, short answer questions, detailed explanations, and programming tasks. Topics covered include CPU operations, data processing, Python syntax, and various programming concepts.

Uploaded by

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

Q-1 Fill in the blanks.

(1) The _________ in the CPU is capable of performing arithmetic and logical
operations.
(2) Data processing is a means of transforming ________ into information.
(3) Python programs are saved using the _______or ________ extension.
(4) Operators that act upon two operands are referred to as_______ operators.
(5) A ________ is a reserved named location that stores values.
(6) Binary number system has digits as ____ and _______.
(7) A collection of 8 bits is called a __________.
(8) Forward indexing of a string starts with index _____.
(9) Output of print(15*25+36/4//3-9)
(10)The smallest individual unit of a program is known as _______

Q-2 Answer the following question in short.


(1)Define the following term (i) Antivirus (ii) Backup Software
(2)What is the difference between data and Information?
(3)What is the difference between Interactive mode and Script mode in Python?
(4)Which of the following identifier names are invalid and why?
(i) Serial_no. (ii) 1st_Room (iii) Total Marks (iv) Hundred$
(5)What will be the output produced by the following code?
name = ‘Neeru’
age = 21
print (name, “You are”, 21, “now but”,)
print (“you will be”, age+1, “next year”)
(6) What is booting?
(7) Expand ALU, GUI.
(8) Expand IDLE.
(9) What is the use of * and + in a string with examples.
(10)What is the use of type( ) with example.
Q- 3 Answer the following question in detail.
(1)Write Python expressions to represent the following situations.
(a) Add remainder of 8/3 to the product of 8 and 3.
(b) Find the sum of the square roots of 8 and 43.
(c)Find the integral part of the quotient when 100 is divided by 32.
(2)Why is language processors used? Differentiate between compiler and interpreter.
(3)Discuss the following devices: (i) Light Pen (ii) Graphic tablet (iii) DVD
(4)Distinguish between python and other programming languages.
(5)Find the output generated by the following code.
(a) x=2
y=3
x+=y
print(x,y)
(b) p=10
q=20
p*=q//3
q+=p+q**2
print(p,q)
(c) p=5/2
q=p*4
r=p+q
p+=p+q+r
r+=p+q+r
q-=p+q*r
print(p,q,r)
(6) Write the importance of cache memory in a computer system.
(7) What are the pros and cons of working in interactive mode in python?
(8) What are the advantages and disadvantes of python programming language.
(9) Give the output
a,b= 12 ,13
c,b= a*2 , a/2
print(a,b,c)
(10) Explain if…elif…else statement with example.
Q-4 Write the python program for the following.
(1) Write a Python program that accepts radius of a circle and prints its area.
(2) Write Python codes for the following statements.
(i) Assign value 10 to variable a.
(ii)Assign value 10 to variable a, b and c.
(iii) Assign value 20 to x and delete 5 from x and assign the variable x and
y.
(3) Generate auto list of the word “PYTHON” and print the list using for loop.
Print in following pattern:
P
Y
T
H
O
N
(4) WAP to print first 10 natural numbers using for loop.

You might also like