script_programming_part_2+3

script_programming_part_2+3

University

49 Qs

quiz-placeholder

Similar activities

Midterm Examination-Advacomt (I-AINS) Asuncion

Midterm Examination-Advacomt (I-AINS) Asuncion

University

50 Qs

HYDROCARBONS_MASTERY EXAM

HYDROCARBONS_MASTERY EXAM

University

50 Qs

Data Structures Quiz

Data Structures Quiz

University

44 Qs

Artificial Intelligence

Artificial Intelligence

University

50 Qs

Data Structures

Data Structures

University

50 Qs

Quiz: Introduction to MSE

Quiz: Introduction to MSE

University

53 Qs

Ағылшын 2 сем 2 тест

Ағылшын 2 сем 2 тест

University

50 Qs

Sec-D  Javascript-1

Sec-D Javascript-1

12th Grade - University

52 Qs

script_programming_part_2+3

script_programming_part_2+3

Assessment

Quiz

Computers, Science

University

Practice Problem

Medium

Created by

Pavel Taskov

Used 24+ times

FREE Resource

AI

Enhance your content in a minute

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

49 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Q 1 - What is the output of print tuple[2:] if tuple = ′abcd ′ , 786, 2.23, ′ john ′ , 70.2?

′abcd ′ , 786, 2.23, ′ john ′ , 70.2

abcd

786, 2.23

2.23, ′ john ′ , 70.2

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Q 2 - What is the output of print tinytuple * 2 if tinytuple = 123, ′ john ′?

123, ′ john ′ , 123, ′ john ′

123, ′ john ′ * 2

Error

- None of the above.

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

3 - What is the output of print tinytuple * 2 if tinytuple = 123, ′ john ′?

3 - What is the output of print tinytuple * 2 if tinytuple = 123, ′ john ′?

123, ′ john ′ * 2

Error

None of the above.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

4 - Which of the following is correct about dictionaries in python?

Python's dictionaries are kind of hash table type.

They work like associative arrays or hashes found in Perl and consist of key-value pairs.

A dictionary key can be almost any Python type, but are usually numbers or strings. Values, on the other hand, can be any arbitrary Python object.

All of the above.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

5 - Which of the following function of dictionary gets all the keys from the dictionary?

getkeys

key

keys

None of the above.

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

6 - Which of the following function of dictionary gets all the values from the dictionary?

- getvalues

- value

- values

- None of the above.

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

7 - Which of the following function convert a string to an int in python?

intx[, base]

longx[, base]

floatx

strx

Access all questions and much more by creating a free account

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

Already have an account?