0% found this document useful (0 votes)
17 views

Grade 11 Final Revision first semester

Uploaded by

doaa.1423524
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)
17 views

Grade 11 Final Revision first semester

Uploaded by

doaa.1423524
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/ 20

STEM Asyut School

Computer Science Department


Final Revision
First Semester
First : (Network)

1. Which network topology is best for a small number of computers?


 Star
 Ring
 Bus
 EE

2. Which was the earliest type of network used?


 Star
 Ring
 Bus
 BT Cellnet

3. Which type of network needs a server?


 Star
 Ring
 Bus
 Frankie and Benny's

4. What advantage does a Bus have over a Ring?


 If one computer fails, the network keeps working
 It's only £4 for a Day Saver
 It uses less cable

5. CHALLENGE QUESTION: Which network topology is the most secure?


 Ring
 Star
 Bus
 CNN

-1-
6. CHALLENGE QUESTION: Why is a Ring network more secure than a Bus?
 Because you need to hack all computers on a Ring network to see all
the network traffic
 Because it is a closed loop
 Because buses have lots of windows
 Because it requires less cable

4. You have learned that there are three types of network topology.
Which one is NOT network topology ?
 BUS
 WAN
 RING
 STAR
5. Bus topology are the fastest network topology. What is the speed of
Bus topology ?

 100Mbps
 1000Mbps
 10Mbps
 1mbps

6. Figure shows network topology . Name the topology .

 Tree topology
 Bus Topology
 Ring topology
 Star topology

7. What are the ADVANTAGE of bus topology and Star topology ?

 If the backbone is failed.It will affect the whole system


 If the central host is down the entire system will down
 If one computer is down .It will not affect the whole system

8. If there is a host failure happen in star topology and ring topology .


What will happen to the network ?

 network still running


 network still running but slow
 network fail
-2-
9. All computer are connected to the single backbones. Which topology is
that ?
 Tree topology
 Star topology
 Ring topology
 Bus topology

10. What is the function of hub and switch ?


 act as the centralized nod
 act as a storage of the data
 act as a processor of the data

11. A term that refers to the way in which the nodes of a network are
linked together.
a) network
b) topology
c) connection
d) interconnectivity
12. A network comprising o multiple topologies.

a) Complex
b) Hybrid
c) Bus
d) Star

13. A topology that involves Tokens.

a) Star
b) Ring
c) Bus
d) Daisy Chaining

14. Which network topology requires a central controller or hub?

a) Star
b) Mesh
c) Ring
d) Bus

-3-
15.______ topology requires a multipoint connection.
a) Star
b) Mesh
c) Ring
d) Bus

16. Data communication system spanning states, countries, or the whole


world is __

a) LAN
b) WAN
c) MAN
d) PAN

17. WAN stands for __________

a) World area network


b) Wide area network
c) Web area network
d) Web access network

Which topology requires a central controller or hub?

a. Mesh

b. Star

c. Bus

d. Ring

Which topology requires a multipoint connection?

a. Mesh

b. Star

c. Bus

d. Ring
-4-
Multipoint topology is

a. Bus

b. Star

c. Mesh

d. Ring

In mesh topology, every device has a dedicated topology of

a. Multipoint linking

b. Point to point linking

c. None of Above

d. Both a and b

Bus, ring and star topologies mostly used in the

a. LAN

b. MAN

c. WAN

d. Internetwork

Combination of two or more topologies are called

a. Star

b. Bus

c. Ring

d. Hybrid

-5-
The topology with highest reliability is ?

a. Bus topology

b. Star topology

c. Ring Topology

d. Mesh Topology

Star Topology is Based On a Central Device that can be __________ ?

a. HUB

b. Switch

c. Only a

d. Both a and b

Which of the following is not type of the network topology?

a. Mesh

b. Bus

c. Ring

d. stub

In a star-topology Ethernet LAN, _______ is just a point where the


signals coming from different stations collide; it is the collision point.

a. An active hub

b. A passive hub

c. either (a) or (b)

d. neither (a) nor (b)


-6-
Second : (Database Management Systems Design)

-7-
-8-
-9-
-10-
https://www.proprofs.com/quiz-school/browse
=====================================================================
1. Data integrity restrictions serve to _____.
a. restrict the amount of data accessed by users
b. control data input formats and ensure data-entry validity
c. ensure consistency in repeatedly entered data
d. conserve storage space
2. Data redundancy results from _____.
a. essential data not appearing in the database
b. identical data appearing in multiple places in the database
c. identical data accessed by multiple users
d. identical data inputted in multiple formats

-11-
Third : (dynamic web application)
Question 1:

What does PHP stand for?

 PHP: Hypertext Preprocessor


 Private Home Page
 Personal Hypertext Processor
Question 2:

PHP server scripts are surrounded by delimiters, which?

 <?php>...</?>
 <script>...</script>
 <?php...?>
 <&>...</&>
Question 3:

How do you write "Hello World" in PHP

 echo "Hello World";


 Document.Write("Hello World");
 "Hello World";
Question 4:

All variables in PHP start with which symbol?

 !
 $
 &
Question 5:

What is the correct way to end a PHP statement?

 ;
 ?>
 New line
 .

-12-
Question 6:

The PHP syntax is most similar to:

 JavaScript
 Perl and C
 VBScript
Question 7:

When using the POST method, variables are displayed in the


URL:

 False
 True
Question 8:

In PHP you can use both single quotes ( ' ' ) and double quotes
( " " ) for strings:

 True
 False
Question 9:

Include files must have the file extension ".inc"

 True
 False
Question 10:

What is the correct way to include the file "time.inc" ?

 <?php include:"time.inc"; ?>


 <!-- include file="time.inc" -->
 <?php include "time.inc"; ?>

