Quiz #5 - Python

Quiz #5 - Python

University

13 Qs

quiz-placeholder

Similar activities

Introducción a la programación

Introducción a la programación

University

10 Qs

Machine Learning Internship Quiz

Machine Learning Internship Quiz

University

15 Qs

Vetores

Vetores

University

10 Qs

Programming in C language

Programming in C language

12th Grade - University

18 Qs

Go Pointers

Go Pointers

University

11 Qs

Python Internship Quiz

Python Internship Quiz

12th Grade - University

15 Qs

Quiz Inteligencia Artificial

Quiz Inteligencia Artificial

University

8 Qs

REPASO UNIDADES PROGRAMACION

REPASO UNIDADES PROGRAMACION

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?