Python introduction

Python introduction

University

15 Qs

quiz-placeholder

Similar activities

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

Data Warehouse - Foundations

Data Warehouse - Foundations

University

10 Qs

GIS Unit III

GIS Unit III

University

15 Qs

ロジックテスト (Đề kiểm tra năng lực IT)

ロジックテスト (Đề kiểm tra năng lực IT)

University

12 Qs

ICT Unit-2

ICT Unit-2

University

20 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

Robotics Prelim

Robotics Prelim

University

15 Qs

Python introduction

Python introduction

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

ALBERTO HILARIO

Used 137+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command will display the text 'Hello world!' on the screen?

print(Hello world!)

print "Hello world!"

print("Hello world!")

print = "Hello world!"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command will ask the user his/her age correctly?

age = input("How old are you?")

age = input(How old are you?)

input("How old are you?") = age

how_old_are_you = input()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function will convert a number to a string?

int()

str()

chr()

ord()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of this command: print ("5" + "3")

8

"8"

"5" + "3"

53

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function will convert a string containing only digits to a number?

int()

srt()

chr()

ord()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement will be executed if the variable x is less than 20?

if x > 20:

if x <> 20:

if x == 20:

if x < 20:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these tests checks if the variable x is the same as 'Hello'?

x = "Hello"

x != "Hello"

x == "Hello"

x <> "Hello"

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?

Discover more resources for Computers