0% found this document useful (0 votes)
82 views10 pages

Computer Science

يشرح المستند طريقة قراءة بيانات من ورقة إكسل باستخدام فيجوال بيزيك دوت نت. يتضمن المستند مصطلحات هامة وشرح لها مثل أدو، نيمسبيس، كلاس، أوبجكت. كما يشرح طريقة استخدام أوليدب للاتصال بقاعدة البيانات.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views10 pages

Computer Science

يشرح المستند طريقة قراءة بيانات من ورقة إكسل باستخدام فيجوال بيزيك دوت نت. يتضمن المستند مصطلحات هامة وشرح لها مثل أدو، نيمسبيس، كلاس، أوبجكت. كما يشرح طريقة استخدام أوليدب للاتصال بقاعدة البيانات.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

‫شرح وبنك أسئله‬

‫للصف األول الثانوى الفصل الدراسي الثانى‬


‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

‫ملخص وبنك أسئله‬


‫‪Summary and question bank‬‬
‫للصف األول الثانوى‬
‫‪First grade Secondary‬‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬
‫‪Computer and Information Technology‬‬

‫‪( 1‬د‪ /‬حنان عبد القادرمحمد موجه عام القاهرة)‬


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

‫الفصل الدراسي الثانى‬

‫رقم‬ ‫الموضوع‬ ‫الدرس‬


