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. Prints a string to the screen which is a signed decimal.






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






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






4. floor division






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






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






7. Greater than or equal symbol.






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






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






10. modulo






11. exponent AND assignment operator






12. subtract AND assignment operator






13. The extension for Python scripts






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






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






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






17. Evaluates to true if it does not finds a variable in the specified sequence and false otherwise. x not in y - here not in results in a 1 if x is a member of sequence y.






18. add AND assignment operator






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






20. End header line.






21. Symbol to multiply things






22. square root






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






24. Less than symbol






25. assignment operator






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






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






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






29. adds an item to a list






30. Command to print to the screen






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






32. Greater than symbol






33. turns an object into a string






34. adds an item to a list






35. prints its parameter to the console






36. subtract AND assignment operator






37. Evaluates to true if it finds a variable in the specified sequence and false otherwise. x in y - here in results in a 1 if x is a member of sequence y.






38. Function to read the contents of a file






39. Function to write something to a file






40. Adds a new line character






41. Symbol to add things together






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






43. divide AND assignment operator






44. turns an object into an integer






45. add AND assignment operator






46. Argument variable






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






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






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






50. Adds something to a variable







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