Search Header Logo

Class 12 Part 2

Authored by Rajitha V

Other

12th Grade

Used 9+ times

Class 12 Part 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid variable

my_string_1
1st_string
foo
_

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are local variable names beginning with an underscore discouraged?

they are used to indicate a private variables of a class
they confuse the interpreter
they slow down execution
none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a keyword?

eval
assert
nonlocal
pass

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct operator for power(xy )?

X^y
X**y
X^^y
none

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these is floor division?

/
//
%
none

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these in not a core data type?

Lists
Dictionary
Tuples
class

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a function that does not return any value, What value is thrown by default when executed in shell.

int
bool
void
none

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?