Python Certification Exam Preparation Set 2

hat is the output of the following?


Options are :

  • ab cd ef
  • ab\tcd\tef
  • ab cd ef (Correct)
  • abcdef

Answer :ab cd ef

Python Certification Exam Preparation Set 67

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


Options are :

  • string.ascii_lowercase+string.ascii_upercase (Correct)
  • string.ascii_lowercase_string.digits
  • string.lowercase_string.upercase
  • string.letters

Answer :string.ascii_lowercase+string.ascii_upercase

What will be the output of the following Python code?


Options are :

  • 1
  • 4 (Correct)
  • 5
  • 2
  • 7

Answer :4

What will be the output of the following Python code?


Options are :

  • 0
  • error
  • 2 (Correct)
  • 1

Answer :2

Python Certification Exam Preparation Set 7

What will be the output of the following Python code?


Options are :

  • 2 5 9 13 (Correct)
  • 1 3 8 12
  • 4 5 6 7
  • 1 2 3 4

Answer :2 5 9 13

What will be the output of the following Python code?


Options are :

  • none
  • a b c
  • 0 1 2
  • 0 a 1 b 2 c (Correct)

Answer :0 a 1 b 2 c

Suppose list1 is [2445,133,12454,123], what is max(list1)?


Options are :

  • 133
  • 2445
  • 12454 (Correct)
  • 123

Answer :12454

Python Certification Exam Preparation Set 56

What is the output of the following?


Options are :

  • ab++++++++cd++++++++ef
  • ab cd ef
  • ab+cd+ef
  • none (Correct)

Answer :none

What will be the output of the following Python code?


Options are :

  • 0 1 2 0 (Correct)
  • 0 1 2 3 0
  • 0 1 2
  • error

Answer :0 1 2 0

What will be the output of the following Python code snippet?


Options are :

  • a b c d
  • error
  • d c b a (Correct)
  • none

Answer :d c b a

Python Certification Exam Preparation Set 26

What will be the output of the following Python code?


Options are :

  • none
  • error
  • 0
  • no output (Correct)

Answer :no output

What will be the output of the following Python code?


Options are :

  • A
  • Error
  • n (Correct)
  • Daman

Answer :n

What will be the output of the following Python code snippet?


Options are :

  • 0 -2 (Correct)
  • error
  • 0
  • 0 1 2 3 4

Answer :0 -2

Python Certification Exam Preparation Set 15

What is the output of the following?


Options are :

  • Hello {} and {}
  • Error
  • Hello
  • Hello foo and bin (Correct)

Answer :Hello foo and bin

What will be the output of the following Python code?


Options are :

  • olleh
  • o (Correct)
  • h
  • hello

Answer :o

What will be the output of the following Python code?


Options are :

  • [1] [1, 2] [1, 2, 3]
  • [1, 2, 3] (Correct)
  • [1] [2] [3]
  • 1 2 3

Answer :[1, 2, 3]

Python Practice Test MCQ Certified Go from 0 to Expert hero Set 24

What will be the output of the following Python code?


Options are :

  • True False
  • False False
  • True True
  • False True (Correct)

Answer :False True

What will be the output of the following Python code?


Options are :

  • error
  • none
  • 1 2 3 4 5 6 (Correct)
  • 1 2 3 4 5 6 7

Answer :1 2 3 4 5 6

What will be the output of the following Python code?


Options are :

  • 0.333333
  • 0.333333:.2
  • 0.33 (Correct)
  • Error

Answer :0.33

Python Certification Exam Preparation Set 56

What will be the output of the following Python code?


Options are :

  • 10
  • 4
  • [1,3,6,10] (Correct)
  • [1,3,5,7]

Answer :[1,3,6,10]

What will be the output of the following Python code?


Options are :

  • 1
  • 1 2 3 4 5 6
  • 1 3 5 7 9 11 (Correct)
  • 1 2

Answer :1 3 5 7 9 11

What will be the output of the following Python code?


Options are :

  • Peter Pan
  • Peter Smith
  • John Pan (Correct)
  • John Smith

Answer :John Pan

Python Certification Exam Preparation Set 25

What will be the output of the following Python code?


Options are :

  • 3
  • 5
  • 0
  • 4 (Correct)

Answer :4

What is the output of the following?


Options are :

  • Hello 0 and 1
  • Hello foo and bin (Correct)
  • Error
  • Hello {0} and {1} foo bin

Answer :Hello foo and bin

Which of the following matrices will throw an error in Python?


Options are :

  • a
  • d
  • c
  • b (Correct)

Answer :b

Python Practice Test MCQ Certified Go from 0 to Expert hero Set 23

What will be the output of the following Python code snippet?


Options are :

  • ['ad', 'ae', 'af', 'bd', 'be', 'bf', 'cd', 'ce', 'cf'] (Correct)
  • [['da', 'db', 'dc'], ['ea', 'eb', 'ec'], ['fa', 'fb', 'fc']]
  • ['da', 'ea', 'fa', 'db', 'eb', 'fb', 'dc', 'ec', 'fc']
  • [['ad', 'bd', 'cd'], ['ae', 'be', 'ce'], ['af', 'bf', 'cf']]

Answer :['ad', 'ae', 'af', 'bd', 'be', 'bf', 'cd', 'ce', 'cf']

What will be the output of the following Python code snippet?


Options are :

  • None
  • nothing is printed (Correct)
  • error

Answer :nothing is printed

Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:


Options are :

  • [0, 1, 2, 3]
  • [0.0, 0.5, 1.0, 1.5] (Correct)
  • [0, 1, 2, 3, 4]
  • [0.0, 0.5, 1.0, 1.5, 2.0]

Answer :[0.0, 0.5, 1.0, 1.5]

Python Certification Exam Preparation Set 63

What will be the output of the following Python code snippet?


Options are :

  • ['ab', 'ef', 'gh', "] (Correct)
  • ['ab', 'ef', 'gh']
  • ('ab', 'ef', 'gh', ")
  • ('ab', 'ef', 'gh')

Answer :['ab', 'ef', 'gh', "]

What will be the output of the following Python code?


Options are :

  • 5 6 7 8
  • error (Correct)
  • 5 6 7 8 9
  • 5 6 7 8 9 10 11 12 13 14 15 .

Answer :error

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions