Know your Python!

Question 1 of 10

Medal-premium 1

What type of language is Python?

Select one of the following:

  • Low-level

  • High-level

  • Interpreted

Question 2 of 10

Medal-premium 1

Which of the following are Interpreted languages?

Select one or more of the following:

  • Python

  • C

  • C++

  • BASIC

  • Perl

Question 3 of 10

Medal-premium 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

Question 4 of 10

Medal-premium 1

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

Select one of the following:

  • import

  • print

  • echo

Question 5 of 10

Medal-premium 1

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

Select one of the following:

  • nono

  • nani

  • nano

  • nino

Question 6 of 10

Medal-premium 1

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

Select one of the following:

  • exit

  • quit

  • exit()

  • quit()

Question 7 of 10

Medal-premium 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

Question 8 of 10

Medal-premium 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

Question 9 of 10

Medal-premium 1

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

Select one of the following:

  • .p

  • .py

  • .pyt

  • .pyth

Question 10 of 10

Medal-premium 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)

Icon_fullscreen

Know your Python!

educ8ict
Quiz by , created over 3 years ago

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

Eye 120
Pin 3
Balloon-left 0
Tags
educ8ict
Created by educ8ict over 3 years ago
Close