You are on page 1of 6

NAME: RANSFORD GYASI C.K.B.

STUDENT ID: 10869753

DCIT PORTFOLIO

TABLE OF CONTENTS: PAGE N


1. LECTURE 3.1- NUMBER OF MODES 1

2. LECTURE 3.2-INTERNET AND WORLD WIDE WEB 1-2

3. LECTURE 3.3-CLIENT ARCHITECTURE 2-3

4. LECTURE 3.4-IP ADDRESSING 3

5. LECTURE 5-SYSTEM SOFTWARE FUNDAMENTALS 3-4


LECTURE 3.1- NUMBER OF MODES
Question 1
Compute the number of modes that will be supported by a fibre with core diameter of 20mm,
a core refractive index of 1.5 and a cladding index of 1.48 if it is excited by light of frequency
0.25MHz.
Answer
Given radius of core
a=D/2=0.01m
n1=1.5
n2=1.48
Frequency f=0.25×106 Hz
So, wavelength
λ=c÷f=1200m
=1200m

Therefore no. Of modes


V= (2×3.14×0.01÷1200) ×√ (1.5)2−(1.48)2
V=1.277×10-5
V<2.405
Therefore, only one mode is possible.

LECTURE 3.2-INTERNET AND WORLD WIDE WEB


Question 1
The major internet service providers in Ghana.
 Mobile Telephone Network: First founded in 1994, MTN has a market share of
53.54%-the largest in Ghana. In 2006 they became the first to provide
telecommunications coverage in all regions in Ghana.

 Vodafone: First founded in 1974. Acquired 70% of Ghana Telecom from the
Ghanaian government on 17th May 2008, and now owns 23.7% of market shares in
Ghana.

 AirtelTigo: Was once “Bharti Cellular” but rebranded in 1995 to “Airtel”. Tigo
launched in 1991 as a subsidiary of Millicom Cellular. Airtel and Tigo officially
merged in November 2017.

Question 2
Uniform Resource Locator for University of Ghana: https://www.ug.edu.gh
Protocol- “https”, Subdomain- “www”, Domain- “ug.edu.gh”

1
Uniform Resource Locator for Department of Computer science-https://dcs.ug.edu.gh
Protocol- “https”, Subdomain-“dcs”, Domain- “ug.edu.gh”

Question 3
Steps in creating a webpage using html:
 I opened the notepad app on Microsoft start menu
 I then began creating the webpage by first typing “<HTML>”
 I added a title by using the HTML words <HEAD> and <TITLE>, and typed in
welcome to my webpage and ended with </TITLE> and </HEAD>.
 To add a body, I typed, “<BODY>”, and put in the content of my body and ended with
“</BODY>”
 I then ended the creation of my webpage with </HTML>
I took a screenshot for reference:

LECTURE 3.3-CLIENT ARCHITECTURE


Time (seconds) Data input (kilobyte) Data Output (kilobyte)
2 2048 600
4 4096 1200
6 6144 1800
8 8192 2400
10 10,240 3000
12 12,288 3600

2
-The buffer will have filled up to the high water mark at 0.88s
-It will take 2.66 seconds to fall to the low mark

LECTURE 3.4-IP ADDRESSING


Steps in Incorporating a Java Script Code.
1. In your text editor, open your html file.
2. Directly below <h1>Welcome to my webpage</h1>, type the following code: <script>
document. Write('<p> Welcome to my webpage </ p>'); </script> ...
3. Save the page and open it in a web browser.

LECTURE 5-SYSTEM SOFTWARE FUNDAMENTALS


Question 1
i) Two types of interface that an OS should provide are Menu-driven Interface and
Command line User Interface
ii) a. Graphical User Interface-Mouse
b. Command line User Interface-Keyboard
iii) Three management tasks carried out by an OS are:
 Resource Management: The OS schedules processes and the use of different
resources by the different processes. It resolves conflicts when two processes
require the same resource.
 Memory Management: This refers to the management of memory locations for all
the various programs in the computer and ensure no two programs have the same
location. The OS also makes the best use of space available. It also makes
decisions about which processes should be in main memory and where they
should be stored.

Question 2
i) Two Utility Programs that deal with Hard Disk Problems are “Hard Disk Defragmenter”
and “Backup Software”
ii) How these programs work:
 The Hard Disk Defragmenter stores all saved files in one place and puts unused
space together, hence reducing how much the read and write heads move around.
 The Backup Software creates supplementary exact copies of data on hard disk
onto another medium in case of loss of data on the Hard Drive.
iii) Two other utility programs are application Launchers and disk cleaners.

3
Question 3
Library programs allow programmers to skip writing complicated but frequently needed data. The
documentation in in library programs allow programmers to understand the procedure without
actually reading the code.
Examples include; Tensor Flow, Boost, and Eigen

Question 4
i) Assembler converts assembly code to machine code while compiler converts source
code written by programmer to machine level language.
ii) In the “first pass”, labels and address mappings enter and mnemonic and opcode
mappings are referenced from here.
iii) In the “second pass” machine code is produced
Question 5
i) State three differences between how an interpreter works and how a compiler works.
Compiler Interpreter
Scans entire program and translates to Scans line by line and converts to machine
machine code code
It creates object code file It does create object code file
Errors are displayed after entire program Errors are displayed after each line.
is checked.
ii) Discuss the advantages and disadvantages of an interpreter compared to a
compiler.
With an interpreter debugging is a lot simpler since errors are detected quicker
because they are scanned line by line. But in using a compiler, it is much harder
to debug since errors are displayed after entire program is checked. However, a
compiler works much faster than an interpreter and while the interpreter needs to
be in memory each time the program is run, the compiler does not need to.
iii) If a programmer chooses java, a special approach is used. Identify one
feature of this special approach.
1. Object Oriented
In Java, everything is an Object. Java can be easily extended since it is based on the Object model.

2. Platform Independent
Unlike many other programming languages including C and C++, when Java is compiled, it is not
compiled into platform specific machine, rather into platform-independent byte code. This byte
code is distributed over the web and interpreted by the Virtual Machine (JVM) on whichever
platform it is being run on.

3. Simple
Java is designed to be easy to learn. If you understand the basic concept of OOP Java, it would be
easy to master.

4
Question 6

A company provides catering services for clients who need special-occasion, celebratory dinners.
For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The
company will provide staff to serve meals at the venue. The company needs a database to store data
related to this business activity
–Identify a list of entities
–Identify pairs of entities where a direct relationship exists
–For each pair of relationship draw the entity relationship diagram justifying the choice of
cardinalities.

You might also like