Day3 - Python STT

Day3 - Python STT

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python Test 1

Python Test 1

Professional Development

10 Qs

Gen. Assembly Recap Day 1

Gen. Assembly Recap Day 1

Professional Development

15 Qs

UDC 2022

UDC 2022

Professional Development

10 Qs

Mastering KineMaster

Mastering KineMaster

Professional Development

10 Qs

KOE034: Sensors and Instruments

KOE034: Sensors and Instruments

Professional Development

11 Qs

Maintain Files and Folders

Maintain Files and Folders

Professional Development

10 Qs

OWASP Top 10

OWASP Top 10

Professional Development

10 Qs

Computer Hardware and Software Quiz

Computer Hardware and Software Quiz

Professional Development

10 Qs

Day3 - Python STT

Day3 - Python STT

Assessment

Quiz

Computers

Professional Development

Medium

Created by

ICT Academy of Kerala

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct operator for power(xy)?

X^y

X**y

X^^y

None of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these is floor division?

/

//

%

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?

Since “susan” is not a value in the set, Python raises a KeyError exception

It is executed fine and no exception is raised, and it returns None

Since “susan” is not a key in the set, Python raises a KeyError exception

Since “susan” is not a key in the set, Python raises a syntax error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements create a dictionary?

d = {}

d = {“john”:40, “peter”:45}

d = {40:”john”, 45:”peter”}

All of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The output of the code above is

Key Error

4

Math

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Media Image

Assume the key is the student's id and the value is the grade. Which of the following code will get the grade of student id 102?

grades[102]

grades.get(102)

grades[2]

grades[3]

grades.key(102)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code above

3.9

4

Syntax error

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?