Aditya Dogra - Study24x7
Social learning Network

Welcome Back

Get a free Account today !

or
Aditya Dogra Cover image
Aditya Dogra
Aditya Dogra
Connections 38
Followers 36
Following 53
study24x7Aditya Dogra

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 study24x7 study24x7

 All keywords in Python are in _________

A

lower case

B

UPPER CASE

C

Capitalized

D

None of the mentioned

study24x7
Write a comment
24 Sep 2020 03:23 PM study24x7 study24x7

Which of the following is not a keyword?

A

eval

B


assert

C

nonlocal

D

pass

study24x7
Write a comment
24 Sep 2020 03:21 PM study24x7 study24x7

Which of the following is an invalid variable?

A

my_string_1

B

1st_string

C


foo

D

_

study24x7
Write a comment
24 Sep 2020 03:19 PM study24x7 study24x7

What is the maximum possible length of an identifier?

A

31 characters

B


63 characters

C

79 characters

D

none of the mentioned

study24x7
Write a comment
24 Sep 2020 03:17 PM study24x7 study24x7

Is Python case sensitive when dealing with identifiers?

A

 yes

B

 
no

C

machine dependent

D

none of the mentioned

study24x7
Write a comment
21 Sep 2020 01:02 PM study24x7 study24x7

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

study24x7
Write a comment
21 Sep 2020 01:01 PM study24x7 study24x7

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

A

true

B

false

study24x7
Write a comment
21 Sep 2020 01:00 PM study24x7 study24x7

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

study24x7
Write a comment
21 Sep 2020 12:57 PM study24x7 study24x7

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))

study24x7
Write a comment
21 Sep 2020 12:55 PM study24x7 study24x7

Which of the following is a Python tuple?

A

[1, 2, 3]

B


(1, 2, 3)

C

{1, 2, 3}

D

{}

study24x7
Write a comment