educ8ict
Quiz por , criado more than 1 year ago

GCSE Python Quiz sobre Know your Python!, criado por educ8ict em 28-08-2013.

157
4
0
educ8ict
Criado por educ8ict quase 11 anos atrás
Fechar

Know your Python!

Questão 1 de 10

1

What type of language is Python?

Selecione uma das seguintes:

  • Low-level

  • High-level

  • Interpreted

Explicação

Questão 2 de 10

1

Which of the following are Interpreted languages?

Selecione uma ou mais das seguintes:

  • Python

  • C

  • C++

  • BASIC

  • Perl

Explicação

Questão 3 de 10

1

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

Selecione uma das seguintes:

  • 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

Explicação

Questão 4 de 10

1

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

Selecione uma das seguintes:

  • import

  • print

  • echo

Explicação

Questão 5 de 10

1

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

Selecione uma das seguintes:

  • nono

  • nani

  • nano

  • nino

Explicação

Questão 6 de 10

1

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

Selecione uma das seguintes:

  • exit

  • quit

  • exit()

  • quit()

Explicação

Questão 7 de 10

1

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

Selecione uma das seguintes:

  • time

  • datetime

  • yeardate

  • yeardatetime

Explicação

Questão 8 de 10

1

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

Selecione uma das seguintes:

  • time

  • datetime

  • yeardate

  • yeardatetime

Explicação

Questão 9 de 10

1

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

Selecione uma das seguintes:

  • .p

  • .py

  • .pyt

  • .pyth

Explicação

Questão 10 de 10

1

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

Selecione uma das seguintes:

  • time.sleep2

  • time.sleep(0.2)

  • time.sleep(2)

  • time.sleep(2000)

Explicação