Class 11 Computer Science Chapter 9 Practical Work Python Exercises Quiz 24 (25 MCQs)

Quiz Instructions

Select an option to see the correct answer instantly.

1. What is the assignment operator?
2. NameList = ["John", "Harry", "Jesse", "John", "Marry", "Larry"]del nameList[3]print(nameList)What would be the output
3. What is the term for steps you follow to solve a problem?
4. True or False:There are only 3 different programming languages
5. If L1=[2, 4, 8, 16], L2=[32, 64] what is L1+L2
6. Which operator is used to multiply numbers?
7. Look at the following code:age = "23"age = int(age)What does the int() function do to the data in my variable?
8. What is the output of the following python code?x=100def f1():global x x=90def f2():global x x=80print(x)
9. What is displayed to the screen when the following code runs? esports = ["Donkey Kong", "Galaga", "Pac Man"] esports.reverse() print(esports)
10. What will be the output of below Python code?list1=[8, 0, 9, 5]print(list1[::-1])
11. Koju verziju pythona koristimo?
12. Carrying out instructions is known as
13. What symbol is used to multiply two numbers together?
14. Suppose a function called add() is defined in a module called adder.py. Which of the following code snippets correctly show how to import and use the add() function? Select all that apply.
15. What is one of the main challenges in studying Burmese Pythons in the wild?
16. What does ..... init ..... do?
17. Which of the following is NOT a Python rule for naming functions?
18. Logical Operators:true if operand is false
19. What code would you use to get an average of your maths and English test results?
20. What is the purpose of comment lines in code?
21. >>>str="computer">>> str1='science'>>> str3=str+str1>>> print(str3)
22. How are variable length arguments specified in the function heading?
23. Print (name + '' is '' + age '' years old") This is an example of:
24. Which value is a Boolean?
25. What is the order of precedence in python?i) Parentheses, ii) Exponentialiii) Multiplication, iv) Divisionv) Addition, vi) Subtraction