Skip to document

Diploma In IT - Programming 3A sub exam july 2022

July 2022
Course

Programming

119 Documents
Students shared 119 documents in this course
University

Damelin

Academic year: 2022/2023
Uploaded by:
Anonymous Student
This document has been uploaded by a student, just like you, who decided to remain anonymous.
Damelin

Comments

Please sign in or register to post comments.

Preview text

Programming 3A Supp Exam Memo Page 1 of 9

Programme Diploma in Information Technology Module Programming 3A Module Code PROG310/ Module NQF Level

7

Credits 10 Exam Supp Exam Memo Semester 1 ST Date Written 25 JULY 2022

Total marks 140 Duration 2H Pass mark 50% Weighting 60% Examiner LUVUYO ZUKA Moderator

This question paper consists of 8 pages including the cover page.

REQUIREMENTS:

Learner Requirements: Stationery and Examination Answer booklet Equipment Requirements: None

This paper consists of:

  1. Section A: 20 marks
  2. Section B: 50 marks
  3. Section C: 70 marks

ALL sections are COMPULSORY. It is in your own interest to write legibly and to present your work neatly.

PLEASE READ THE ASSESSMENT RULES AND REGULATIONS THAT FOLLOW

Learners are warned that contravening any of the examination rules or disobeying the instructions of an invigilator could result in the examination being declared invalid. Disciplinary measures will be taken which may result in the students’ expulsion from Damelin.

Programming 3A Supp Exam Memo Page 2 of 9

ASSESSMENT RULES AND REGULATIONS

Please ensure that you have read and fully understand the following assessment rules and regulations prior to commencing with your assessment:

  1. To be permitted access to the examination, a learner must arrive with:
    • an Identity Document or other official proof of identity (for example,
    • a student card, passport or driver's licence card with photo); and
    • the required exam stationery.
  2. No learner may enter the examination room more than 30 minutes after the examination sitting has commenced and no candidate may leave the room less than one hour after the examination sitting has commenced.
  3. No extra time will be allowed should a student arrive late.
  4. All learners must sign the Attendance Register for the examination on arrival.
  5. It is the responsibility of learners to familiarise themselves with the examination rules prior to sitting for the examination.
  6. All examinations are to be written on the date and time officially stipulated by the College.
  7. It is the responsibility of learners to ensure that they are writing the correct paper and that the question paper is complete
  8. Cell phones must be switched off prior to entering the exam venue. Cell phones and wallets may be placed under candidates' chairs rather than at the front of the room.
  9. Learners may not handle cell phones or wallets during the exam.
  10. No weapon of any description may be taken into the assessment room.
  11. All personal belongings are to be placed at the front of the examination room. Personal belongings brought to the examination are at the owner's risk.
  12. Smoking is not permitted, and learners will not be allowed to leave the examination room in order to smoke
  13. Once the examination has commenced, all conversation of any form between candidates must cease until after candidates have left the room, after the examination.
  14. Only the official College examination book, as supplied by the College, may be used.
  15. Learners must ensure that their student number is written on the answer book.
  16. Learners are responsible for ensuring that they follow the instructions in the examination for submitting their answers.
  17. Please read the instruction appearing on the examination paper carefully
  18. The number of every question must be clearly indicated at the top of every answer.
  19. No pages may be torn out of the answer book. All question papers and scrap paper must be handed to the invigilator after the examination.
  20. Learners finishing earlier are to leave the examination room as quietly as possible on the instruction of the invigilator and may not talk until outside the building where the examination is being written.
  21. Only under exceptional circumstances will a learner be permitted to leave the examination room during the examination, and if the invigilator gives permission. An invigilator must accompany the learner. Only one learner at a time may be absent from the examination room.
  22. Candidates may not act dishonestly in any respect.

Programming 3A Supp Exam Memo Page 4 of 9

-Single-line comment>> starts with // and only comments one line -Multi-line comment>> starts with /* and ends with */, it comments multiple lines -XML comment>> each line starts with /// and used for Documentation comments and uses xml tags 2 Create a method as an example, and list or label each part of the method structure. private static void SayHello(string name) { Console(“Hello “ + name); Console(); }

(10)

-Access Modifier, Return Type, Method Name, Parameter List, Method Body.

QUESTION 3 (30 Marks) 3 Differentiate between procedural programming and Object Oriented programming. -Procedural programming allows programmers to create and name memory locations that can hold values and write series of steps or operations to manipulate those values. -Object oriented programming is a technique which solves problems by making use of classes and objects.

(5)

3 For a programming language to be considered an OOP language; what 5 features must it support?

(15)

-Classes>>A category of objects or a type of object. A blueprint of an object. -Objects>>an instance of a class. objects are like concrete objects in the real world. They contain their own attributes and behaviours. -Inheritance>> refers to the process of creating sub-classes that are derived from and used to extend a super (parent) class -Polymorphism>>is the ability of derived classes to share common functionality with base classes but still define their own unique behavior. -Encapsulation>>A technique of packaging an object’s attributes and behaviours into a cohesive unit; an undivided entity. -Interfaces>>The interaction between a method and an object’s exposed behaviours. Uses message-passing to request and receive information. 3 Differentiate between Implicit Cast and Explicit Cast I-mplicit cast is the automatic transformation that occurs when a value is assigned to a type with higher precedence.

(5)

Programming 3A Supp Exam Memo Page 5 of 9

-Explicitly means purposefully. An explicit cast purposefully assigns a value to a different data type; it involves placing the desired result type in parentheses followed by the variable or constant to be cast.

3 Graphical User interface (GUI) and Command line Interface (CLI) -GUI allows user to interact with a program in a graphical environment with icons. -And CLI allows user to type text entries in order communicate with the operating system.

(5)

SECTION C:

QUESTION 4 (35 Marks)

4 .

You are writing a program that uses a two-dimensional array. The array has four rows and five columns. You need to print the largest element in each row of the array. Create a C# console application to the above. Use your own numbers for populating the array called numbers.

Answer:

Programming 3A Supp Exam Memo Page 7 of 9

Answer:

5 Creating simple program to add, remove and clear items from a ListBox in C#. Use a text box for adding and changing items in list box. Also use two buttons to delete and clear items in list box.

Programming 3A Supp Exam Memo Page 8 of 9

Answer:

Was this document helpful?

Diploma In IT - Programming 3A sub exam july 2022

Course: Programming

119 Documents
Students shared 119 documents in this course

University: Damelin

Was this document helpful?
Programming 3A Supp Exam Memo Page 1 of 9
Damelin©
Programme
Diploma in Information Technology
Module
Programming 3A
Module Code
PROG310/410
Module NQF
Level
7
Credits
10
Exam
Supp Exam Memo
Semester
1ST
Date Written
25 JULY 2022
Total marks
140
Duration
2H30
Pass mark
50%
Weighting
60%
Examiner
LUVUYO ZUKA
Moderator
This question paper consists of 8 pages including the cover page.
REQUIREMENTS:
Learner Requirements: Stationery and Examination Answer booklet
Equipment Requirements: None
This paper consists of:
1.
Section A:
20 marks
2.
Section B:
50 marks
3.
Section C:
70 marks
ALL sections are COMPULSORY. It is in your own interest to write legibly and to present
your work neatly.
PLEASE READ THE ASSESSMENT RULES AND REGULATIONS THAT FOLLOW
Learners are warned that contravening any of the examination rules or disobeying the
instructions of an invigilator could result in the examination being declared invalid.
Disciplinary measures will be taken which may result in the students’ expulsion from
Damelin.