wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Introduction to Programming, variable, I/O

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

איזה מהמשתנים הבאים מוגדר נכון

a)

1st_variable

b)

first-variable

c)

first_variable

d)

first variable

2.

איזה טיפוס של משתנה יכול להכיל שני ערכים בלבד

a)

int

b)

float

c)

bool

d)

string

3.

print(type(5)) מה יהיה הפלט של

a)

bool

b)

str

c)

float

d)

int

4.

(5 // 2) מה יהיה הפלט של

a)

2

b)

2.5

c)

3

d)

1

5.

איך כותבים הערות בפייתון

a)

// This is a comment

b)

<-- This is a comment -->

c)

# This is a comment

d)

/* This is a comment */

6.

מהו הפלט של (10%3 )?

a)

1

b)

3

c)

0

d)

2

7.

מה תהיה התוצאה של 5//17

a)

3

b)

0

c)

2

d)

1

8.

result = 7 / 2 מאיזה טיפוס תהיה התוצאה

a)

float

b)

int

c)

str

d)

bool

9.

מה יהיה הפלט?

a)

15

b)

"15"

c)

int

d)

שגיאה

10.

מה יהיה הפלט אם המשתמש הכניס מספר 12?


number = input("Enter a number")

print(f"The first digit of the number is: {number %10}")

a)

2

b)

1

c)

יש שגיאה בתוכנית