Aktu python quiz 1-answers

       Aktu python quiz 1- answers








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


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


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


Que- 4. What is the extension of a python file?


(a): .py

(b): .pyt

(c): .py

(d): pthn

Answer: (c) .py


Que- 5. Which statement is correct?


(a): print(hello world)

(b): print “hello world!”

(c): printf(“hello world!”)

(d): print(“hello world”)

Answer: (d) print(“hello world”)


Que -6.  In Python variables can be thought of as ______.


(a): labels

(b): containers

(c): boxes

(d): tumblers’

Answer:(a) labels


Que- 7. 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()


Que- 8.  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()


Que- 9.  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


Que- 10. 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’


Que- 11. What will be the output of : int(2.5) ?


(a): 1

(b): 3

(c): 2

(d): 2.5

Answer:(c) 2


Que- 12. Any input that you take in Python is of ___ data type.


(a): str

(b): int

(c): float

(d): char

Answer:(a) str

Que- 13. What is the output of the following : 4//5 ?


(a): 1

(b): .8

(c): 0

(d):8

Answer:(c) 0


Que- 14. 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 


Que- 15. 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

Comments

Popular posts from this blog

AKTU : 9 Computer System Security Quiz answer

AKTU : 8 Computer System Security Quiz answer

T20 squad team