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. Argument variable






2. Symbol to multiply things






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






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






5. turns an object into an integer






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






7. Symbol to add things together






8. subtract AND assignment operator






9. multiply AND assignment operator






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






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






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






13. End header line.






14. modulo






15. Command to print to the screen






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






17. turns an object into a string






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






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






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






21. deletes an item from a list






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






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






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






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






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






27. exponentiation






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






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






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






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






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






33. Symbol used to create comments






34. floor division






35. The extension for Python scripts






36. turns an object into a string






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






38. ,multi-line comment hard-code,Fix (data or parameters) in a program in such a way that they cannot easily be altered by the user.






39. floor division AND assignment operator






40. prints its parameter to the console






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






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






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






44. divide AND assignment operator






45. Greater than symbol






46. sets the file's current position






47. Symbol to multiply things






48. End header line.






49. Symbol to add things together






50. Holds the value of something - e.g. oh_hi = 4 where oh_hi is the 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