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

Circuit and Packet Switching

The document discusses circuit switching and packet switching in networks. It provides examples of how email and web pages are transmitted using these methods and asks questions to test understanding of related concepts. The document contains multiple sections with questions about network topologies, switching techniques, and applications that use each method.

Uploaded by

Shevi Perera
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Circuit and Packet Switching

The document discusses circuit switching and packet switching in networks. It provides examples of how email and web pages are transmitted using these methods and asks questions to test understanding of related concepts. The document contains multiple sections with questions about network topologies, switching techniques, and applications that use each method.

Uploaded by

Shevi Perera
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Circuit and Packet Switching, User-Defined Data Types - (A2 Level)

Total Marks - 75 Name: ............................................. Date: ...../...../........

(1) (a) A network can be set up using a star topology. Give three features of a star topology.
1................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
3 ................................................................................................................................................
...................................................................................................................................................
[3]
(b) (i) Describe what is meant by circuit switching.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]

(ii) The table shows statements that relate to circuit switching, packet switching or both. Tick
(✓) one or more boxes in each row to show whether the statement applies to circuit
switching, packet switching or both.

[4]
(2) An email is sent from one email server to another using packet switching.
(a) State two items that are contained in an email packet apart from the data.
1 ................................................................................................................................................
2 ............................................................................................................................................[2]
(b) Explain the role of routers in sending an email from one email server to another.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(c) Sending an email message is an appropriate use of packet switching. Explain why this is
the case.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
(d) Packet switching is not always an appropriate solution. Name an alternative
communication method of transferring data in a digital network.
...............................................................................................................................................[1]
(e) Name an application for which the method identified in part (d) is an appropriate solution.
Justify your choice.
Application ................................................................................................................................
Justification ...............................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(3) (a) Explain what is meant by circuit switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[2]
(b) There are many applications in which digital data are transferred across a network. Video
conferencing is one of these. For this application, circuit switching is preferable to the use of
packet switching. Explain why this is so.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[6]
(c) A web page is transferred from a web server to a home computer using the Internet.
Explain how the web page is transferred using packet switching.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
(4) Emails are transmitted across the Internet using packet switching and routing tables.
(i) Give four items of data in an IP data packet.
1 ........................................................................................................................................
2 ........................................................................................................................................
3 ........................................................................................................................................
4 ......................................................................................................................................[4]
(ii) Describe two benefits of using packet switching.
Benefit 1 ............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
Benefit 2 ............................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.........................................................................................................................................[4]
(iii) Give two items of data stored in a routing table.
1 ........................................................................................................................................
2 ........................................................................................................................................ [2]

(5) (a) A web browser is used to request and display a page stored on an internet web server.
Explain how each of the following items is used in this event.
(i) Packet: .........................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
(ii) Router: ........................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
(iii) TCP/IP: ......................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
(b) The Internet can be used for video conferencing. Data can be transmitted over the Internet
using either packet switching or circuit switching.
(i) State two problems that could arise if video conferencing were to use packet switching.
Problem 1 ..........................................................................................................................
...........................................................................................................................................
Problem 2 ..........................................................................................................................
.......................................................................................................................................[2]
(ii) Explain what is meant by circuit switching.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[2]
(iii) Explain how the use of circuit switching overcomes the problems you have identified in
part (i).
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.......................................................................................................................................[3]

(6) (a) Consider the following user-defined data type:


TYPE LibraryBookRecord
DECLARE ISBN : INTEGER
DECLARE Title : STRING
ENDTYPE
(i) Write a pseudocode statement to declare a variable, Book, of type LibraryBookRecord.
.......................................................................................................................................[1]
(ii) Write a pseudocode statement that assigns ‘Dune’ to the Title of Book.
.......................................................................................................................................[1]
(b) The user-defined data type LibraryBookRecord needs to be modified by adding the
following fields:
• a field called Genre which can take two values, fiction, or non-fiction
• a field called NumberOfLoans which can be an integer value in the range 1 to 99
Write the updated version of LibraryBookRecord.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]

(c) A pointer is a variable that stores the address of a variable of a particular type. Consider
the code, which uses the following identifiers:

IntVar ß 57 // assigns the value 57 to the integer


// variable IntVar
IntPointer ß @IntVar // assigns to IntPointer the address of the
// integer variable IntVar
Temp2 ß IntPointer^ // assigns to variable Temp2 the value at an
// address pointed at by IntPointer
IntPointer^ ß Temp1 // assigns the value in the variable Temp1 to
// the memory location pointed at by IntPointer
The four assignment statements are executed. The diagram shows the memory contents after
execution.

Use the diagram to state the current values of the following expressions:
(i) @Temp2 .........................................................................................................................[1]
(ii) IntPointer .......................................................................................................................[1]
(iii) IntPointer^ ....................................................................................................................[1]
(iv) IntPointer^ = Temp2 + 6 ...............................................................................................[1]

(d) Write pseudocode statements that will achieve the following:


(i) Assign the value 22 to the variable Temp2.
.......................................................................................................................................[1]
(ii) Place the address of Temp1 in IntPointer.
.......................................................................................................................................[1]
(iii) Copy the value in Temp2 into the memory location currently pointed at by IntPointer.
.......................................................................................................................................[1]
(7) (a) Describe the purpose of a user-defined data type.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [2]
(b) Define, using pseudocode, the following enumerated data types:
(i) SchoolDay to hold data about the days students are usually in school.
...........................................................................................................................................
..................................................................................................................................... [1]
(ii) WeekEnd to hold data about the days that are not school days.
...........................................................................................................................................
..................................................................................................................................... [1]
(c) Define, using pseudocode, the composite data type ClubMeet. This will hold data about
club members that includes:

• first name and last name


• the two days they attend:
○ one on a school day
○ one not on a school day.

Use the enumerated types you created in part (b).


...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
............................................................................................................................................. [5]

You might also like