Sgiliau Python

Sgiliau Python

9th - 12th Grade

70 Qs

quiz-placeholder

Similar activities

ACT practice 12th grade

ACT practice 12th grade

9th - 12th Grade

65 Qs

Unit 9 Comparing Functions Question Pool

Unit 9 Comparing Functions Question Pool

12th Grade

65 Qs

Scatter Plot 2

Scatter Plot 2

10th - 12th Grade

70 Qs

DAT301m

DAT301m

9th - 12th Grade

70 Qs

Unit 6 Review

Unit 6 Review

9th - 12th Grade

70 Qs

Post-Test Review

Post-Test Review

9th - 12th Grade

75 Qs

Ffurf Safonol Cymysg

Ffurf Safonol Cymysg

10th Grade

70 Qs

Sgiliau Python

Sgiliau Python

Assessment

Quiz

Mathematics

9th - 12th Grade

Practice Problem

Hard

Created by

T Wood

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Mae côd efo llinell mewnbwn:

oedran = input("Beth yw eich oedran?").

Os mae defnyddiwr yn teipio 5 i mewn, pa fath o werth fydd oedran yn cael ei storio fel?

Llinyn (str)

"5"

Cyfanrif (int)

5

Rhestr (list)

[5]

Degolyn (float)

5.0

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Pa ddull sy'n ychwanegu gwerth 7 at ddiwedd rhestr?

.append(7)

.insert(7)

.count(7)

.index(7)

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Pa ffwythiannau sy'n troi llinyn fel "5" mewn i rif mae'r cyfrifiadur yn gallu gwneud syms efo?

round( )

int( )

whole( )

num( )

float( )

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Pa gyfarwyddyd (command) yn Python sy'n achosi i raglen ddianc dolen (loop) yn syth?

return

if

try

break

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Pa werthoedd am pwysau ac oedran sy'n galluogi i'r côd yn y datganiad 'if' yma cael eu gweithredu:

if pwysau < 100 and oedran >= 18:

pwysau = 100

oedran = 20

pwysau = 120

oedran = 15

pwysau = 95

oedran = 18

pwysau = 19

oedran = pwysau * 2

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Sut ydy llinell newydd yn cael ei gynrychioli mewn llinyn?

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Pa ddull sy'n dychwelyd True os mae llinyn ond efo llythrennau?

llinyn.isalphanum()

llinyn.isalpha()

llinyn.isletters()

llinyn.isword()

Create a free account and access millions of resources

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?