0% found this document useful (0 votes)
42 views2 pages

Sec1 February Exam 2017-2018

1) This document provides an exam on computer topics related to Excel functions and ADO.NET tools. 2) The first section contains questions about a code sample that defines a function to retrieve data from an Excel file. 3) The second section asks students to identify true and false statements about opening communication channels between VB.NET and Excel files using ADO.NET. 4) The third section provides another code sample and asks students to identify which statements about it are true or false.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views2 pages

Sec1 February Exam 2017-2018

1) This document provides an exam on computer topics related to Excel functions and ADO.NET tools. 2) The first section contains questions about a code sample that defines a function to retrieve data from an Excel file. 3) The second section asks students to identify true and false statements about opening communication channels between VB.NET and Excel files using ADO.NET. 4) The third section provides another code sample and asks students to identify which statements about it are true or false.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Monofeya Governorate Subject: Computer

Ministry of Education Time: One hour


Sadat City Educational Zone Grade: Secondary One
Sadat City Languages School February Exam 2017- 2018
The exam consists of two pages

I) Read the following code, and then answer the following questions: (4.5
Marks)

1- the declared function name is : ......................................


2- This function has two kinds of operands :................... and sql where ...............
represents a path Excel file and................ represents the sentence from which we
will inquire about the data from excel file.
3- This function will return with a value of the type ..................... : which is a Data
Table in computer memory holding data that has been imported from Excel file.
4- We have declared the following variables:
a) The variable ..................... to open a channel of communication on a worksheet
holding data from an Excel file.
b) The variable ..................... that executes a query to get data from Excel file.
c) The variable ..................... will act as an adapter for data from Excel file.
d) The variable ..................... has a table in which we save data that have been
brought from the Excel file.
5- Then the data adapter "da" uses the command ..................... which has the Query
syntax sql about the required data from Excel file that used the Communication
channel “MyConnection “ as a way to convert data to " dt . "
II) State whether the following statements are true () or false (x) : (3 Marks)

1- We open channel of communication between the programme that is ( )


created in Visual basic Dot Net language and Excel file by using
ADO.NET tools.
2- Variable of type ( OleDbConnection) is used in closing the ( )
communication channel that has been opened.
3- The return value from the function : ( )
“GetDatafromExcelSheet (FilePath As String, sql As String) As
DataTable” is of type String.
4- The announcement of a Function is done by using the word "Sub". ( )

5- You can use a variable of type (OleDbCommand) for the purpose of ( )


opening a channel of communication data file.
6- You can create a variable of type (DataTable) in-memory; in which we ( )
store data that were brought from the data file.

III) Read the following code, and then decide which of the following statements
are (True) and which are (False) (1.5 Marks)

No Statement T or F
1- The Excel Data Table is set in the variable cmbbxContinent
2- The Excel Data Table is saved in the following Path: "c:\Atlas\database\
atlas.xls".
3- The Excel Data Table is set in the variable " dt "

Good Luck….!!!

You might also like