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. assignment operator






2. absolute value






3. Adds a new line character






4. Symbol to add things together






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






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






7. square root






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






9. returns the length of a string (number of characters)






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






11. Symbol used to create comments






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






13. Adds a new line character






14. End header line.






15. multiply AND assignment operator






16. divide AND assignment operator






17. exponentiation






18. Argument variable






19. floor division






20. sets the file's current position






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






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






23. Symbol to subtract things from each other






24. subtract AND assignment operator






25. subtract AND assignment operator






26. exponentiation






27. deletes an item from a list






28. Greater than or equal symbol.






29. Binary OR Operator copies a bit if it exists in eather operand. (a | b) will give 61 which is 0011 1101






30. Less than symbol






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






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






33. Function to write something to a file






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






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






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






37. Less than or equal to symbol






38. prints its parameter to the console






39. single line comment






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






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






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






43. Argument variable






44. unction to read one line of a file






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






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






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






48. Function to open or read a file






49. floor division AND assignment operator






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







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