Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

quiz-placeholder

Similar activities

Python_OOP_Intro_Quiz

Python_OOP_Intro_Quiz

University

13 Qs

user defined methods in java

user defined methods in java

10th Grade

13 Qs

RDBMS-QUIZ-27.01.2021

RDBMS-QUIZ-27.01.2021

University

10 Qs

Java Vocab

Java Vocab

11th Grade

10 Qs

Object Oriented Programming in Python

Object Oriented Programming in Python

12th Grade

10 Qs

Java Class vocabulary

Java Class vocabulary

9th Grade - University

12 Qs

Object Oriented Programming in Python

Object Oriented Programming in Python

5th - 12th Grade

11 Qs

Cloud Architecting - Week 5

Cloud Architecting - Week 5

University

20 Qs

Python Skills

Python Skills

Assessment

Quiz

Science, Computers, Mathematics

1st Grade - Professional Development

Hard

Created by

Osmar García

Used 50+ 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?