Python Intership 2023

Python Intership 2023

University

20 Qs

quiz-placeholder

Similar activities

Revise and Edit

Revise and Edit

3rd Grade - University

21 Qs

Quiz Belum Berjudul

Quiz Belum Berjudul

6th Grade - University

20 Qs

Python Basic II

Python Basic II

11th Grade - University

20 Qs

Beginner Ch3_ Day & Date

Beginner Ch3_ Day & Date

1st Grade - University

18 Qs

Python Assessment-2

Python Assessment-2

University

20 Qs

Trivia Time - Finale

Trivia Time - Finale

1st Grade - University

21 Qs

AI (Artificial Intelligence)

AI (Artificial Intelligence)

University

20 Qs

Present Simple

Present Simple

2nd Grade - University

20 Qs

Python Intership 2023

Python Intership 2023

Assessment

Quiz

Education

University

Medium

Created by

sumathi arvind

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who developed Python Programming Language?

Wick van Rossum

Rasmus Lerdorf

Guido van Rossum

Niene Stom

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to define a block of code in Python language?

Indentation

Key

Brackets

All of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

1 2 3

error

1 2

none of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What are the values of the following Python expressions?

512, 64, 512

512, 512, 512

64, 512, 64

64, 64, 64

Answer explanation

Explanation: Expression 1 is evaluated as: 2**9, which is equal to 512. Expression 2 is evaluated as 8**2, which is equal to 64. The last expression is evaluated as 2**(3**2). This is because the associativity of ** operator is from right to left. Hence the result of the third expression is 512.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is a built-in function in python?

factorial()

print()

seed()

sqrt()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python code?

a

B

C

D

abcd

error

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python program?

{‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’}

{‘abc’, ‘p’, ‘q’, ‘san’}

{‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}

{‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?