SS Teach us - Study24x7
Social learning Network
sangeetha Cover image
sangeetha
SS Teach us
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Class 12 (PCM) Java Technologies Databases Python Technologies
See more
8 followers study24x7 08 Jul 2020 07:32 AM study24x7 study24x7

What will be the output of the following Python statement?>>>print('new' 'line')

A

Error

B

Output equivalent to print ‘new\nline’

C

newline

D

 new line

study24x7
Write a comment
8 followers study24x7 08 Jul 2020 07:30 AM study24x7 study24x7

What arithmetic operators cannot be used with strings?

A

_

B

+

C

*

D

all of these

study24x7
Write a comment
8 followers study24x7 08 Jul 2020 07:29 AM study24x7 study24x7

The output of executing string.ascii_letters can also be achieved by:

A

string.letters

B

 string.ascii_lowercase_string.digits

C

string.lowercase_string.uppercase

D

string.ascii_lowercase_string.digits

study24x7
Write a comment
8 followers study24x7 08 Jul 2020 07:27 AM study24x7 study24x7

What will be the output >>>"abcd"[2:]

A

a

B

ab

C

cd

D

dc

study24x7
Write a comment
8 followers study24x7 08 Jul 2020 07:25 AM study24x7 study24x7

What is the output >>>"a"+"bc"

A

a

B

bc

C

bca

D

abc

study24x7
Write a comment
8 followers study24x7 02 Jul 2020 08:25 PM study24x7 study24x7

Which options are correct to create an empty set in Python?

A

()

B

empty set

C

set()

D

{}

study24x7
Write a comment
8 followers study24x7 02 Jul 2020 08:14 PM study24x7 study24x7

To start Python from the command prompt, use the command ______

A

execute python

B

run python

C

python

D

exe python

study24x7
Write a comment
8 followers study24x7 02 Jul 2020 08:13 PM study24x7 study24x7

________ is a simple but incomplete version of a function.

A

Stub

B

Function

C

Function Header

D

Recursive function

study24x7
Write a comment
8 followers study24x7 02 Jul 2020 08:11 PM study24x7 study24x7

Which module in Python supports regular expressions?

A

re

B

regex

C

reg

D

none of these

study24x7
Write a comment
8 followers study24x7 02 Jul 2020 08:09 PM study24x7 study24x7

Given a function that does not return any value, what value is shown when executed at the shell?

A

int

B

bool

C

void

D

none

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages