Coding With Python- Introductory Quiz

Coding With Python- Introductory Quiz

University

13 Qs

quiz-placeholder

Similar activities

Блиц-опрос по логике

Блиц-опрос по логике

9th Grade - University

14 Qs

Uji Pemahaman Berpikir Komputasional

Uji Pemahaman Berpikir Komputasional

7th Grade - University

15 Qs

Sistematizacija gradiva IX

Sistematizacija gradiva IX

9th Grade - University

16 Qs

C_i_Quiz

C_i_Quiz

University

12 Qs

PDM LS01 - Quiz 1

PDM LS01 - Quiz 1

University

15 Qs

Welcome questions

Welcome questions

University

14 Qs

XI 5_UH XI INFORMATIKA

XI 5_UH XI INFORMATIKA

2nd Grade - University

10 Qs

Arrays in CQuiz

Arrays in CQuiz

1st Grade - University

10 Qs

Coding With Python- Introductory Quiz

Coding With Python- Introductory Quiz

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Doreen Dilip

Used 2+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to take input from a user in Python?

cin >> name

scanf(name)

input("Enter your name: ")

get(name)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of this code?

8

53

Error

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid Python variable name?

2value

value_2

value-2

@value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data types is immutable?

List

Dictionary

Set

Tuple

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the range(3) function return in a loop?

[1, 2, 3]

[0, 1, 2]

[0, 1, 2, 3]

[3, 2, 1]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement correctly defines a function in Python?

function greet():

def greet:

define greet():

def greet():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the result of this code?

1

2

3

Error

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?