Python Quiz 1 (Beginning of lesson 4)

Python Quiz 1 (Beginning of lesson 4)

12th Grade

10 Qs

quiz-placeholder

Similar activities

Python ex1

Python ex1

10th Grade - University

10 Qs

Neural Networks Strcutures

Neural Networks Strcutures

12th Grade

9 Qs

Python Functions and Method

Python Functions and Method

10th - 12th Grade

15 Qs

PCEP Prep - Week 0 (CFU)

PCEP Prep - Week 0 (CFU)

12th Grade

8 Qs

Data Processing

Data Processing

9th - 12th Grade

15 Qs

B18.3-Tin10

B18.3-Tin10

12th Grade

10 Qs

Reto 7

Reto 7

12th Grade

10 Qs

Hardware Basics Term Challenge

Hardware Basics Term Challenge

12th Grade

10 Qs

Python Quiz 1 (Beginning of lesson 4)

Python Quiz 1 (Beginning of lesson 4)

Assessment

Quiz

Instructional Technology

12th Grade

Medium

Created by

Susanti Susanti

Used 9+ times

FREE Resource

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.

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?