placeholder image to represent content

Python Built-in Functions

Quiz by Sudha Krishnan

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
20 questions
Show answers
  • Q1
    print(abs(-23.5)) displays _______
    -23
    23
    24
    23.5
    30s
  • Q2
    ord('+') displays _____
    43
    63
    42
    65
    30s
  • Q3
    print(ord('d')) displays _______
    100
    98
    96
    97
    30s
  • Q4
    chr(48) returns _____
    0
    A
    a
    space
    30s
  • Q5
    bin(23) returns _____
    0b10110
    0b11000
    0b1111
    0b10111
    30s
  • Q6
    type('a') returns ______
    <class 'float'>
    <class 'str'>
    <class 'alp'>
    <class 'int'>
    30s
  • Q7
    id() function in python returns ______ of the variable in memory.
    name
    value
    type
    address
    30s
  • Q8
    If lst = [20, 34, 56, 12] what does min(lst) return?
    56
    34
    20
    12
    30s
  • Q9
    If lst=[21, 76,98,23] then what is max(lst) ?
    21
    76
    error
    98
    30s
  • Q10
    If lst=[10,20,30,40] then what does sum(lst) return?
    90
    100
    40
    10
    30s
  • Q11
    If x=25, then format(x,'b') returns _________
    10111
    11001
    10110
    11010
    30s
  • Q12
    If f=25.23456 what does format(f,'0.2f') return?
    25.23456
    25.234560
    25.23
    25.24
    30s
  • Q13
    format(25, 'o') is ______
    32
    11001
    31
    25
    30s
  • Q14
    If n1=17.89, what is round(n1, 1)?
    18
    17.9
    17.8
    17.89
    30s
  • Q15
    round(-18,3) returns ______
    -18.3
    -18
    -19.3
    -19
    30s

Teachers give this quiz to your class