Question 11:

What is the correct way to create a function in PHP?

 function myFunction()
 create myFunction()
 new_function myFunction()
-13-
Question 12:

PHP allows you to send emails directly from a script

 True
 False
Question 13:

What is the correct way to add 1 to the $count variable?


 $count++;
 count++;
 $count =+1
 ++count
Question 14:

What is a correct way to add a comment in PHP?


 /*...*/
 *\...\*
 <comment>...</comment>
 <!--...-->
Question 15:

PHP can be run on Microsoft Windows IIS(Internet Information


Server):
 True
 False
Question 16:

Which one of these variables has an illegal name?

 $my-Var
 $my_Var
 $myVar
Question 17:

In PHP, the only way to output text is with echo.


 False
 True
-14-
Question 18:

How do you create an array in PHP?

 $cars = array["Volvo", "BMW", "Toyota"];


 $cars = "Volvo", "BMW", "Toyota";
 $cars = array("Volvo", "BMW", "Toyota");
Question 19:

The if statement is used to execute some code only if a


specified condition is true

 True
 False
Question 20:

Which operator is used to check if two values are equal and of


same data type?

 ==
 !=
 ===
 =

-15-
Forth :SQL Statement :

CREATE TABLE:

CREATE TABLE table_name (


column_1 datatype,
column_2 datatype,
column_3 datatype
);
CREATE TABLE creates a new table in the database. It allows you to specify the name
of the table and the name of each column in the table.

DELETE:

DELETE FROM table_name


WHERE some_column = some_value;
DELETE statements are used to remove rows from a table.

INSERT:

INSERT INTO table_name (column_1, column_2, column_3)


VALUES (value_1, 'value_2', value_3);
INSERT statements are used to add a new row to a table.
IS NULL / IS NOT NULL:
SELECT column_name(s)
FROM table_name
WHERE column_name IS NULL;
IS NULL and IS NOT NULL are operators used with the WHERE clause to test for
empty values.
LIKE:
SELECT column_name(s)
FROM table_name
WHERE column_name LIKE pattern;
LIKE is a special operator used with the WHERE clause to search for a specific
pattern in a column.

-16-
ORDER BY:

SELECT column_name
FROM table_name
ORDER BY column_name ASC | DESC;
ORDER BY is a clause that indicates you want to sort the result set by a particular
column either alphabetically or numerically.

SELECT:

SELECT column_name
FROM table_name;
SELECT statements are used to fetch data from a database. Every query will begin
with SELECT.

SELECT DISTINCT:

SELECT DISTINCT column_name


FROM table_name;
SELECT DISTINCT specifies that the statement is going to be a query that returns
unique values in the specified column(s).

UPDATE:

UPDATE table_name
SET some_column = some_value
WHERE some_column = some_value;
UPDATE statements allow you to edit rows in a table.
WHERE:
SELECT column_name(s)
FROM table_name
WHERE column_name operator value;
WHERE is a clause that indicates you want to filter the result set to include only rows
where the following condition is true.

ALTER TABLE:
ALTER TABLE table_name
ADD column_name datatype;
ALTER TABLE lets you add columns to a table in a database.
-17-
Very Important Notes
CREATE TABLE statements create database tables. These statements
specify each of the columns in a table and specify table-level constraints such
as foreign references.
 INSERT statements add rows to database tables.
 DELETE statements delete rows from database tables.
 UPDATE statements modify rows in database tables.
 SELECT statements are used to retrieve data from database tables.
These statements return tables, often constructed from columns from
multiple tables.

DELETE, UPDATE, and SELECT statements can use a WHERE clause to


limit the rows that are affected or returned and to capture foreign reference
relationships.

-18-
Sql Statements Examples :

CREATE TABLE Actors (


ActorId INT NOT NULL AUTO_INCREMENT,
ActorName VARCHAR(255) NOT NULL,
PRIMARY KEY (ActorId));

SELECT deptno, ename


FROM emp;
This statement display two column deptno, ename from table emp

SELECT *
FROM emp;
This statement display all column from table emp

SELECT ename, sal, sal+300


FROM emp;
This statement display sal column and the value of sal column + 300 from table emp
( if sal column value =800 sal+300 means 1100 )

SELECT ename, 12 * sal + comm


FROM emp
WHERE ename ='KING'
This statement display ename column and the value of sal column *12 and comn
column from table

SELECT ename,
FROM emp
WHERE ename ='KING'
This statement display ename column where name=king

SELECT * FROM Friends WHERE First_Name LIKE '_en';


retrieving all columns for rows in which the First_Name column's value begins with
any letter and ends with "en", use this statement:

-19-
INSERT INTO Albums (AlbumName, ArtistId) VALUES
('Ziltoid the Omniscient', '12');

INSERT INTO Albums (AlbumName, ArtistId) VALUES


('Ziltoid the Omniscient', '12'),
('Flying in a Blue Dream', '7');

UPDATE Artists
SET ArtistName = 'The Artist Formerly Known as Prince'
WHERE ArtistName = 'Prince';
we update the value of the ArtistName column in the Artists table.

DELETE FROM Artists


WHERE ArtistId = '6';
deletes uses a WHERE clause to narrow down the deleted rows.

TRUNCATE TABLE Artists;


The TRUNCATE statement is used to delete all rows from a table. It is faster than the
DELETE statement

DROP DATABASE Movies;


The DROP DATABASE statement is used to drop (remove) a database.
ALTER TABLE Movies
ADD COLUMN YearReleased DATETIME;
SQL statement adds a column to a table and specifies its data type.

Revision finished
Good luck

-20-

You might also like