Test your basic knowledge |

Basic Python Programming

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. adds an item to a list






2. exponent AND assignment operator






3. This keyword in the body of a conditional allows chained conditionals.






4. Symbol to multiply things






5. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.






6. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.






7. turns an object into a string






8. single line comment






9. Prints a string to the screen which is a signed decimal.






10. exponent AND assignment operator






11. A built-in function that converts integers and strings to floating-point numbers.






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






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






14. square root






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






16. Command to print to the screen






17. Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand. a >> 2 will give 15 which is 0000 1111






18. Greater than or equal symbol.






19. Function to write something to a file






20. End header line.






21. An operator that removes a value from a list.






22. floor division AND assignment operator






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






24. Less than or equal to symbol






25. A statement that assigns a value to a variable.






26. adds an item to a list






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






28. reads just one line of a text file & keeps track of where in the file you're at






29. A logical operator which returns a value of True if either of the conditions is true.






30. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.






31. Less than symbol






32. Prints a string to the screen which is converted using repr()






33. turns an object into an integer






34. Greater than or equal symbol.






35. A statement that breaks out of a loop.






36. Adds something to a variable






37. add AND assignment operator






38. floor division AND assignment operator






39. Prints a string to the screen which is converted using repr()






40. Symbol to add things together






41. subtract AND assignment operator






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






43. empties the file






44. This statement exits a function. The remaining lines of the function are not executed.






45. Symbol used to create comments






46. A statement that displays a value on the screen.






47. Symbol used to create comments






48. turns an object into an integer






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






50. assignment operator







Sorry!:) No result found.

Can you answer 50 questions in 15 minutes?


Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests