educ8ict
Quiz by , created more than 1 year ago

GCSE Python Quiz on Know your Python!, created by educ8ict on 28/08/2013.

164
4
0
educ8ict
Created by educ8ict about 11 years ago
Close

Know your Python!

Question 1 of 10

1

What type of language is Python?

Select one of the following:

  • Low-level

  • High-level

  • Interpreted

Explanation

Question 2 of 10

1

Which of the following are Interpreted languages?

Select one or more of the following:

  • Python

  • C

  • C++

  • BASIC

  • Perl

Explanation

Question 3 of 10

1

Which of the following is a benefit of using Interpreted languages?

Select one of the following:

  • Someone else does the work for you

  • They are easy to learn and have lots of uses

  • They are quicker than other types of language

Explanation

Question 4 of 10

1

Which of the following statements would you use to output text in Python?

Select one of the following:

  • import

  • print

  • echo

Explanation

Question 5 of 10

1

Which of the following can be used to edit Python code?

Select one of the following:

  • nono

  • nani

  • nano

  • nino

Explanation

Question 6 of 10

1

What should you type to end a Python session in the terminal?

Select one of the following:

  • exit

  • quit

  • exit()

  • quit()

Explanation

Question 7 of 10

1

What is the name of the module you would load to create a delay of a set number of seconds between commands?

Select one of the following:

  • time

  • datetime

  • yeardate

  • yeardatetime

Explanation

Question 8 of 10

1

What is the name of the module used to identify the date and current time?

Select one of the following:

  • time

  • datetime

  • yeardate

  • yeardatetime

Explanation

Question 9 of 10

1

Which of the following is the correct file extension for a Python file?

Select one of the following:

  • .p

  • .py

  • .pyt

  • .pyth

Explanation

Question 10 of 10

1

The following commands show the time module being used to sleep for 2 seconds. Which is correct?

Select one of the following:

  • time.sleep2

  • time.sleep(0.2)

  • time.sleep(2)

  • time.sleep(2000)

Explanation