Q 01/05

What is the name of the creator of the Python programming language?

A) Guido van Rossum

B) James Gosling

C) Bjarne Stroustrup

D) Linus Torvalds

Answer · why

A) Guido van Rossum

Python was created by Guido van Rossum, who first released it in 1991.

Q 02/05

Which keyword ends a function call and hands a value back to the caller?

A) `return`

B) `yield`

C) `break`

D) `exit`

Answer · why

A) `return`

`return` ends the function and passes its value to the caller; a function that falls off the end without one returns None, and `exit` is not a keyword...

Q 03/05

In what year was the first public version of Python released?

A) 1985

B) 2000

C) 1991

D) 2008

Answer · why

C) 1991

1991's release on February 20 came from Guido van Rossum, who had started the project as a Christmas hobby in 1989.

Q 04/05

What is the official style guide for Python code, promoting readability and consistency?

A) RFC 19

B) ISO 9001

C) ANSI C

D) PEP 8

Answer · why

D) PEP 8

PEP 8, the 'Style Guide for Python Code' written by Guido van Rossum and Barry Warsaw in 2001, sets conventions such as a 79-character line limit and ...

Q 05/05

How does Python define code blocks, unlike languages that use curly braces?

A) Indentation

B) Parentheses

C) Semicolons

D) Keywords

Answer · why

A) Indentation

Python's design philosophy emphasizes code readability with the use of significant indentation to define code blocks.

Want the full quiz?

Play the full Python Programming quiz — scored, streaked, and passable to a friend.

Play it on BrainPickle