Know your Python!

Description

GCSE Python Quiz on Know your Python!, created by educ8ict on 28/08/2013.
educ8ict
Quiz by educ8ict, updated more than 1 year ago
educ8ict
Created by educ8ict over 11 years ago
164
4

Resource summary

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)
Show full summary Hide full summary

Similar

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
OpenSource Programming
Faheem Ahmed
Python
Kirstie Wu
Basic Python - Lists
Rebecca Noel