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. A logical operator which requires two expressions to both be true.






2. unction to read one line of a file






3. Adds something to a variable






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






5. Function to empty the contents of a file - no recovery is possible






6. deletes an item from a list






7. Function to read the contents of a file






8. Symbol to subtract things from each other






9. Symbol to add things together






10. Symbol to divide by the number to the right of the symbol






11. Function to open or read a file






12. Command to print to the screen






13. Prevents a runtime error from stopping the program.






14. rounds a number to the number of decimal points you choose






15. add AND assignment operator






16. Symbol to divide by the number to the right of the symbol






17. Argument variable






18. Function to write something to a file






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






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






21. An operator to check whether two variables refer to the same object.






22. square root






23. Adds a new line character






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






25. Argument variable






26. Less than or equal to symbol






27. modulo






28. The keyword beginning a header that will create a new function.






29. Where the parameters go. A necessary punctuation after any function even if it's empty.






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






31. A statement that breaks out of a loop.






32. turns an object into a string






33. empties the file






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






35. Function to read the contents of a file






36. assignment operator






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






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






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






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






41. End header line.






42. End header line.






43. Greater than symbol






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






45. Symbol to multiply things






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






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






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






49. Less than or equal to symbol






50. modulus 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