120-140

120-140

University

20 Qs

quiz-placeholder

Similar activities

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

Java Basics, operators and variables (CH/PT)

Java Basics, operators and variables (CH/PT)

University

16 Qs

10-mavzu

10-mavzu

University

15 Qs

quiz1B1

quiz1B1

7th Grade - University

20 Qs

Python Temel Konuları Testi

Python Temel Konuları Testi

10th Grade - University

20 Qs

Quiz Pemrograman Python

Quiz Pemrograman Python

10th Grade - University

15 Qs

CMDP2063 Unix and C Programming

CMDP2063 Unix and C Programming

University

15 Qs

Pyhton Debugging Questions

Pyhton Debugging Questions

University

25 Qs

120-140

120-140

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Ілияс Тілепалды

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How is a method different from a regular function?

Method is inside a class

Method takes self as first parameter

Methods run faster

Functions are always static

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

How to add attributes to a class?

Assign in __init__

Use self.attribute = value

Use def keyword

Use import

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in Python?

A class deriving from another

Copying a method

Making global variables

Running a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to override a parent method?

Redefine it in child class

Use override keyword

Use def twice

Use import

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the difference between a class and an object?

Class is a blueprint

Object is an instance

Class is data

Object defines a class

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is math.floor(0o10)?

8

10

0

9

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is returned by int(math.pow(3, 2))?

6

9

error, third argument required

error, too many arguments

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?