Know your Python!

educ8ict
Quiz by , created over 5 years ago

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

Eye 132
Pin 4
Balloon left 0
Tags
educ8ict
Created by educ8ict over 5 years ago
Basic Python - Strings
Rebecca Noel
Study on IoT systems design
Tomasz Cieplak
Python
Kirstie Wu
'Love and Relationships' Poem Themes
Lindis Dixon
Digital Citizenship Tips
Stacey Dunlap
Python Quiz
karljmurphy
Think Python
tsilvo2001
Basic Python - Print Formatting
Rebecca Noel
What is Python?
Daniel Ingram
Python
54671

Question 1

Question
What type of language is Python?
Answer
  • Low-level
  • High-level
  • Interpreted

Question 2

Question
Which of the following are Interpreted languages?
Answer
  • Python
  • C
  • C++
  • BASIC
  • Perl

Question 3

Question
Which of the following is a benefit of using Interpreted languages?
Answer
  • 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

Question
Which of the following statements would you use to output text in Python?
Answer
  • import
  • print
  • echo

Question 5

Question
Which of the following can be used to edit Python code?
Answer
  • nono
  • nani
  • nano
  • nino

Question 6

Question
What should you type to end a Python session in the terminal?
Answer
  • exit
  • quit
  • exit()
  • quit()

Question 7

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

Question 8

Question
What is the name of the module used to identify the date and current time?
Answer
  • time
  • datetime
  • yeardate
  • yeardatetime

Question 9

Question
Which of the following is the correct file extension for a Python file?
Answer
  • .p
  • .py
  • .pyt
  • .pyth

Question 10

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