Search Header Logo

MODULES,ERROR AND EXCEPTION HANDLING

Authored by JALAJA SANU

Computers

11th Grade

Used 5+ times

MODULES,ERROR AND EXCEPTION HANDLING
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

2 mins • 1 pt

a+b=c,Identify the type of error.

Syntax Error

Logical Error

Semantics

Run time Error

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

When the grammatical rules of a programming language ,it will result in:

Semantics

Syntax Error

Logical Error

RunTime Error

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Trying to access a list element ,dictionary value which does not exist , results……………………………of error.

Runtime error

Logical Error

Syntax Error

Semantics Error

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

------------------ and -------------------- statements are used to prevent an exception from terminating a program

try,catch

try,except,

try

try,else

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Generates a random number from 0 to 1.

randomint()

random()

randomrange()

randoint()

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

a=20, B=10, C=a+b ;Will result in …………………………… exception.

ValueError

NameError

TypeError

Attribute Error

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Can we create a breakpoint using set,trace() ?

Yes

No

Maybe

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?