Search Header Logo

PROGRAMMING IN PYTHON (U19CA303) UNIT-I

Authored by M.Kasthuri Stephen

Computers

University

Used 4+ times

PROGRAMMING IN PYTHON (U19CA303) UNIT-I
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum possible length of an identifier?

31 characters
63 characters
79 characters
none of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid statement?

abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these in not a core data type?

Lists
Dictionary
Tuples
Class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

>>> str="HEBER"

>>>str[:2]

>>>

HE

BE

BERHE

HEBER

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In order to store values in terms of key and value we use what core data type.

list
tuple
class
dictionary

6.

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

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these is floor division?

/
//
%
None of the mentioned

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?