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 its parameter to the console






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






3. modulus AND assignment operator






4. Less than symbol






5. square root






6. subtract AND assignment operator






7. turns an object into a string






8. Symbol used to create comments






9. Adds something to a variable






10. Greater than symbol






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






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






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






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






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






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






17. A statement that breaks out of a loop.






18. floor division AND assignment operator






19. divide AND assignment operator






20. exponentiation






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






22. add AND assignment operator






23. Symbol to multiply things






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






25. Prevents a runtime error from stopping the program.






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






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






28. floor division






29. subtract AND assignment operator






30. This statement causes an exception.






31. Function to write something to a file






32. Greater than or equal symbol.






33. Argument variable






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






35. add AND assignment operator






36. A logical operator which returns a value of True if either of the conditions is true.






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






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






39. square root






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






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. Function to open or read a file






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






44. A built-in function that takes any value and converts it to an integer if possible - or complains otherwise.






45. turns an object into an integer






46. This keyword creates a new class object which is a user-defined type - like a factory for creating objects.






47. Adds a new line character






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






49. multiply AND assignment operator






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







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