Search Header Logo

Python Session1 Test

Authored by Jayashree Darade

Computers

University

Used 4+ times

Python Session1 Test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is

Procedural Language

Object Oriented Language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To define a block of code Python use___________

Indentation

Curly Braces

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indentation refers to _____________

whitespaces at the beginning of the line

whitespaces at the end of the line

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

______ used to indicate the beginning of a code block

:

{

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

___________ describes the idea of wrapping data and the methods that work on data within one unit

Abstraction

Encapsulation

Inheritance

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Syntax for Inheritance in Python is ________

class childclass (baseclass):

class childclass : public baseclass

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Syntax for Object creation in Python is ________

ClassName ObjectName;

ObjectName = ClassName()

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?

Discover more resources for Computers