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. Modulus operator. It's the remainder after division






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






3. subtract AND assignment operator






4. floor division AND assignment operator






5. Turns a line into a comment instead of executable code.






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






7. writes stuff to the file






8. Function to read the contents of a file






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






10. unction to read one line of a file






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






12. 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






13. turns an object into a string






14. inserts an item inside a list at a certain index






15. modulo






16. single line comment






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






18. Less than symbol






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






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






21. Greater than symbol






22. unction to read one line of a file






23. adds an item to a list






24. Function to close a file - it will not be able to be used again unless the file is opened.






25. add AND assignment operator






26. End header line.






27. adds an item to a list






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






29. floor division






30. Create a variable.






31. Argument variable






32. Binary AND Operator copies a bit to the result if it exists in both operands. (a & b) will give 12 which is 0000 1100






33. subtract AND assignment operator






34. absolute value






35. Argument variable






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






37. assignment operator






38. Less than or equal to symbol






39. exponentiation






40. Symbol to add things together






41. multiply AND assignment operator






42. empties the file






43. This statement causes an exception.






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






45. Function to close a file - it will not be able to be used again unless the file is opened.






46. deletes an item from a list






47. End header line.






48. square root






49. Function to open or read a file






50. exponent AND 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