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. inserts an item inside a list at a certain index






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






3. Adds a new line character






4. Function to read the contents of a file






5. Greater than symbol






6. absolute value






7. turns an object into an integer






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






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






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






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






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






13. This keyword begins a header for a body that repeats until the condition is no longer true.






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






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






16. Writes stuff to the file.






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






18. add AND assignment operator






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






20. writes stuff to the file






21. modulus AND assignment operator






22. modulo






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






24. Create a variable.






25. assignment operator






26. Command to print to the screen






27. Adds something to a variable






28. single line comment






29. Evaluates to false if the variables on either side of the operator point to the same object and true otherwise. x is not y - here is not results in 1 if id(x) is not equal to id(y).






30. Function to open or read a file






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






32. subtract AND assignment operator






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






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






35. End header line.






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






37. This statement exits a function. The remaining lines of the function are not executed.






38. Create a variable.






39. Symbol to multiply things






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






41. floor division AND assignment operator






42. End header line.






43. turns an object into a string






44. Symbol to multiply things






45. exponent AND assignment operator






46. A string that begins with the % symbol and contains a sequence of printable characters and format specifiers that determine how values output should look.






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






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






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






50. Less than symbol







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