CSS past papers · 2024

CSS 2024 Computer Science Combined Papers Past Paper

Download and review the CSS 2024 Computer Science Combined Papers Past Paper on CSS Vista, with archive details, related papers and a direct PDF link for examination preparation.

Paper details

Examination
CSS
Year
2024
Subject
Computer Science
Paper
Combined Papers
Subject type
Optional
Mode
Subjective

Browse the complete CSS Vista past-paper archive.

Questions recorded from this paper

These 12 question wordings are transcribed from CSS Vista’s structured Computer Science past-paper record for CSS 2024.

  1. Q8 · EmailWrite Regular Expression(s) for the following (5 each) (20) I. For date Format of standard e.g. (10.03.2024 | 12/30/2023| 01/01/2022) II. Write a Regular Expression that will match URL e.g. (http://example.edu.pk) III. Write a Regular Expression that will match an IP address. e.g. 192.168.0.1 IV. Write a Regular Expression that will match an email address. e.g. (abc@example.com)
  2. Q2 · information technology(a) Discuss the future of Information Technology (IT) in Pakistan and its huge impact on all (6) our daily lives. (b) Discuss the difference between a computer virus a trojan and a worm? (6) (c) Discuss the pros and cons of LaTeX in comparison to other document processors. (8)
  3. Q3 · Programming Fundamentals(a) Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays (6) its corresponding numeric value 4, 3, 2, 1, or 0. (b) Write pseudocode OR C-language script for the following expression. (6) (c) Write a version of Breadth First Search (BFS) that finds the distances from the start node (8) to each of the others, rather than the actual paths.
  4. Q4 · Programming Fundamentals(a) Write a program that displays the area and perimeter of a rectangle with the width of 4.5 (6) and height of 7.9 using the following formula: area = width * height. (b) Write a program that reads a Celsius degree from the console, then converts it to (6) Fahrenheit and displays the result. The formula for the conversion is as follows: Fahrenheit = (9 / 5) * Celsius + 32. (c) Write a program that prompts the user to enter the month and year and displays the number (8) of days in the month. For example, if the user entered month 2 and year 2024, the program should display that February 2024 had 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 had 31 days.
  5. Q5 · static(a) Show the output of the following code? (6) public class Test { public static void main(String[] args) { Double x = 3.5; System.out.println(x.intValue()); System.out.println(x.compareTo(4.5)); } } (b) Illustrate the difference between overriding and overloading by the piece of pseudocode or (6) program. (c) How do you prevent a class from being extended? How do you prevent a method from (8) being overridden? Exemplify with simple piece of code.
  6. Q6 · Binary Search(a) For the following data sets, which sorting algorithms would work well, and which would (8) not? a. 10 floating-point values b. 1,000 integers c. 1,000 names d. 100,000 integers with values between 0 and 1,000 e. 100,000 integers with values between 0 and 1 billion f. 100,000 names g. 1 million floating-point values h. 1 million names i. 1 million integers with uniform distribution j. 1 million integers with non-uniform distribution (b) Write an algorithm that implements binary search recursively. Does this version have any (6) advantages or disadvantages compared to the non-recursive version? (c) Write an algorithm that deletes a specified cell from a doubly linked list. Draw a picture (6) that shows the process graphically.
  7. Q7 · Project Management(a) Discuss the phases of project management including conception and initiation, project (6) planning, project execution, performance/monitoring, and project close. (b) What are the different types of test design techniques? When would you use these types of (6) test design techniques? (c) Exemplify the difference between Quality Assurance, Quality Control, and Testing? (8)
  8. Q2 · Instruction execution cycle(a) Why are multi-processor systems considered advantageous in computer (7) architecture? How does parallel processing fundamentally improve the performance and scalability of a computer system? (b) How does the choice of architectural level impact the performance of a computer (7) system? Provide a numerical comparison between two different architectural levels, highlighting their strengths and weaknesses. (c) If a processor executes 1 billion instructions per second and has an instruction (6) execution cycle of 4 cycles per instruction. Calculate the overall execution time for a program with 1 million instructions. Discuss how reducing the number of cycles per instruction can impact performance.
  9. Q3 · Instruction execution cycle(a) Why cache memory is considered a critical component in a computer system? How (7) does the internal and external data representation contribute to optimizing memory usage and system efficiency? (b) Explain the concept of parallelism in computer architecture. How does the internal (7) structure of a microprocessor contribute to parallel processing capabilities? (c) Break down the stages of the instruction execution cycle in a computer system. (6) How do the characteristics of CISC and RISC architectures influence the execution cycle?
  10. Q4 · Content distribution networks(a) Compare the OSI and TCP/IP models in terms of their simplicity and practicality. (7) Why is a layered approach beneficial in network design? (b) Explain how overlay networks and content distribution networks enhance the (7) performance and scalability of internet services? Provide a numerical example to illustrate their impact on content delivery. (c) If the internet were a city, and each device had its own unique street address, how (6) does IP addressing work in this scenario? Explain the purpose of subnetting using a neighborhood analogy.
  11. Q5 · Computing Environments(a) Compare the file systems of UNIX and Windows in terms of structure, (7) permissions, and file organization. How do these file systems cater to the needs of diverse computing environments? (b) How does an operating system mediate between application programs and the (7) computer hardware? Discuss the key roles and responsibilities of an operating system in managing resources. (c) What is process management in the context of operating systems? How does the (6) operating system handle processes, and what role does it play in multitasking?
  12. Q6 · Distributed Databases(a) Elaborate on the evolution of database systems, highlighting major milestones. (7) Discuss the impact of emerging technologies on the field of database systems. (b) Write a SQL query involving multiple tables and incorporating JOIN operations. (7) Discuss the potential pitfalls and optimizations related to complex SQL queries. (c) What are distributed databases, and why are they used? Discuss the advantages and (6) challenges of managing data in a distributed environment.

Topic-wise Computer Science past-paper analysis.