Tutorial Sheet #1
Tutorial Sheet #1
Faculty: INFORMATICS
Department: COMPUTER SCIENCE AND MATHEMATICS
Programme: BCSe III – 2024/2025
Module Name and Code: DATA STRUCTURE AND ALGORITHM (CYU08104)
Date of the tutorial: ………………………………………………
Submission Instruction:
1. Choose one question, answer it, and submit through Moodle.Note: Do not repeat the question that has already been
attempted in class.
2. The question will carry 1 mark (Attendance = 0.5 marks and Submission = 0.5 marks)
A: TUTORIAL SESSION GUIDE
a. Tutorials are typically small discussion groups which meet to discuss matters arising from lectures, work not covered in lectures, essays or other tasks that have
been set or some aspect of the readings while
b. Practicals differ according to faculty, but in general, a practical is an opportunity for students to test and apply their understanding of the concepts and ideas
introduced in lectures. "Practicals" are called this because they are the place where the "theoretical" knowledge gained in lectures and readings is put into
practice. In the Science Faculty, practicals would take place in a laboratory, and students might work in pairs. In the Social Sciences and Humanities, students
attending practicals would do individual work in the presence of tutors, who would help and supervise the exercises. Practicals are usually much longer than
the normal lecture or tutorial period, often about 3 hours long.
c. Attendance is usually compulsory at these small group meetings, and the tutor or supervisor will take the register. If you do not attend the required number of
tutorials, you may be refused a "dp", the "duly performed" certificate that allows you to write your final examinations. Students must sign the attendance sheet.
Sub-enabling Related tasks Tutorial Sets
outcome
3.1.2 Apply primitive (a) Identify the Q1 (a) Describe an ‘integer’ as a data structure.
data structures in primitive data (b) Apply three operations in an integer on Array data structure using Java.
designing computer structures Q2 (a) Describe ‘double’ as a data structure.
systems. (b) Apply integer, real, (b) Apply three operations in double on Array data structure using Java.
character, and Boolean Q3 (a) Describe ‘character’ as a data structure.
structures in (b) Apply three operations in a character on Array data structure using
developing a computer Java.
program Q4 (a) Describe a Boolean as a data structure.
(c) Apply operations in (b) Apply three operations in Boolean on Array data structure using Java.
primitive data structure Q5 (a) Given the following task: "Create a Java program that reads a user's
(creation, destroy, age,
selection and update) weight (in kilograms), first name, and if they are currently a student
(yes/no)." Required:
(i) Describe the appropriate primitive data types to use for each input.
(ii)Provide a simple Java program that initializes these variables with
user input and then prints a summary sentence incorporating all
these details.
Q6. (a) Explain each of the following operations as they pertain to primitive
data
structures in Java:
(i) Creation (ii) Selection (iii) update (iv) Deletion
a. Tutorials are typically small discussion groups which meet to discuss matters arising from lectures, work not covered in lectures, essays or other tasks that have
been set or some aspect of the readings while
b. Practicals differ according to faculty, but in general, a practical is an opportunity for students to test and apply their understanding of the concepts and ideas
introduced in lectures. "Practicals" are called this because they are the place where the "theoretical" knowledge gained in lectures and readings is put into
practice. In the Science Faculty, practicals would take place in a laboratory, and students might work in pairs. In the Social Sciences and Humanities, students
attending practicals would do individual work in the presence of tutors, who would help and supervise the exercises. Practicals are usually much longer than
the normal lecture or tutorial period, often about 3 hours long.
c. Attendance is usually compulsory at these small group meetings, and the tutor or supervisor will take the register. If you do not attend the required number of
tutorials, you may be refused a "dp", the "duly performed" certificate that allows you to write your final examinations. Students must sign the attendance sheet.
a. Tutorials are typically small discussion groups which meet to discuss matters arising from lectures, work not covered in lectures, essays or other tasks that have
been set or some aspect of the readings while
b. Practicals differ according to faculty, but in general, a practical is an opportunity for students to test and apply their understanding of the concepts and ideas
introduced in lectures. "Practicals" are called this because they are the place where the "theoretical" knowledge gained in lectures and readings is put into
practice. In the Science Faculty, practicals would take place in a laboratory, and students might work in pairs. In the Social Sciences and Humanities, students
attending practicals would do individual work in the presence of tutors, who would help and supervise the exercises. Practicals are usually much longer than
the normal lecture or tutorial period, often about 3 hours long.
c. Attendance is usually compulsory at these small group meetings, and the tutor or supervisor will take the register. If you do not attend the required number of
tutorials, you may be refused a "dp", the "duly performed" certificate that allows you to write your final examinations. Students must sign the attendance sheet.