‫قراءة بيانات ورقة اكسل باستخدام الفيجوال بيزيك دوت نت‪.‬‬
‫الدرس‪9‬‬
‫‪Reading data from an Excel sheet using Visual Basic.net.‬‬
‫‪2‬‬ ‫كتابة كود المشروع ‪.Writing the Project Code.‬‬ ‫الدرس‪01‬‬
‫إضافة خريطة وعلم الدولة لبرنامج األطلس العربي اإللكتروني‪.‬‬
‫الدرس‪00‬‬
‫)‪Adding the country flag and its map in (Electronic Arabic Atlas‬‬
‫‪program‬‬
‫إضافة صوت السالم الوطني لبرنامج األطلس العربي اإللكتروني‪.‬‬
‫‪Adding the national anthem sound file to (Electronic Arabic‬‬ ‫الدرس‪02‬‬
‫‪Atlas) program‬‬
‫إضافة فيديو المعالم السياحية لبرنامج األطلس العربي اإللكتروني‪.‬‬
‫‪Adding the video file of tourist attractions to (Electronic Arabic‬‬ ‫الدرس‪01‬‬
‫‪Atlas) program.‬‬

‫‪( 2‬د‪ /‬حنان عبد القادرمحمد موجه عام القاهرة)‬


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

:LESSON 9 9‫الدرس‬
.‫قراءة بيانات ورقة اكسل باستخدام الفيجوال بيزيك دوت نت‬
.Reading data from an Excel sheet using Visual Basic.net
Important terms ‫مصطلحات هامة‬
: ADO (ActiveX Data Object(
‫( ليست مجرد أدوات عادية ولكن يمكن‬Control Tools) ‫هو تقنية متقدمة يمكن استخدامها لجعل أدوات التحكم‬
‫جعلها تتعامل مع قواعد بيانات من خالل برمجيات مناسبة وعمل مشاريع وتطبيقات تتعامل مع قواعد البيانات‬
(Windows Applications – Web Application) .‫المتعددة‬
It is an advanced technology that can be used to design "Controls" not as ordinary
tools; but "Controls" that get access to databases over appropriate applications and
develop applications and Programming Projects i.e (Windows Applications and Web
Application) that manipulate data from a diversity of databases.
‫( التي تتعامل مع مصادر البيانات مثل‬Classes) ‫ عبارة عن مجموعة من التصنيفات أو االفئات‬ADO.NET ‫حيث‬
‫ويعتبر‬. ‫ وكل هذه البرمجيات تستطيع بناء قواعد البيانات والتعامل معها‬، SQL server ‫ و‬Oracle ‫و‬Access
Framewor‫جزء من إطار العمل‬ADO.NET
Where; ADO.NET is a set of classes that provides access to multiple data sources;
such as "Microsoft SQL Server, Microsoft Access, and Oracle ". These softwares can
create/manipulate databases; ADO.NET is a part of the Framework.
Class
‫ والوظائف أو‬Properties ‫هو المخطط الذي يتم إنشاء الكائنات منه ويحدد به العديد من العناصر مثل الخصائص‬
Class ‫ يتم إنشاؤه من التصنيف‬Object ‫ والتي يأخذها أي كائن‬Events ‫ واألحداث‬Methods ‫الوسائل‬
A (Class) is the blueprint/plan/template, from which the individual objects, are created.
It is the blueprint that describes the details which any object takes its Properties,
Methods and, Events); and are derived from the (Class).
Object
An Object is characterized by: :‫يتميز الكائن بأن له‬
.The properties that describe and specify an Object ‫ تصف الكائن وتحدده‬Properties ‫خصائص‬
The events that occur on an Object. . ‫ يمكن أن تقع عليه‬Events ‫أحداث‬
.‫ ويقصد بها ما يمكن أن يفعله الكائن عند وقوع حدث معين‬Methods ‫وظائف أو وسائل‬
methods or actions that an object can perform; upon the occurrence of a particular event
‫( ويتم انشاؤه من‬Object Oriented) ‫والكائن هو وحدة البناء األساسية في لغات البرمجة كائنية التوجه‬
Class .‫ ليس له وجود إال بعد إنشائه من تصنيف معين‬Object ‫( حيث أن أي كائن‬Class). ‫تصنيف معين‬
An (Object) is the basic constructive element in Object Oriented Programming; it is
created from a defined class. Thus an (Object) exists only after a certain (Class) has
been created.
)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬3
‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

Namespace
.‫( التي يمكن استخدامها عند االحتياج إليها‬Classes) ‫يحتوى على مجموعة من التصنيفات‬
A Namespace contains a set of related classes that can be used when needed.
Framework
:‫ الذي يُمكنك من اآلتي‬Visual Studio.NET ‫هو إطار العمل لجميع تطبيقات‬
Is the platform for Visual Studio. NET applications that:
.‫ مثل التطبيقات المكتبية وتطبيقات الويب‬.NET ‫إنتاج العديد من تطبيقات‬
Enables developers to create applications like (Desktop applications , Web
applications and Mobile applications
. ‫توفير بيئة تشغيل لهذه التطبيقات‬
Provides a development environment for running all applications.

The Framework is composed of : : ‫ من‬Framework ‫ويتكون إطار العمل‬


CLR ( Common Language Runtime .) The execution engine ‫بيئة التشغيل‬
System Class Libraries . The .NET class libraries ‫مكتبات تصنيفات النظام‬
Compilers ‫مترجمات‬
Other elements. ‫أدوات أخرى‬
Structured Query Language- SQL
‫هي لغة التعامل مع ملفات قواعد البيانات‬
It is a programming language designed for managing database files.
Select
‫ وتستخدم هذه الجملة في استرجاع سجالت من جدول أو من عدة جداول في قاعدة البيانات‬SQL ‫إحدى جمل لغة‬
It is one of the SQL statements used to retrieve records from a table or from multiple
tables in the database
DataSource
(.‫مصدر البيانات ) ملف موجود داخل وسط التخزين أو جدول موجود بالذاكرة‬
The source of data (A file located in a storage media or a table stored in the memory).
OleDb
‫( يمكن استخدامها للتعامل مع قواعد البيانات‬Classes) ‫ يحتوي على مجموعة تصنيفات‬Namespace ‫هو‬
Microsoft Office‫التي تم تصميمها من خالل‬
It is a Namespace that contains a set of Classes that can be used to manipulate databases
that have been designed using Microsoft Office
Object Linked & Embedded Database stands for ‫وهو اختصار‬

)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬4


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

Provider
.‫الخاص به‬Data provider ‫همزة الوصل بين قاعدة البيانات والفيجوال ولكل برنامج من برامج قواعد البيانات‬
Provider is a link between the database and Visual basic. Each Database program has its
own Data Provider ‫( وهو‬Connection, Command and, DataAdapter)
OleDb.OleDbConnection
‫ بغرض فتح قناة اتصال بورقة العمل‬MyConnection ‫( يمكن إنشاء متغير منه وليكن‬Class) ‫يعتبر تصنيف‬
.‫التي بها البيانات في ملف البيانات‬
It is a (Class) from where we can create a variable "MyConnection "out of this class; to
open a communication channel with the worksheet that holds data; in data file.
OleDbCommand
‫ ويقوم هذا المتغير بتنفيذ إستعالم بموجبه‬MyCommand ‫( يمكن إنشاء متغير منه وليكن‬Class) ‫يعتبر تصنيف‬
.‫يتم الحصول على البيانات من ملف البيانات‬
It is a Class from where we can create a variable "MyCommand" out of this class; to
execute a query and get data from data file.
OleDb.OleDbDataAdapter
(Data Adapter) ‫ ويعمل هذا المتغير كمحول للبيانات‬da ‫( يمكن إنشاء متغير منه وليكن‬Class) ‫يعتبر تصنيف‬
.‫ الموجود بالذاكرة‬dt ‫من قاعدة البيانات لجدول البيانات لدى المتغير‬
It is a Class from where we can create a variable "da" out of this class; this variable
works as a converter of data (Data Adapter) from the database to the data table for the
variable dt located in the memory.
MyConnection.ConnectionString
‫عبارة عن خاصية تحتوي على المعلومات المطلوبة لفتح قناة اتصال‬
It’s a Property that contains the information required to open a communication channel
FilePat‫ و‬Data Source ‫و‬:Provider like ‫مثل‬
CommandText
SQL‫ الذي يحتوى على تعبير نصي يمثل جملة‬MyCommand ‫خاصية للمتغير‬
It is a Property for the variable MyCommand which contains a "String expression"
representing a SQL syntax
DataSet
‫ في ذاكرة الكمبيوتر يمثل جداول قاعدة‬ds ‫ والمتغير‬ds‫( يمكن إنشاء متغير منه وليكن‬Class) ‫يعتبر تصنيف‬
.‫(التي تم إحضارها من ملف البيانات إلى الذاكرة‬Data Table) ‫البيانات‬
It is a Class from where we can create a variable: ds. This variable in the computer's
memory represents database tables (Data Tables), which was brought from the data file
into memory.
)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬5
‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

