Search Header Logo

Python Quiz 1 (Beginning of lesson 4)

Authored by Susanti Susanti

Instructional Technology

12th Grade

Used 9+ times

Python Quiz 1 (Beginning of lesson 4)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

Media Image

  1. What is the result of the following code snippet?

16

11

13

10

2.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

  1. Which of the following is used for string concatenation in Python?

+

-

*

/

3.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

Media Image

  1. What will be the output of the following code?

7

25

10

2

4.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

  1. Which logical operator in Python represents "AND"?

&

&&

||

and

5.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

  1. What function is used to take user input in Python?

input()

get_input()

user_input()

enter()

6.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

  1. What is the correct way to import the random module in Python?

import random

use random

from random import *

include random

7.

MULTIPLE CHOICE QUESTION

5 sec • 10 pts

Media Image

  1. What will be the output of the following code?

HelloWorld

Hello World

Helloworld

Error: Strings cannot be concatenated directly.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?