Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. An array a. is not used in Python b. is used when there is only one variable

ID: 3540730 • Letter: 1

Question

1. An array

a. is not used in Python

b. is used when there is only one variable

c. is not used in programming

d. is a data structure

2. Python strings have a built-in split method ___True ____False




3. A string format uses:

a. +

b. %

c. &

d. *

4. Breaking code into separate files is called modular programming. ___True ____False

5. FQNs are

a. Frequent Question Numbers

b. Find Query Now

c. Fully Qualified Names

d. The same as FAQs

6. Python has only one library for developing programs ____True ___False


7. Pass

a. Is a function that plays a sound

b. Does nothing

c. Executes the program

d. Is an import function


8. Pygame is part of the standard Python library _____True _____False


9. Wait_Finish ()

a. Plays all sounds at the same time

b. Provides a pause for sound to play

c. Is a command that tells the user to stop


10. Graphical User Interface is not an important part of interaction design _____True _____False


11. tkinter event handlers are

a. functions

b. debug programs

c. print commands


12. An example of widgets is a text box, combo box, dialog box, menus, label or drop-down box. ____True ____False



13. A dialog box

a. Opens a separate window to request additional information from the user

b. Allows you to select one item from a large list

c. Provides a way for large and small amounts of text to be entered.

d. Is a list of command options that is attached to the top of a window


14. Entry fields are indexed with a number starting at 0. _____True ___False


15. Radio buttons force users to make a single choice from a group. _____True _____False


16. MVC stands for

a. Most Valuable Coder

b. Model, View, Controller

c. Make Variables Clean

d. Menu, Variable, Code


17. A data model is used when a single piece of data is shared among widgets. ___True ____False


18. Code that runs because of an exception is called an exception handler. ____True ___False


19. You can catch exceptions in Python by using a try/except box. ____True ___False


20. When using message boxes, to ask a question, use:

a. "tell...()"

b. "show...()"

c. "request...()"

d. "ask...()"

21. The tkinter GUI library is not part of standard Python. ____True ____False

22. Python does not have any reserved words in its programming language. ____True ____False

23. Scale () is a tkinter widget that creates sliders. ____True ____False

24. Local functions cannot live inside other functions. ____ True ____ False


25. Frames ()

a. Is a widget in tkinter

b. Can contain other widgets

c. Groups widgets together

d. None of the above

e. All of the above

26. Methods define the behavior of an object. ____True ____False

27. "Self"

a. Is a variable within a method

b. Points to an object within a method

c. Separates object values from each other

d. None of the above

e. All of the above

28. OOP stands for:

a. Other Object Placeholder

b. Object Oriented Programming

c. One Of Python

d. Only One Programmer

29. An instance is

a. An example of code

b. An objects behavior

c. A created object of some class

d. None of the above

30. OOP makes it difficult to update a program when a change is necessary. _____True _____False

31. Examples of OOP language are:

a. C++, Ruby, Python

b. Fortran, Pascal, Cobol

c. None of the above

32. Java is short for JavaScript. _____True ____False

33. Messagebox module is part of tkinter. ____True ____False

34. Modular codes cannot be shared. _____True ____False

35. "def" is used to

a. Create functions

b. To import a module

c. Play a sound

d. Turn off a program

___________________________________________________________________

Explanation / Answer

d

True

b

True

c

False

b

False

c

False

a

True

a

True

False

b

False

True

Tre

d

False

False

True

False

e

True

a

b

c

False

a

False

True

False

a