DataTable
‫ في ذاكرة الكمبيوتر يمثل جدول يحفظ به‬dt ‫ والمتغير‬dt ‫( يمكن إنشاء متغير منه وليكن‬Class) ‫يعتبر تصنيف‬
.‫( التي تم إحضارها من ملف البيانات‬Data Table) ‫البيانات‬
We can create a variable out of this class: dt. This variable in the computer's memory
represents a table for saving data (Data Table), which was brought from the data file.
da.Fill (dt)
.‫( بالذاكرة‬DataTable) ‫ هي وسيلة لمأل الصفوف) السجالت (الموجودة في‬Fill ‫حيث‬
Where Fill is a way to fill the rows (records) in (DataTable) inside the memory.

‫مراحل استدعاء بيانات من قاعدة بيانات مخزنة على وسيط تخزين وتحويلها إلى جدول بيانات‬
.‫ ثم عرضها في الكائن المناسب على شاشة النموذج في لغة الفيجوال بيزيك دون نت‬،‫في الذاكرة‬
figures demonstrate the stages for retrieving data from a database saved in a storage
medium, and converting it to a data table in the memory, and then display it in the
appropriate object located on the interface window Form in Visual Basic.Net
language.

‫شرح عملى‬
‫من هنااااا‬

)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬6


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

:‫أسئله على الدرس التاسع‬


‫أسئله الصواب والخطأ‬:ً‫أوال‬
‫) أمام الجملة الخطأ‬x( ‫ضع عالمة (√) أمام الجملة الصحيحة و عالمة‬
‫ج‬ ‫السؤال‬
‫ يتم فتح قناة اتصال بين البرنامج الذي يتم إنشاءة بلغة الفيجوال بيزيك دوت نت وملف اكسل باستخدام‬-1
ADO.NET ‫أدوات‬
We open channel of communication between the programs that is created in
Visual basic Dot Net language and Excel file by using ADO.NET tools.
.‫ في إغالق قناة اإلتصال التي تم فتحها‬OleDbConnection ‫ يستخدم المتغير من نوع‬-2
Variable of type ( OleDbConnection) is used in closing the communication
channel that has been opened.
‫ تقنية متقدمة يمكن استخدامها لجعل أدوات التحكم تتعامل مع قواعد بيانات من خالل‬ADO -3
‫برمجيات مناسبة‬
ADO is an advanced technology that can be used to make controls access to
databases through appropriate applications
GetDatafromExcelSheet(FilePath As String, sql As ‫ القيمة الراجعة من الدالة‬-4
Strin ‫ من نوع‬String) As DataTable
The return value from the function “GetDatafromExcelSheet (FilePath As
String, sql As String) As DataTable” is of type String.
‫ هو المخطط الذي يتم إنشاء الكائنات منه‬Class -5
Class is the plan from which the individual objects, are created.
Sub .‫( باستخدام كلمة‬Function) ‫ يتم اإلعالن عن الدالة‬-6
The announcement of a Function is done by using the word "Sub".
.‫ ملف موجود داخل وسط التخزين أو جدول موجود بالذاكرة‬DataSource ‫ مصدر البيانات‬-7
The source of data A file located in a storage media or a table stored in the
memory .
.‫ بغرض فتح قناة اتصال بملف بيانات‬OleDbCommand ‫ يمكن استخدام متغير من نوع‬-8
You can use a variable of type (OleDbCommand) for the purpose of
opening a channel of communication data file
‫( في الذاكرة يحفظ فيه البيانات التي يتم إحضارها من ملف‬DataTable) ‫ يمكن إنشاء متغير من نوع‬-9
‫البيانات‬
You can create a variable of type (DataTable) in-memory ; in which we store
data that were brought from the data file.
.‫ بالذاكرة‬DataTable ‫هي وسيلة لمأل الصفوف السجالت الموجودة في‬Fill -01
Fill is a way to fill the rows records in (DataTable) inside the memory.

)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬7


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

