Danielle Miles
Quiz by , created more than 1 year ago

Key stage 3 introductory Python quiz

22
2
0
Danielle Miles
Created by Danielle Miles over 8 years ago
Close

Basic Python ICC DMI

Question 1 of 15

1

What is print in python?

Select one of the following:

  • A function

  • A class

  • A variable

  • An integer

Explanation

Question 2 of 15

1

Which is the correct hello world program?

Select one of the following:

  • Print("hello world")

  • print ("hello world")

  • print(hello world)

  • print("hello world")

Explanation

Question 3 of 15

1

What is the name of the Integrated Development environment for Python?

Select one of the following:

  • IDE

  • IDLE

  • Command

  • Program

Explanation

Question 4 of 15

1

There are two ways to write Python programs in IDLE.

Select one of the following:

  • True

  • False

Explanation

Question 5 of 15

1

When you open Python using IDLE it defaults to interactive mode.

Select one of the following:

  • True
  • False

Explanation

Question 6 of 15

1

In order to run a program written in script mode in IDLE you must save the program first.

Select one of the following:

  • True
  • False

Explanation

Question 7 of 15

1

What type of term is input in Python?

Select one of the following:

  • A variable

  • A function

  • An integer

  • A string

Explanation

Question 8 of 15

1

What is casting?

Select one of the following:

  • Assigning a value to a variable

  • Setting input to a variable

  • Setting a data type

  • Changing the case of the text

Explanation

Question 9 of 15

1

Which of the below programs will run correctly?

Select one of the following:

  • age=input(22)

  • age=input("what is your age)

  • age=int(input("what is your age")

  • age=int(input("what is your age?"))

Explanation

Question 10 of 15

1

What symbol do we use to identify comments in our code?

Select one of the following:

  • &

  • @

  • #

  • %

Explanation

Question 11 of 15

1

What data type is float?

Select one of the following:

  • Decimal

  • Integer

  • String

  • Operator

Explanation

Question 12 of 15

1

What is an integer?

Select one of the following:

  • A number which includes decimals

  • A text string

  • A mathematical function

  • A whole number

Explanation

Question 13 of 15

1

What symbol do we use to assign values to a variable?

Select one of the following:

  • ==

  • #

  • =

  • @

Explanation

Question 14 of 15

1

Which type of IDLE mode lets the program run as you create it?

Select one of the following:

  • Script mode

  • Interactive mode

Explanation

Question 15 of 15

1

Functions within Python must not start with a capital letter.

Select one of the following:

  • True
  • False

Explanation