Danielle Miles
Quiz por , criado more than 1 year ago

Key stage 3 introductory Python quiz

17
2
0
Danielle Miles
Criado por Danielle Miles aproximadamente 8 anos atrás
Fechar

Basic Python ICC DMI

Questão 1 de 15

1

What is print in python?

Selecione uma das seguintes:

  • A function

  • A class

  • A variable

  • An integer

Explicação

Questão 2 de 15

1

Which is the correct hello world program?

Selecione uma das seguintes:

  • Print("hello world")

  • print ("hello world")

  • print(hello world)

  • print("hello world")

Explicação

Questão 3 de 15

1

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

Selecione uma das seguintes:

  • IDE

  • IDLE

  • Command

  • Program

Explicação

Questão 4 de 15

1

There are two ways to write Python programs in IDLE.

Selecione uma das seguintes:

  • True

  • False

Explicação

Questão 5 de 15

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 6 de 15

1

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

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 7 de 15

1

What type of term is input in Python?

Selecione uma das seguintes:

  • A variable

  • A function

  • An integer

  • A string

Explicação

Questão 8 de 15

1

What is casting?

Selecione uma das seguintes:

  • Assigning a value to a variable

  • Setting input to a variable

  • Setting a data type

  • Changing the case of the text

Explicação

Questão 9 de 15

1

Which of the below programs will run correctly?

Selecione uma das seguintes:

  • age=input(22)

  • age=input("what is your age)

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

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

Explicação

Questão 10 de 15

1

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

Selecione uma das seguintes:

  • &

  • @

  • #

  • %

Explicação

Questão 11 de 15

1

What data type is float?

Selecione uma das seguintes:

  • Decimal

  • Integer

  • String

  • Operator

Explicação

Questão 12 de 15

1

What is an integer?

Selecione uma das seguintes:

  • A number which includes decimals

  • A text string

  • A mathematical function

  • A whole number

Explicação

Questão 13 de 15

1

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

Selecione uma das seguintes:

  • ==

  • #

  • =

  • @

Explicação

Questão 14 de 15

1

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

Selecione uma das seguintes:

  • Script mode

  • Interactive mode

Explicação

Questão 15 de 15

1

Functions within Python must not start with a capital letter.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação