Built-in Python Functions

9 Questions | Total Attempts: 152

Please wait...
Python Programming Quizzes & Trivia

This quiz is on some of the built-in functions in Python 3. 2.

Questions and Answers
  • 1. 
    Which built-in function converts a number or string to an integer?
  • 2. 
    Which built-in function returns a string version of an object?
  • 3. 
    Which built-in function returns the type of an object?
  • 4. 
    Which built-in function returns the absolute value of a number?
  • 5. 
    Which built-in function returns True if all elements of the iterable are true (or if the iterable is empty)?
  • 6. 
    Which built-in function returns True if any element of the iterable is true. If the iterable is empty, return False?
  • 7. 
    Which built-in function returns a string containing a printable representation of an object, but escapes the non-ASCII characters in the string returned by repr() using \x, \u or \U escapes?
  • 8. 
    Which built-in function converts an integer number to a binary string?
  • 9. 
    Which built-in function converts a value to a Boolean, using the standard truth testing procedure?