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

Computer 6th Chapter

The document discusses Python programming basics like data types, variables, functions, and input/output. It provides examples of Python code and questions to test understanding of concepts. Interactive mode allows immediate feedback while script mode runs programs non-interactively.

Uploaded by

weblns
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)
293 views

Computer 6th Chapter

The document discusses Python programming basics like data types, variables, functions, and input/output. It provides examples of Python code and questions to test understanding of concepts. Interactive mode allows immediate feedback while script mode runs programs non-interactively.

Uploaded by

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

1. Tick (✓) the corre ct option.

a. Python can be used for - - - - ~ 0 (ii) Data Analysis


. D lopm ent
(i) Web Programming eve O (iv) All of these
. t · D velop ment t nt on the screen in Python?
(iii) GUI Applica ,on e
b. Which functi on
.
,s used to
d"s
I
p
lay the
O
con e
(ii) scan( )

(i) print( ) 0 (iv) input ()

(iii) displ ay() th rogra ms for furth er use?


p
c. Which of the following
. allow s to save
O
e
(ii) Python Editor's window

(i) Python Shelf O (iv) All of these


(iii) Command Prompt

d.
t
Which option is used o execu
tea progr am?
O (ii) Python Shell
(i) Check Modu le 0 (iv) Run Modu le
(iii) Both (i) & (ii)
What does IDLE stands for?
e.
(i) Intera ctive Deve lopme n
t L ning Envir onme nt
ear □
(ii) Integrated Deve lopme nt Learning Envir onme nt □
(iii) Integrated Debugging Learning Environment □
(iv) None of these □
2. Fill in the blank s using the word s from the help box.

), string
Interactive Mode, data type, Guido van Rossum, inpu t(

a. defines the type of value, a varia ble can conta ins.


- - --
s put in single or double quol
b. A _ _ _ _ value is a collection of one or more char acter
a prog ram executes.
C. The _ _ _ _ function allows to take user's input while
d. Python was developed by - - - -
press ing the Enter key.
,e. - - - - gives imme diate result for each comm and after
3. Think and answer.
a. What do you mean by python prog ramm ing langu age?

b. What is the use of comments in Python?


data types?
th 8
cire
..µrOt
,,-------- -- in Python?
tors
, opera
/ t c,re
..µrO - - -- - - - -
f ~ e Python programmi ng language.
, ,,.,, y two ea
1oin an

-
, f~P ---- ---
// - - - -- -- - - - -- - - -- I
✓----------------: the Python IDLE Shell? Also write its components .
,, do you op • I '!) \
:~ •lib i tfo ·<' c) M , CeairnaM 1kmf i I
I
/ ~ e? How do you declare a variable in Python?
\
.
Wh"
tis varia
~ -t I 8 f ~ °'- di) -· i
i·------------
7,_

'lJ
~
---- ---- ---- ---- ---- =~=
o run a Python program.
I

~~
~-
n•

----
WriteseP

f te between the following j


P~ •1 2\ ,
~
, ,.11 . . ~ E:o\1qo~ w'"J:o'40~
Oifferen ,a . . ' •,.. L~ d-\ {dJ)Lf- ~MllX-~
wrddJ Script Mode o.lJ.o
!.
Q,
Interactive Mode l'N""'
1{ 1
~

, Yl ~

.
input() function .____ u.n'_ricl erv
_ _
. k
~~)f mfllen ti. ~d ffJ: Lte-, ~Pu__
w0 IIYI> at tdJ1L ;ft ,1cct ,.,_
0
\
i.
- I-
Application based questions.
. o '"b Experiential learning

a. Aarav has been writing codes in the command prompt. He wants to save and reuse
his'programs-:-- Where should he write his codes instead so that he can easily open,
run and save for further use?
t ivp+ r,"W ~LL I fdf 1o,A rr~-·
i
b. Ayushi finished writing a program in Python and has saved it successfully but now she forget the
option to ex·ecute a program . Teli her which option she should use? ·

FS 1f::e.1 T-~/ tZ 1
What will be the output of /he f~!l~wing expressions?
a. 56*8+13
b. 4917 - 5+15 - 10

C, 34 *98*2*5 -1076\2
d. 74+98+23+76-23-A 5- 90
e. 90/10+25 * 67-22

lti:fJii,9iifI -~•\ ('I

Visit your compu ter lab and perform the following action s:
► Print following in Python .
(a) Five famous landmarks of your city.
(b) Name of any five countries that you wish to visit.
( c) Your five favourite cars.

► Write a python progra m to calculate the multiplication of two


b
nurn ers.

GROUP DISCUSSION

Divide the students in the two groups and organise a group discus
modes on python.
s·10
n on diff
~

::t
erent

• \J• {C9 i>IN6 Z9 N:} Computational Thinking J


'--
a. If L=29, V=02, D=22, and N=02, then calculate the following :

LxV+ N-D= ?

b. In a family of four members, A is the wife of B while Vis the son of


Band A. C is the grandson
of B. How is C related to V?

c. How many times does the digit 4 occur between 500 and 600?

(~J:tmuwa--------
People who are exper t in Python may pursue their caree r as a
Software Developer .

.... FOR TIIE TEACHER ..................................... .................. ......... .......... ....................... ········••"
"'""
: 1. Demonstrate the Python programming modes to the students.
: 2. Discuss with students about the Python and its features.
········ . ............... . ............. . ..... ············

You might also like