• 1. 
    Arithmetic OperatorsWhat is a / ?

  • Addition
  • Subtraction
  • Division
  • Modulo
  • 2. 
    What does the print function do in python?

  • It's a variable.
  • It can input data.
  • It displays something like a string or integer
  • It loops the code.
  • 3. 
    Guess below expression

  • 2.0
  • 2
  • 9
  • 9.0
  • 4. 
    This list contains items of what data type?

  • String
  • Boolean
  • Float
  • Integer
  • 5. 
    Is this the correct code for a list?

  • Yes
  • No
  • 6. 
    Which python operator means 'less than or equal to'?

  • >=
  • >
  • <
  • <=
  • 7. 
    What is the value of the expression 100 / 25?

  • 4
  • 4.0
  • "4.0"
  • '4.0'
  • 8. 
    What will this print

  • True
  • False
  • 9. 
    What button do you press to compile (run) your program so that it runs in the shell?

  • F3
  • F5
  • F7
  • F9
  • 10. 
    Stores decimal numbers

  • INTEGER
  • REAL (Float)
  • STRING
  • CHARACTER
  • 11. 
    X = "5"y = 5print(x == y)

  • True
  • False
  • 12. 
    Which of these is the correct code for creating a list of names?

  • nameList = John, Harry, Jesse, John, Harry, Harry
  • nameList = ("John", "Harry", "Jesse", "John", "Harry", "Harry")
  • nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
  • nameList = [John, Harry, Jesse, John, Harry, Harry]
  • 13. 
    Which is the correct operator for power(x^y)?

  • X^y
  • X**y
  • X^^y
  • None of the mentioned
  • 14. 
    What the below code prints

  • 2
  • 2.0
  • 3
  • 3.0
  • 15. 
    What is the output of the following code :print 9//2

  • 4.5
  • 4.0
  • 4
  • 3
  • 16. 
    Which of these pieces of code would return the name "Harry" from the following list?

  • nameList()
  • nameList[1]
  • NameList(4)
  • nameList["4"]
  • 17. 
    Which symbols are used to open and close a list?

  • ( ) round brackets
  • ( ) curly brackets
  • [ ] square brackets
  • " " speech marks
  • 18. 
    What will be print

  • True
  • False
  • 19. 
    Stores True or False

  • INTEGER
  • REAL (Float)
  • STRING
  • BOOLEAN
  • 20. 
    Which colour will be replaced with yellow?

  • red
  • green
  • blue
  • none, yellow will be added to the list
Report Question
warning
access_time
  Time