Home > Python > Quizzes > Basic Python Programming
Basic Python Programming
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 47% Most missed: “This statement exits a function. The remaining lines of the function are not exe…”
Basic Python Programming
Time left 00:00
25 Questions

1. Adds a new line character

2. modulo

3. Create a variable.

4. deletes an item from a list

5. Function to write something to a file

6. Prints a string to the screen which will be Unicode.

7. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101

8. prints its parameter to the console

9. Prevents a runtime error from stopping the program.

10. Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand. a << 2 will give 240 which is 1111 0000

11. The extension for Python scripts

12. This keyword in the body of a conditional - gives an alternative execution.

13. Symbol to add things together

14. This keyword begins a header for a body that repeats until the condition is no longer true.

15. asks the user for a response and returns that response

16. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the variable.

17. A built-in function that converts its argument to a string.

18. Binary XOR Operator copies the bit if it is set in one operand but not both. (a ^ b) will give 49 which is 0011 0001

19. A data type for representing numbers with fractional values.

20. assignment operator

21. Function to write something to a file

22. This keyword begins the simplest form of a conditional statement.

23. Function to open or read a file

24. Called Logical AND operator. If both the operands are true then then condition becomes true. (a and b) is true.

25. This keyword in the body of a conditional - gives an alternative execution.