Quiz #5 - Python

Quiz #5 - Python

University

13 Qs

quiz-placeholder

Similar activities

Estructuras Selectivas C++

Estructuras Selectivas C++

7th Grade - Professional Development

10 Qs

DPA-T11  Project Tracking

DPA-T11 Project Tracking

University

11 Qs

Q2 programación en python

Q2 programación en python

University

12 Qs

Componentes electrónicos

Componentes electrónicos

University

10 Qs

KMAP

KMAP

University

10 Qs

Fundamentos del Análisis de Datos GRUPO 1

Fundamentos del Análisis de Datos GRUPO 1

University

10 Qs

OSI Model

OSI Model

University

15 Qs

TEKNOLOGI LAYANAN JARINGAN (XI TKJ)

TEKNOLOGI LAYANAN JARINGAN (XI TKJ)

University

10 Qs

Quiz #5 - Python

Quiz #5 - Python

Assessment

Quiz

Instructional Technology

University

Practice Problem

Medium

Created by

Carmeli Marie Joy Samson

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?