Python Session 5

Python Session 5

Professional Development

10 Qs

quiz-placeholder

Similar activities

Python-quiz2

Python-quiz2

University - Professional Development

11 Qs

Sosialisasi BRIONE Data

Sosialisasi BRIONE Data

Professional Development

10 Qs

ER Model

ER Model

Professional Development

10 Qs

Software Security

Software Security

University - Professional Development

10 Qs

C Programming

C Programming

Professional Development

10 Qs

Advance MS Excel Tips and Tricks

Advance MS Excel Tips and Tricks

Professional Development

10 Qs

Interesting Bird Facts

Interesting Bird Facts

KG - Professional Development

11 Qs

Streams

Streams

Professional Development

10 Qs

Python Session 5

Python Session 5

Assessment

Quiz

Computers

Professional Development

Practice Problem

Medium

Created by

Hasan Bhagat

Used 3+ 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

20 sec • 1 pt

What error occurs when you try to access a column which is not there in a pandas dataframe

ValueError

IndexError

KeyError

SyntaxError

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not an Error type in python?

KeyError

IdeaError

ImportError

SyntaxError

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid variable name in python

df1

_var1_

@var

data_type

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a python reserved keyword

False

false

FALSE

F

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Consider a list X having 5 elements.

X= ['Apple','Tomato','Cat','Bag','Mouse'].

What would X[5] return?

Mouse

Raise an IndexError

[]

Empty list

None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the use of the input() function to input the age of a user. We want to check if the age is above 18 or not.

age= input('Enter age:')

if age>18:

print("Permitted")

else:

print("Not Permitted")

What will happen if the input is "24".

Permitted

Not Permitted

TypeError

24

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a reason for using exception handling?

Error reporting and logging

Makes the code robust

Separates the error prone code from other code

Debugging

All of the above

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?