python quize prutor ( IIt kanpur ) - aktu Python course quize Answer

 PYTHON COURSE ( IIT KANPUR / PRUTOR /AKTU ) 

                         python quize answer (aktu -)

Python Programming Quiz – 1st Week Quiz Solution


[1]  What is the first step in write a program?

  • (a): Run Code
  • (b): Write Code
  • (c): Edit Code
  • (d): Check the Code

Answer:(b) Write Code

[2] Logical solution is a ____and clear _____procedure to solve the problem, known as _____.

  • (a): problem description, step-by-step, flowchart
  • (b): expression, assignment statement, identifier
  • (c): finite, step-by-step, Algorithm
  • (d): finite, assignment statement, algorithm

Answer: (c) finite, step-by-step, Algorithm

[3] Python is a/an___________ language (unlike C, C++, Java).

  • (a): Logical programming
  • (b): Interpreted programming
  • (c): Compiled programming
  • (d): Complex programming

Answer:(b) Interpreted programming .

[4] What is the extension of a python file?

  • (a): .py
  • (b): .pyt
  • (c): .py
  • (d): ptn
Answer: (c) .py

[5] In Python variables can be thought of as ______.

  • (a): labels
  • (b): containers
  • (c): boxes
  • (d): tumblers’

Answer:(a) labels

[6] Which function is used to get a string in Title Cases (First letter of each word in capital)?

  • (a): pint()
  • (b): title()
  • (c): strip()
  • (d): lstrip()

Answer: (b) title()

[7] Which function is used to get rid of the blank spaces on the left?

  • (a): strip()
  • (b): left()
  • (c): rstrip()
  • (d): lstrip()
Answer: (d) lstrip()


[8]A Python Program is a sequence of ___ and ___.

  • (a): data and information
  • (b): classes and objects
  • (c): strings and arrays
  • (d): definitions and commands

Answer: (d) definitions and commands

[9]What will be the output of : type(3.5) ?

  • (a): class double
  • (b): class str
  • (c): class int
  • (d): class ‘float’

Answer:(d) class ‘float

[10] What will be the output of : int(2.5) ?

  • (a): 1
  • (b): 3
  • (c): 2
  • (d): 2.5

Answer:(c) 2

 [11] Any input that you take in Python is of ___ data type.

  • (a): str
  • (b): int
  • (c): float
  • (d): char

Answer:(a) str

[12] What is the output of the following : 4//5 ?

  • (a): 1
  • (b): .8
  • (c): 0
  • (d):8

Answer:(c) 0

[13] What will be the value stored in y? : x, y, z = 1, 2, 3

  • (a): 1
  • (b): 2
  • (c): 3
  • (d): None of these

Answer: (b) 2

[14] Which of the following is a valid identifier or variable?

  • (a): well&1
  • (b): well 1
  • (c): well_1
  • (d): @well

Answer: (c) well_1

next quiz coming soon

Post a Comment

1 Comments

  1. New python quiz are uploaded in 2021 please go home button and chek the quiz

    ReplyDelete