Aditya Dogra - Study24x7
Aditya Dogra
Connections 38
Followers 36
Following 53

Aditya Dogra

Live in Lucknow,India, Uttar Pradesh
• Profile
• About
• Connections
###### About

A learner

• Lives in Lucknow, Uttar Pradesh
24 Sep 2020 03:25 PM

All keywords in Python are in _________

A

lower case

B

UPPER CASE

C

Capitalized

D

None of the mentioned

Write a comment
24 Sep 2020 03:23 PM

Which of the following is not a keyword?

A

eval

B

assert

C

nonlocal

D

pass

Write a comment
24 Sep 2020 03:21 PM

Which of the following is an invalid variable?

A

my_string_1

B

1st_string

C

foo

D

_

Write a comment
24 Sep 2020 03:19 PM

What is the maximum possible length of an identifier?

A

31 characters

B

63 characters

C

79 characters

D

none of the mentioned

Write a comment
24 Sep 2020 03:17 PM

Is Python case sensitive when dealing with identifiers?

A

yes

B

no

C

machine dependent

D

none of the mentioned

Write a comment
21 Sep 2020 01:02 PM

What is tail recursion?

A

A recursive function that has two base cases

B

A function where the recursive functions leads to an infinite loop

C

A recursive function where the function doesn’t return anything and just prints the values

D

A function where the recursive call is the last thing executed by the function

Write a comment
21 Sep 2020 01:01 PM

Only problems that are recursively defined can be solved using recursion.

A

true

B

false

Write a comment
21 Sep 2020 01:00 PM

Which is the most appropriate definition for recursion?

A

A function that calls itself

B

A function execution instance that calls another execution instance of the same function

C

A class method that calls another class method

D

An in-built method that is automatically called

Write a comment
21 Sep 2020 12:57 PM

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

A

print(t[3])

B

t[3] = 45

C

print(max(t))

D

print(len(t))

Write a comment
21 Sep 2020 12:55 PM

Which of the following is a Python tuple?

A

[1, 2, 3]

B

(1, 2, 3)

C

{1, 2, 3}

D

{}

Write a comment