• 1. 
    Python language was developed in what year?

  • 1985
  • 2001
  • 1991
  • 1820
  • 2. 
    What is a Count-Controlled loop?

  • for loop
  • while loop
  • 3. 
    To repeat a fixed number of times use a

  • while loop
  • for loop
  • if loop
  • indentation
  • 4. 
    To repeat until a particular condition is true use

  • while loop
  • for loop
  • if loop
  • indentation
  • 5. 
    Print("12"*3)What would this print?

  • 36
  • 121212
  • 24
  • 12*3
  • 6. 
    What sort of loop is this?

  • Count Controlled
  • Condition Controlled
  • 7. 
    What datatype will the answer be if the user enters 15 and 30?

  • Integer
  • String
  • Boolean
  • Float
  • 8. 
    What will this code print?

  • Print the word 'letter'.
  • Print a user input on one line.
  • Print a user input one letter at a time.
  • Print an Error.
  • 9. 
    Each item in a list has an index. What is the first index in a Python list?

  • 0
  • 1
  • a
  • A
  • 10. 
    A condition controlled loop is...

  • A while loop
  • A for loop
  • 11. 
    To solve a problem that requires the user to enter 10 numbers would use what type of iteration?

  • While loop
  • For loop
  • Variable
  • Selection
  • 12. 
    What will be the output of this code?

  • 1,2,3,4,5,6,7,8,9,10,11,12
  • 0,2,4,6,8,10
  • 2,4,6,8,10,12
  • 2,4,6,8,10
  • 13. 
    Which of these operators means EQUAL TO?

  • '='
  • '=>'
  • '<='
  • '=='
  • 14. 
    What output will this code produce?

  • 4
  • 2
  • 3
  • 5
  • 15. 
    What will the output be from the following Python code?Print("Hello world!")

  • NameError
  • Hello world!
  • "Hello world"
  • Print(Hello world!)
  • 16. 
    Data type for a whole number

  • String
  • Integer
  • Boolean
  • Float
  • 17. 
    If i want to continuously check for a correct answer, what loop would i use?

  • for loop
  • while loop
  • 18. 
    What will the output be from the following Python code?print(Hello world!)

  • Hello world!
  • SyntaxError
  • Hello world
  • print(Hello world!)
  • 19. 
    Which of these will allow me to count from 0-20 in steps of 5?

  • for x in range(0,20):print(x)
  • while x = (0,20,5):print(x)
  • for x in range(0,21,5):print(x)
  • for x in range(0,21,5):print(y)
  • 20. 
    A location in memory used to store data that can be changed.

  • Constant
  • Value
  • Variable
  • Iteration
  • 21. 
    A count controlled loop will..

  • Repeat code until a condition is met
  • Repeat code a specific amount of times
  • Repeat code a random amount of times
  • None of the above
  • 22. 
    What is the Python built-in function to converts a number to a string?

  • str()
  • int()
  • parseInt()
  • convert
  • 23. 
    What is the position of the name "Robert" in the following list:

  • 0
  • 1
  • 2
  • 3
  • 24. 
    What does the '#' allow you to do?

  • Repeat code
  • Comment on code
  • Print code
  • End code
  • 25. 
    A data type consisting of numbers, letters and symbols.

  • String
  • Integer
  • Float
  • Boolean
  • 26. 
    Which of these is correct Python conditional statement?

  • IF answer == "Yes":
  • if answer == "Yes"
  • if answer == "Yes":
  • if answer = "yes":
Report Question
warning
access_time
  Time