Engineering Computing 101
ENGINEERING COMPUTING 101 (ENCO 101)
Test Number 1
Year 2025
Internal Examiner Maryam Noordien
Total Marks 50
Duration 1 hour 30 min
Section A Mixed styled questions 10 Marks
Section B MATLAB application 40 Marks
Instructions to Candidates:
1. Read each question carefully.
2. You must answer ALL sections (A & B).
3. Answer all questions either in a WORD document then converted to PDF or a published MATLAB
file with all your answers.
4. Make sure to attach your MATLAB script file/s, declaration and PDFin a compressed folder, WITH
YOUR ASSESSMENT answers. Only one zip file must be uploaded.
5. Do not re-upload the question paper.
6. There should be no use of AI during testing conditions.
Important Notes:
This test paper consistes of section A and B only.
This test paper consists of 7 pages
This test contributes 10% towards the final mark.
ENGINEERING COMPUTING 101 (ENCO 101)
Declaration:
I/we declare that all the information included in this assignment is my/our original work, apart from
where source material has been acknowledged. I/we acknowledge that I/we am/are aware of AIE’s
Plagiarism Policy and understand the consequences of breaching this policy – as well as any other AIE
policy relevant to me/us.
Student Name
Student Number
Student Signature
Date
Mark and Comments
Final Mark _____%
Lecturer Comments
Section A
Multilple choice 10 Marks
e.g 1 (a)
1. The following factors mentioned below DO not play a role when selecting suitable computer
equipment: (1)
a) CPU, GPU, Storage, Networking
b) RAM, GPU, Storage, Motherboard
c) RAM, PSU, Storage, GPU
d) PSU, Motherguage, Storage, Networking
2. The definition for CPU is __: (1)
a) Brain of the computer
b) The mind of the computer
c) Body of the computer
d) Software of the computer
3. Below are the most common user-type interfaces: (1)
a) GUI, CLI, PCI
b) TUI, GUI, VUI
c) CPI, VUI, GUI
d) AR, VR, TR
4. The data link is the ____ layer of the 7-layer OSI model (1)
a) Fourth
b) Fifth
c) Second
d) First
5. _____ are placeholders or names: (1)
a) Expression
b) Command
c) Variable
d) Cell
6. What command clears the command history window? (1)
a) Reset history
b) Clc
c) Clear all
d) Close
7. Which built-in function is used to calculate the sine function of 50 degrees?
a) sind(50)
b) sine(50)
c) sin(50)
d) Sind(50)
8. Which set of matrices can be multipled by each other?
a) A = [3 x 3] , B = [2 x 3]
b) A = [ 3x 2 ] , B = [ 2 x 3]
c) A = [ 4 x 3] , B = [ 4 x 3]
d) A = [2 x 1 ] , B = [ 2 x 2]
9. The command window is used to _______.
a) Write scripts
b) Show the file size.
c) Indicate the file history.
d) Show outputs from the script file.
10. Matrix dot products can be used when__________.
a) Matrices with the column of A is equal to the rows of B.
b) Matrices are exactly the same size.
c) Matrix A is inversed.
d) Matrix B is a row vector.
Section B
MATLAB applications 40 marks
Question 1 [3]
Create the matrix shows below: (3)
Question 2 [8]
Create the matrix below and answer the questions that follow:
2.1 Create a matrix “Z” with the following values. (4)
Row 1: starts at -25 , ends at 5, increments of 5..
Row 2: starts at 100 , increments of 3.
Row 3 : starts at 10, ends at 14.
Row 4: ends at 13 ,increments of 1.
2.2 Find the square root of “Z “ in matrix format. Let “Z” be “X” (1)
2.3 Find the value of the difference between row 2, column 3 and row 4 column 5
of “Z”. (1)
2.4 Write “Z “ where the second row of “E” is half the value in question 2.1 (2)
Question 3 [2]
Create a 1 x 10 array of random numbers between -1 and 1.
Question 4 [7]
Determine the value of w, x, y, z, from the system of linear equations below using right division.
3𝑤 − 4𝑥 + 3𝑧 − 12𝑦 = −12
4𝑥 − 4𝑤 + 5𝑧 + 10𝑦 = 0
6𝑤 + 4𝑥 + 5𝑧 + 18𝑦 − 15 = 0
9𝑤 − 4𝑥 − 8𝑦 + 10𝑧 = −25
Question 5 [10]
Using If-Else statements, determine the type of triangle based on the lengths
of the side. The code should indicate that it is an equilateral triangle if all sides are equal, an isosceles
triangle if two (2) sides are equal, and a scalene triangle if all three (3) sides are not equal. Ensure that
the user has to input values.
Question 6 [10]
Create a program that tells the user if a student has an exam entrance based on their Semester
mark and Final exam mark. The weighting of the semester marks counts 30% and the exam counts 70%.
The semester mark comprises of three (3) tests, each test counts 10%.
If the student have between 45% and 48%, the programme should indicate that they are granted
a supplementary. If the student has less than 45%, the student has failed. The user has to input values.
Total [50 marks]