File/Record Design Considerations (5 marks)
Explain the considerations you would take into account when designing a file structure to hold student records for a school database system.
File/Record Design Considerations (5 marks) Read More »
Explain the considerations you would take into account when designing a file structure to hold student records for a school database system.
File/Record Design Considerations (5 marks) Read More »
Describe how a two-dimensional array can be used to represent a grid or table structure. Illustrate your answer with an example.
2D Arrays (5 marks) Read More »
Discuss the advantages of using records in a database over arrays.
Records vs Arrays (4 marks) Read More »
Define the term ‘one-dimensional array’ and provide an example of how it might be used in a program.
1D Arrays (2 marks) Read More »
Define a record ‘Student’ with the following fields: name (string), age (integer), and grade (character).
Describe how a two-dimensional array differs from a one-dimensional array.
1D vs 2D Arrays (3 marks) Read More »
Given the following one-dimensional array of integers: numbers
1D Array Index (2 marks) Read More »
Explain what an array is in the context of data structures.
What is an Array (1 mark) Read More »
Consider the following two-dimensional array representing scores for students in different subjects, where each row represents a student and each column represents a subject (Math, Science, English): [[65, 70, 75], [80, 85, 90], [55, 60, 65]] Write lines of code to output the Science score for the second student and the English score for the
2D Array Index (2 marks) Read More »
Given a one-dimensional array of student names: [“Alex”, “Brian”, “Charlie”, “Diana”, “Elena”] Write lines of code that demonstrate outputting the name of the first and last student in the array.
1D Array Index (2 marks) Read More »
Notifications