Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

quiz-placeholder

Similar activities

Classes in C++

Classes in C++

6th - 9th Grade

14 Qs

AP CSA Midterm Concept Review 1

AP CSA Midterm Concept Review 1

12th Grade

20 Qs

Java Vocab

Java Vocab

11th Grade

10 Qs

Object Oriented Programming in Python

Object Oriented Programming in Python

5th - 12th Grade

11 Qs

Object Oriented Programming Quizizz

Object Oriented Programming Quizizz

10th Grade - University

11 Qs

OOP in Python

OOP in Python

University

15 Qs

Java Test 1

Java Test 1

10th Grade

15 Qs

OOP Java

OOP Java

12th Grade

20 Qs

Python Skills

Python Skills

Assessment

Quiz

Science, Computers, Mathematics

1st Grade - Professional Development

Hard

Created by

Osmar García

Used 45+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the correct syntax for creating a variable that is bound to a set?

A

B

C

D

2.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

This code provides the ______ of the list of the numbers.

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the correct syntax for defining an __init__() method that takes no parameters?

A

B

C

D

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

What is the difference between class attributes and instance attributes?

Class attributes are shared by all instances of the class. Instance attributes may be unique just to that instance.

There is no difference between class attributes and isntance attributes.

Instance attributes can be charged, but class attributes cannot be changed.

Class attributes belong just to the class, not to instances of that class. Instance attributes are shared among all instances of a class.

5.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image

Which command will create a list from 10 down to 1? For example [10,9,8,7,6,5,4,3,2,1]

A

B

C

D

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What is the correct syntax for creating a variable that is bound to a dictionary?

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

What is the output of the code?

A

B

C

D

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?