Search Header Logo

Python Quiz 1

Authored by Ilja Rjabkovs

Computers

12th Grade

Python Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Kāda ir pareiza sintakse "Hello World" izvadīšanai Python valodā?

print("Hello World")

echo "Hello World"

echo("Hello World");

p("Hello World")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kā Python kodā var ievietot vienas rindas komentārus?

#
//
/*
--

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Kā izveidot mainīgo ar skaitlisko vērtību 5?

x = 5

x = int(5)

Abas pārējās atbildes ir pareizas

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Kā izveidot mainīgo skaitli 2.8 ar peldošo punktu?

x = float(2.8)

x = 2.8

Abas pārējās atbildes ir pareizas

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Kāda ir pareizā sintakse mainīgā "x" vai objekta "x" tipa izvade?

print(typeof x)

print(typeOf(x))

print(typeof(x))

print(type(x))

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kāds ir pareizais veids, kā Python izveidot funkciju?

function myfunction():

def myFunction():

create myFunction():

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kā sākt rakstīt If paziņojums (if statement)?

if x > y:

if (x > y)

if x > y then:

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?