Know your Python!

Descrição

GCSE Python Quiz sobre Know your Python!, criado por educ8ict em 28-08-2013.
educ8ict
Quiz por educ8ict, atualizado more than 1 year ago
educ8ict
Criado por educ8ict mais de 10 anos atrás
156
4

Resumo de Recurso

Questão 1

Questão
What type of language is Python?
Responda
  • Low-level
  • High-level
  • Interpreted

Questão 2

Questão
Which of the following are Interpreted languages?
Responda
  • Python
  • C
  • C++
  • BASIC
  • Perl

Questão 3

Questão
Which of the following is a benefit of using Interpreted languages?
Responda
  • 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

Questão 4

Questão
Which of the following statements would you use to output text in Python?
Responda
  • import
  • print
  • echo

Questão 5

Questão
Which of the following can be used to edit Python code?
Responda
  • nono
  • nani
  • nano
  • nino

Questão 6

Questão
What should you type to end a Python session in the terminal?
Responda
  • exit
  • quit
  • exit()
  • quit()

Questão 7

Questão
What is the name of the module you would load to create a delay of a set number of seconds between commands?
Responda
  • time
  • datetime
  • yeardate
  • yeardatetime

Questão 8

Questão
What is the name of the module used to identify the date and current time?
Responda
  • time
  • datetime
  • yeardate
  • yeardatetime

Questão 9

Questão
Which of the following is the correct file extension for a Python file?
Responda
  • .p
  • .py
  • .pyt
  • .pyth

Questão 10

Questão
The following commands show the time module being used to sleep for 2 seconds. Which is correct?
Responda
  • time.sleep2
  • time.sleep(0.2)
  • time.sleep(2)
  • time.sleep(2000)

Semelhante

Python Quiz
karljmurphy
Think Python
tsilvo2001
Basic Python - Print Formatting
Rebecca Noel
What is Python?
Daniel Ingram
Python
54671
Basic Python - Strings
Rebecca Noel
Study on IoT systems design
Tomasz Cieplak
Python
Kirstie Wu
OpenSource Programming
Faheem Ahmed
Basic Python - Lists
Rebecca Noel