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. Symbol to divide by the number to the right of the symbol






2. add AND assignment operator






3. Writes stuff to the file.






4. Symbol used to create comments






5. assignment operator






6. The keyword beginning a header that will create a loop.






7. subtract AND assignment operator






8. exponentiation






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






10. Binary Ones Complement Operator is unary and has the efect of 'flipping' bits. (~a ) will give -60 which is 1100 0011






11. A logical operator which negates an expression so that it returns a value of True if the expression is false.






12. A statement that ends the current iteration of a loop but continues looping.






13. Function to open or read a file






14. Symbol to subtract things from each other






15. floor division AND assignment operator






16. Function to write something to a file






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






18. This keyword attempts to do something that would cause the program to crash if it were not for this statement.






19. The extension for Python scripts






20. Adds a new line character






21. A boolean operator that takes two strings and returns True if the first appears as a substring in the second.






22. Function to read the contents of a file






23. multiply AND assignment operator






24. The keyword beginning a header that will create a loop.






25. deletes an item from a list






26. A logical operator which compares two operands and produces True if they are equal and False otherwise






27. A logical operator which requires two expressions to both be true.






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






29. Symbol to add things together






30. square root






31. Symbol to multiply things






32. Adds a new line character






33. subtract AND assignment operator






34. square root






35. modulo






36. Reads the contents of the file you can assign the result to a variable.






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






38. Modulus operator. It's the remainder after division






39. Function to open or read a file






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






41. prints its parameter to the console






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






43. Command to print to the screen






44. modulo






45. Symbol used to create comments






46. adds an item to a list






47. Empties the file - watch out if you care about the file.






48. turns an object into a string






49. A keyword that does nothing but fill space to indicate code which will be written later.






50. writes stuff to the file







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