Interesting quiz

DS140223-DS_TA

In Python 3, the maximum value for an integer is 263 - 1:
a.True
b.False

Which of the following are valid ways to specify the string literal foo’bar in Python:

a.‘foo’‘bar’
b.“”“foo’bar”“”
c.‘foo’bar’
d.‘foo’bar’
e,“foo’bar”

Which of the following is not a Python built-in function:

a.repr()
b.diff()
c.map()
d.round()
e.isinstance()

Which of the following is true about user- defined functions in Python?

a. Every function should have return statement at the end
b. The name of the functions defined by the user should follow some guidelines
c. The body of the function is indented and is enclosed by the brackets
d. None of the above

Which of the following is not a user-defined function?

a.all()
b.sort()
c.string()
d.sqrt()

4 Likes
  1. a] false
  2. a] ‘foo’‘bar’
  3. a] repr()
    4.c] The body of the functions is indented and is enclosed by the brackets
    5 a] all()
1 Like
  1. a)
  2. a)
  3. a)
  4. c)
  5. a)
1 Like
  1. a
    2.a
    3.a
    4.c
    5.a
1 Like
  1. False
    2 e
    3.a
    4.d
    5.d
1 Like

false
‘foo’‘bar’
repr()
The body of the functions is indented and is enclosed by the brackets
all()

1 Like

1 ) b
2 ) a
3 ) a
4 ) c
d ) a

1 Like

1.False
2. e
3.
4.c
5.a

1 Like

1.a
2.a
3.a.
4.c
5.b

1 Like

false
a option
a option
c option
a option

1 Like

False
b,e
e.isinstance()
c
all()

1 Like

very welldone…! keep learning :smile:

very welldone…! keep learning :smile:

very welldone…! keep learning :smile:

very welldone…! keep learning :smile: @gauravdhote46 @kalyanikolusu11 @Avinash8694

great…!keep learning :smile: @anithasuthar2000 @vaishu.swap10112016 @alphywilson007 @sindhiyadevit @suryaphani56

1 Like