120-140

120-140

University

20 Qs

quiz-placeholder

Similar activities

Mid Exam

Mid Exam

12th Grade - University

20 Qs

M2-3_W4

M2-3_W4

University

20 Qs

KUIS TIK

KUIS TIK

9th Grade - University

20 Qs

ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9

ASESMEN DIAGNOSTIK INFORMATIKA KELAS 9

9th Grade - University

20 Qs

Systems, Applications, Programming, and Embedded Software

Systems, Applications, Programming, and Embedded Software

8th Grade - University

20 Qs

Math G7 Chapter 3 Mastering Significant Figures and Estimation

Math G7 Chapter 3 Mastering Significant Figures and Estimation

7th Grade - University

20 Qs

Web Application - PHP Repetition

Web Application - PHP Repetition

University

15 Qs

GRADE 3 1ST SEM 4th QUIZ MS EXCEL

GRADE 3 1ST SEM 4th QUIZ MS EXCEL

3rd Grade - University

20 Qs

120-140

120-140

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

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

FREE Resource

AI

Enhance your content in a minute

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

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

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?