GoConqr has a new look! Let us know what you think.

Quiz

Python Test

wahi narsisian 22 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (22)

  1. 1What are the data types in Python ?
    1. ANumbers, Strings
    2. BStrings, Integers
    3. CIntegers, Floats
  2. 2When we use input() built-in function what type of variable do we get ?
    1. AText
    2. BString
    3. CNumber
  3. 3What is the output of this command:
    res = (5 + 6) * 2 + 30 / 3
    print(res)
    1. A32.0
    2. B17.3
    3. C117.2
  4. 4How we can cast or change the type of the number in Python. Let say we have a variable:
    number = 55
    How we can change it to string variable
    1. Astr = string(number)
    2. Bstr = str(number)
    3. Cstr = number
  5. 5How we can define a "boolean" variable in Python ?
    1. Amy_boolean = true
    2. Bmy_boolean = True
    3. CBoth are true
  6. 6What is the output of this code ?
    a = 2
    if (a > 4)
    print("Yes")
    else:
    print("No")
    1. AYes
    2. BNo
    3. CSyntax Error
  7. 7What is the output ?
    a = 34
    b = 10
    if (a % 2 == 0) and (b == 10):
    if (a < 50):
    print("Inner if")
    else:
    print("else")

    1. Aelse
    2. BInner if
    3. CNo output
  8. 8What is the output of this code ?
    i = 8
    while i < 10:
    print(i)
    i += 1
    1. AError
    2. B8
      9
      10
    3. C8
      9
  9. 9What do we need to change in this code in order to make it correct ?
    number = input("Input a number between 1-5: ")
    while number != 4:
    print(number)
    number = input("Input a number between 1-5: ")
    1. ANothing
    2. B"4"
    3. Cbreak statement
  10. 10What is the output of this code ?
    for i in range(1,10,2):
    print(i)
    1. Anumbers from 1 to 10
    2. Bnumbers from 1 to 10 except 2
    3. C1,3,5,7,9

Information

Description
Technologies Quiz on Python Test, created by wahi narsisian on 19/01/2018.
Language
English
Views
4
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?