wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

python

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

تستخدم مكتبه ....للتعامل مع المصفوفات

a)

scrapy

b)

kaers

c)

beautifulsoup

d)

numpy

2.

يمكن استخدام بايثون علي جميع انظمه التشغيل

a)

خطأ

b)

صح

3.

هذا الكود صحيح ام خطأ

# Assign a value

number = 50

# Check the is more than 50 or not

if (number >= 50):

print("You have passed")

else:

print("You have not passed")

a)

صح

b)

خطأ

4.

هذا الكود يشير الي

def convert(seconds):

seconds = seconds % (24 * 3600)

hour = seconds // 3600

seconds %= 3600

minutes = seconds // 60

seconds %= 60

return "%d:%02d:%02d" % (hour, minutes, seconds)

# Driver program

n = 12345

print(convert(n))

a)

تحويل الساعات الي دقائق

b)

تحويل الثوان الي ساعات

c)

تحويل الساعات الي ثوان

d)

تحويل الثوان الي دقائق

5.

تستخدم مكتبه pandas

a)

لعرض الفيديوهات

b)

لتخزين الصور

c)

لجمع المصفوفات

d)

لتحليل البيانات

6.

هذا الكود يمثل استدعاء مكتبه

# Import the library

import matplotlib.pyplot as plt

# Create two lists of numbers

x = [1, 2, 3, 4, 5]

y = [2, 4, 6, 8, 10]

# Create a line plot

plt.plot(x, y)

# Add labels to the axes

plt.xlabel("x")

plt.ylabel("y")

# Add a title to the plot

plt.title("A simple line plot")

# Display the plot

plt.show()

a)

matplotlib

b)

Keras

c)

Py Torch

d)

Scrapy

7.

من لغات البرمجة تأثيرا بالبايثون كوبرا

a)

خطأ

b)

صح

8.

(raise)تستخدم لتعريف دالة

a)

خطأ

b)

صح

9.

(def) تستخدم لرفع انشاء

a)

صح

b)

خطأ

10.

من مميزات بايثون انها

a)

منخفضة المستوي

b)

مغلقة المصدر

c)

مفتوحه المصدر ومنخضه المستوي

d)

مفتوحه المصدر وعالية المستوي