Page 1 :
ceca aoa, , Computers only understand machine language., , Computer program is translated into machine language by a utility software, called translator., , Python programming language is free, simple to learn and loaded with powerful, libraries., , Python IDLE is an integrated learning and development environment to develop, , and manage Python programs., Python IDLE works in interactive and script modes., , Python turtle library is useful to learn Python basics., Python files have extension py., Python turtle draws onacanvas., , $e??? © © YF, , Translator: Utility software that converts computer language program into, machine language., , Library: Collection of pre-designed programs., , Package: Organisation of libraries., , Script: A Python program., , Function: An independent piece of code identified by a unique name., , Argument: Value passed to a function., , Loop: The block of program executing repeatedly., , Indentation: Tab-shifting the line of code to align them as the part of ablock., , Vv 7 9729, , Exercise, , A. Select the correct answer., 1, Acomputer file containingacomputer programiscalleda/an_____=— file., , a. Logic b. Instructions, c. Executable SY d. Icon, , ©
Page 2 :
2. Atranslator is which of the following types of software?, , a. Computer b. Useful, c. Utility w¢ d. Machine, 3, Pythonis which of the following?, a. Software b. AIProgram, ¢. Programming language d. Utility, 4. Collections of useful, predesigned programs arg called which of the following?, a. Library b. Template, c, Theme d, Allof these, 5. Python libraries are organised as which of the following?, a, Themes b. Templates car, c. Botha)andb) d, Packages, 6. Python programs are called which of the following?, a. Utilities b. Libraries, ¢. Packages d. Scripts, 7. Wecansave our Python programs in which of the following modes of IDLE?, a, Interactive mode b. Script mode, ¢. Botha)andb) d. None of these AA, 8. The extension of Python program files is which of the following?, a. .ipy b. .pyt, c. .pyn d. .py, 9. One of the most appealing features of Pythonis that it \Z., a, isfree, , b. issimple tolearnanduse, c, has huge collectionof useful libraries, d, Allof these, , 10, To use apackage in our Python programsMeneedto it., a. Insert b. Export, c. Import a’ d. Select, , 11, The two ways torunaPythonscript in —_ are:, a. Press F5,Run>Run Module b. Press F6,Run>Run Module, , ¢, PressF5,Run>Run Script d, Press F6,Run>Run Script, 12. turtle.forward(50) -in this statement, what is 50?, , a, Anumber b. Direction, , ¢c. Argument Ww d, Output, , ©
Page 3 :
13. turtle.right(45)- in this statement, what is 45? ha, , a, Steps b. Degree, c. Length d, How many times, 14, turtle.backward(-50) and turtle.forward(50 what?, a. Same sn Not same, ¢. Errorinstatements d. None of these, 15. for x inrange(1,10): - this loop should execute how many times?, a, 11 b, 10, «9 d. None of these, 16, The statement whichare apart of ablocK suchas loopare____ together., a, Coded b. Kept, ¢. Saved d. Indented urs, 17. If Python turtle has to draw a dashed line (- - -- - )thenit mustus__, a. penup() b. pendown(), ¢. Botha)andb) d. draw(yes/no), , 18, turtle. fillcolor(*red")- this statement is doing what?, a. Filling colour in the figure drawn, b. Only setting the colour to be filled, ¢c. Filling the outline colour, d, Only setting the outline colour, 19, To clear the canvas, reset default settings and bring the turtle to the centre of the, , , , , , , , , stage, we use which of the following functions? 7, a. clear() b. reset(), ¢. Botha)andb) d. undo(), 20. The centre of the turtle canvas is denoted by which of the following values of, coordinates x,y?, a, 0,0 MGs 100,100, ¢. 500,500 d. 11, Match the functions in column A with their use in column B., A B, 1, Pe Clear the canvas., z Createsa turtle by some name., 3. bgcol ks the end of filling colour ina figure drawn., 4. end_f rings turtle to coordinates 0,0., 5. cl Creates alist of numbers., 6. f. Sets the colour of the canvas., , ©)
Page 4 :
Explain the following terms in one sentence., 1. Program, A.set of instyyotions arranged ina Logical pequonce ., ei ¥ 0 0 t, 2. Script, D byee vam that 7s exams by an intowbooten Like Exthor, 3. Translator ne ‘ Bc:, Lt convert a brog ram written tA a programming lang Lap, 4, PythonLibrary | 7 to machine langutee., Collectinn of pyr-desiened broqmms fn pythan fo xe Use., lam tT I} TT, 5. Package, , Organised sek of Libraries :, , Answer the following questions., , How is interactive mode of Python IDLE from Script mode?, , Explain the use of the term import with an example., , List major features of Python., , What is turtle? Why do we need to import it inPython script?, , What is a function Python programming?, , What is a function argument? Explain witha small example., , What is the significance of indentation in Python programming?, , Which function help in starting and stopping filling colour in a figure drawn by, Python turtle?, , 9. Howcanwe set the outline colour of a figure to be drawn by Python turtle? Give example., 10. Briefly explainPython turtle canvas coordinates., , OPS OS CUES COs