‫أسئله األختيارمن متعدد‬:ً‫ثانيا‬


.‫ د‬،‫ ج‬،‫ ب‬،‫اختر اإلجابة الصحيحة من أ‬
......................... An Object is characterized by :‫ يتميز الكائن بأن له‬-0
Properties ‫ خصائص‬.‫أ‬
Events ‫ أحداث‬.‫ب‬
All of them ‫ كلهم‬.‫ج‬
Visual Studio NET. ‫ هو إطار العمل لجميع تطبيقات‬.…………….. -2
…………. Is the platform for Visual Studio NET.
Framework .‫أ‬
Events ‫ أحداث‬.‫ب‬
All of them ‫ كلهم‬.‫ج‬
‫ في الذاكرة يحفظ فيه البيانات التي يتم إحضارها من ملف البيانات‬.......... ‫ يمكن إنشاء متغير من نوع‬-1
You can create a variable of type ……. in-memory; in which we store data that were
brought from the data file.
Framework .‫أ‬
DataTable .‫ب‬
da.Fill .dt .‫ج‬
SQL ‫ الذي يحتوى على تعبير نصي يمثل جملة‬MyCommand ‫………… خاصية للمتغير‬. -4
It is a Property for the variable MyCommand which contains a "String expression"
representing a SQL syntax
DataSet .‫أ‬
DataTable .‫ب‬
CommandText .‫ج‬
....................‫ باسخدام جملة‬Table1 ‫ ألسترجاع جميع السجالت من جدول بيانات‬-5
Retrieve all records from a spreadsheet Table1 using the …………… statement
DataSet .‫أ‬
DataTable .‫ب‬
Select .‫ج‬

)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬8


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

................... ‫ يتم وضع القيمة الحرفية الثابتة بين عالمتى ’ ‘ عند استخدام‬-6
When using the …………… Condition the value assigned to string constant is placed
between quotations ‘ ’.
Where .‫أ‬
When .‫ب‬
Select .‫ج‬
................... ‫ تخصيص القيمة المستخدمة لقناة اإلتصال للخاصية‬-7
Assign the value used for the communication channel to the property..............
DataSet .‫أ‬
ConnectionString .‫ب‬
OleDb.OleDbDataAdapter .‫ج‬
................... ‫ فتح قناة اإلتصال باستخدام الوسيلة‬-8
Open the communication channel using the Method ……………….
DataSet .‫أ‬
Close .‫ب‬
Open .‫ج‬
.‫ سوف يمكن من فتح قناة اتصال بورقة العفل التي بها البيانات في ملف إكسيل‬............ ‫ المتغير‬-9
The Variable …………. that allows opening a channel of communication in the
worksheet that holds data in an Excel file
MyConnection as new OleDb.OleDbConnection .‫أ‬
MyConnection as new OleDb .‫ب‬
MyConnection as new Debatable.‫ج‬
.‫سوف يقوم بتنفيذ استعالم بموجه يتم الحصول على البيانات من ملف إكسيل‬........... ‫ المتغير‬-01
The Variable …will perform a `query by which you can get the data from an Excel file

MyCommand As a New OleDb.OleDbCommand .‫أ‬


MyCommand As a New OleDb.MyConnection .‫ب‬
MyCommand As a New OleDb.OleDb. CommandText . .‫ج‬

)‫ حنان عبد القادرمحمد موجه عام القاهرة‬/‫ (د‬9


‫شرح وبنك أسئله‬
‫للصف األول الثانوى الفصل الدراسي الثانى‬
‫لمادة الكمبيوتر وتكنولوجيا المعلومات‬

‫إعداد‬
‫د‪ /‬حنان عبدالقادر محمد‬

‫أنتظروا‬
‫باقى الدروس والمراحل االخري كمبيوترعربي ‪-‬‬
‫لغات‪ICT‬‬

‫‪( 11‬د‪ /‬حنان عبد القادرمحمد موجه عام القاهرة)‬

You might also like