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. Symbol to divide by the number to the right of the symbol






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






3. Reads the contents of the file you can assign the result to a variable.






4. modulo






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






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






7. Greater than or equal symbol.






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






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






10. sets the file's current position






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






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






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






14. adds an item to a list






15. absolute value






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






17. A statement that breaks out of a loop.






18. Symbol used to create comments






19. exponent AND assignment operator






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






21. turns an object into a string






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






23. adds an item to a list






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






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






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






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






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






29. Symbol to subtract things from each other






30. Reads just one line of a text file.






31. unction to read one line of a file






32. prints its parameter to the console






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






34. Adds something to a variable






35. The extension for Python scripts






36. floor division






37. multiply AND assignment operator






38. asks the user for a response and returns that response






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






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






41. floor division AND assignment operator






42. Less than symbol






43. exponent AND assignment operator






44. End header line.






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






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






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






48. A data type for representing numbers with fractional values.






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






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







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