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. Function to read the contents of a file






2. exponentiation






3. Reads just one line of a text file.






4. adds an item to a list






5. The extension for Python scripts






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






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






8. turns an object into a string






9. exponent AND assignment operator






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






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






12. ,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.






13. modulo






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






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






16. unction to read one line of a file






17. Symbol to subtract things from each other






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






19. deletes an item from a list






20. This statement causes an exception.






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






22. Less than or equal to symbol






23. Greater than or equal symbol.






24. writes stuff to the file






25. turns an object into a string






26. multiply AND assignment operator






27. unction to read one line of a file






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






29. exponent AND assignment operator






30. Symbol to add things together






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






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






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






34. turns an object into an integer






35. sets the file's current position






36. deletes an item from a list






37. Adds something to a variable






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






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






40. square root






41. absolute value






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






43. empties the file






44. modulus AND assignment operator






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






46. Symbol to add things together






47. End header line.






48. adds an item to a list






49. Symbol used to create comments






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







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