You are on page 1of 5

GHANA COMMUNICATION TECHNOLOGY UNIVERSITY (GCTU)

FINAL EXAMINATIONS – SEPTEMBER 2021

FACULTY OF COMPUTING AND INFORMATION SYSTEMS

DEPARTMENT OF COMPUTER SCIENCE

TAKE HOME EXAMANINATION

CSSD 102 – HIGH LEVEL PROGRAMMING LANGUAGE

DIT /BIT LEVEL 100

Start Date: DECEMBER 20, 2021

End Date: DECEMBER 31, 2021


EXAMINATION 1

Question 1 (30 marks) 100-500 words per explanation and avoid plagiarism.
i. Explain the following datatypes in your own words without copying it from
anywhere.

a. int
b. float.
c. double.
d. string.
e. Bool.

ii. Write a program in C++ with the following datatypes. Use the 3 different variables
with the same data type. Explain the codes step by step.
a. int
b. float.
c. double.
d. string.
e. bool.

Question 2 (15 marks) 300-500 words per discussion and avoid plagiarism.
Discuss the following.
a. Pointers
b. Arrays
c. Structures
d. Classes
e. functions

Question 3 (10 marks) avoid plagiarism.


Write the following program in c++.
Combine your first and second name and pick only the first five characters of your name for
the project.

i. Declare an array named name1 and put all the first five characters into it.
ii. Write a for loop with an if condition that will find and output the index value of a
searched character in the array. Let the program be such that the user will input the
character being searched for.
Question 4 (25 marks) avoid plagiarism.
Write the following program in c++.
i. Create a class of your own choice with 5 attributes.
ii. Create an object of named objone in the intmain() function
iii. Access attributes and set values for all the 5 attributes
iv. Print all the attribute values
v. Create a function in the class that add two number and access the function using the
oblject.

Question 5 (20 marks) avoid plagiarism.


Discuss Object oriented programming in c++ with 4 points. Each point shoult not be less
than 200 words.

Question 6 (40 marks) 200-500 words per explanation and avoid plagiarism.
I. Explain the following in your own words without copying it from anywhere. Give
examples each in your explanation.

a. Class hierarchies
b. Algorithms
c. Flowcharts
d. Control structure

II. Write a program in C++ for the following equations of motion.


INSTRUCTIONS TO PACKAGE AND SUBMIT YOUR TAKE-HOME EXAMS

Students Responsibilities and Advice

1. It is your responsibility to comply with the general information and instructions


given on the question paper.
2. It is your responsibility to endure that your answers follow the required format.
3. It is your responsibility to submit your final document (answers).
4. It is your responsibility to provide the required information on the submission
coverpage (student number, digital/physical address).
5. Because final submission is based on the access to the internet ensure you
start your work early finish early enough following online submission
procedures.
6. You should expect that in the last hour or minutes to the deadline there will be
huge traffic on all networks (internet service providers) and the platform.
Therefore, you are advised not to wait until the last minutes to before you
submit.
7. Note that no submission can be accepted after the deadlines.

Guidelines to Package Your Answers

1. Use Ms Word or appropriate document processing software to prepare your


answers.
2. Provide your student index number, your full name, Program, Level and
department as your submission coverpage.
3. Your final document (answers) must have submission coverpage as the first
page or front page.
4. Convert your final document into PDF. The name of the PDF file should be
your index number and the course code (eg. 040919036 – IT462). The
system will accept only PDF file format for submission.
5. Photographed or Scanned handwritten documents will not be accepted. In a
case where the Faculty grants permission for handwritten documents for
submission:
1. Handwritten submission allowed should be written using on a white A4
size papers and with a black ink pen. Hand writing should be eligible.
2. Scan the handwritten documents at a resolution between 96 to 120 dpi
3. The scanned handwritten document together with the student’s
submission coverpage should be converted to pdf before submission
4. should be saved in PDF
6. All PDF files must not be more than 50mb. The system will reject any file size
bigger than 50mb.
7. To resize your pdf file use any of these free online tools

a. https://smallpdf.com/compress-pdf
b. https://www.ilovepdf.com/compress_pdf
Online Submission Instructions

1. Login to GTUC E-learning platform at gtuconline.gctu.edu.gh


2. Locate your course on your dashboard or hover your mouse on the My
Courses to select your course.
3. Please note that you are required to evaluate the course and your lecturer.
Kindly scroll down to the bottom of the course page where you can see
COURSE AND LECTURER EVALUATION FORM to evaluate the course and
your lecturer. This will take an approximately 5 mins to complete. This activity
is tied to the End of Semester Exams, i.e. you are expected to complete the
evaluation before you start the exams
4. Scroll down to the bottom of the course where you can see END OF
SEMESTER EXAMINATION.
5. Click on “End of Semester Exams / Take-Home Examination”
6. Click on “Add Submission” Button
7. Click on “Save Changes” Button
8. Click on “Submit Assignment”
9. The system will prompt you with the message
“Are you sure you want to submit your work for grading? You will not be able
to make any more changes”
10. Click on “Continue” Button
11. Submit status should read “submitted for grading” That means your
submission is 100% complete.
12. You can now close or exit

You might also like