Search Header Logo

IOAC - ML Batch Pre-Assessment -4th-Feb

Authored by KVCH CORPORATE

Professional Development

Professional Development

Used 1+ times

IOAC - ML Batch Pre-Assessment -4th-Feb
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

Which of the following is not a keyword used in Python language?

Pass

Eval

Assert

Nonlocal

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python code-compiled or interpreted?

The code is both compiled and interpreted

Neither compiled nor interpreted

Only compiled

Only interpreted

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Amongst which of the following is / are the logical operators in Python?

and

or

not

All of the mentioned above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the operator ** in Python?

Exponentiation

Modulus

Floor division

None of the mentioned above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, ___ defines a block of statements.

Block

Loop

Indentation

None of the mentioned above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

The output of this Python code would be:

>>> x={1:”X”,2:”Y”,3:”Z”}

>>> del x

the del method does not exist for the dictionary

the del would delete the values present in the dictionary

the del would delete the entire dictionary

the del would delete all the keys in a dictionary

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

 Study the following program:

i = 1:  

while True:  

   if i%3 == 0:  

      break  

   print(i)  

Which of the following is the correct output of this program?

1 2 3

3 2 1

1 2

Invalid syntax

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 Professional Development