Skills101
← Python — Beginner

Python Beginner — Test 1

15 questions15 minPass: 60%+20 XP on first passFree sample test

15 questions · 15 minutes · beginner level, with an explanation for every answer.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What is the output?

    x = "5"
    y = 2
    print(x * y)
    
  2. Question 2

    What is the output?

    print(7 // 2, 7 % 2, 7 / 2)
    
  3. Question 3

    What is the output?

    nums = [4, 8, 15, 16]
    nums.append(23)
    print(len(nums), nums[-2])
    
  4. Question 4

    What does input() return in Python 3?

  5. Question 5

    Which data type is immutable?

  6. Question 6

    What is the output?

    a, b = 3, 4
    a, b = b, a
    print(a, b)
    
  7. Question 7

    What is the output?

    for i in range(1, 10, 3):
        print(i, end=" ")
    
  8. Question 8

    What is the value of bool("False")?

  9. Question 9

    Which keyword skips the rest of the current loop iteration and moves to the next one?

  10. Question 10

    What is the output?

    count = 0
    while count < 5:
        count += 2
    print(count)
    
  11. Question 11

    What is the output?

    print("Hi" + "!" * 3, len("Hi" * 2))
    
  12. Question 12

    What is the output?

    s = "placement"
    print(s[0], s[-1], s[2:5])
    
  13. Question 13

    What is the output?

    print(type(3 / 1).__name__, type(3 // 1).__name__)
    
  14. Question 14

    What is the output?

    n = 15
    if n % 3 == 0 and n % 5 == 0:
        print("FizzBuzz")
    elif n % 3 == 0:
        print("Fizz")
    else:
        print(n)
    
  15. Question 15

    Which of these is NOT a valid variable name in Python?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →