Quiz #5 - Python

Quiz #5 - Python

University

13 Qs

quiz-placeholder

Similar activities

Formativa 1 M

Formativa 1 M

University

10 Qs

Recuperación sesión 02

Recuperación sesión 02

University

11 Qs

Cuestionario sobre Programación en Python

Cuestionario sobre Programación en Python

University

10 Qs

INTRODUCCIÓN A LA PROGRAMACIÓN – UTB/MSIONTIC2022

INTRODUCCIÓN A LA PROGRAMACIÓN – UTB/MSIONTIC2022

University

15 Qs

Preguntas sobre C#

Preguntas sobre C#

University

10 Qs

Lógica de programación JAVA

Lógica de programación JAVA

University

18 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

NodeMcu - Programacion Nivel Intermedio

NodeMcu - Programacion Nivel Intermedio

University

10 Qs

Quiz #5 - Python

Quiz #5 - Python

Assessment

Quiz

Instructional Technology

University

Medium

Created by

Carmeli Marie Joy Samson

Used 9+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is Python syntax for creating a variable and assigning the number 10 to it?

def variable_name = 10

variable_name = 10

new variable_name = 10

variable_name == 10

2.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

Media Image

Which of the following defined variables is a string?

cool_variable_2

cool_variable_4

cool_variable_3

cool_variable_1

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What is the value of modulo_varibale in the following expressions?

modulo_variable = 14 % 4

3.5

56

2

4

4.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

How does one define multi-line string in Python?

***

Like

This

***

###

Like

This

###

" " "

like

This

" " "

5.

MULTIPLE CHOICE QUESTION

45 sec • 3 pts

How do you combine two strings?

string1 + string2

string1.concatenate(string2)

string1.combine(string2)

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the difference between float and int?

A float can only be used with whole numbers. An int can be any number with decimal point.

A float represents decimal quantities. An int represents whole numbers.

A float contains text information. An int is any number.

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What number is saved to exponented_variable in the following expression?

exponented_variable = 2 ** 4

16

8

32

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?