University Examination Reference Framework · Computer Science & Applications
Preparation Directories
These 15 core concepts are highly recurrent across the 2023, 2024, and 2025 papers. Focus on these to cover the most likely long-answer questions in your upcoming exams.
| Prep Priority | Target Concept & Core Question Focus | Year-Wise Active Links |
|---|---|---|
| 1. Architectures | Static vs. Dynamic Website structures with structural examples. | 2023 Solved 2024 Solved |
| 2. Rationale | The core industrial and technical advantages of PHP. | 2023 Solved 2025 Solved |
| 3. Protocols | HTTP GET vs. POST: Security, capacity, and use case differences. | 2023 Solved 2025 Solved |
| 4. Data Structures | Arrays in PHP: Indexed vs. Associative arrays with code examples. | 2024 Solved 2025 Solved |
| 5. State Persistence | Cookies: Setting, viewing, and deleting cookies locally. | 2023 Solved 2024 Solved |
| 6. Secure Sessions | Sessions: Server-side tracking, initialization, and lifecycle. | 2025 Solved |
| 7. State Comparison | Detailed structural comparison: Session vs. Cookie states. | 2025 Solved |
| 8. File Handling | File Imports: include vs. require execution and error levels. |
2023 Solved 2025 Solved |
| 9. Security | SQL Injection: Security risks, exploit mechanisms, and PDO prevention. | 2023 Solved 2025 Solved |
| 10. Frameworks | CodeIgniter: Features, routing, configurations, and core systems. | 2023 Solved |
| 11. Architecture | The MVC (Model-View-Controller) pattern in web applications. | 2024 Solved 2025 Solved |
| 12. User Forms | Form Handling: Retrieving and displaying submitted inputs in PHP. | 2023 Solved |
| 13. Database Write | Inserting form data into a MySQL database via the POST method. | 2024 Solved 2025 Solved |
| 14. Variable Scope | Local, global, and static variable scopes with examples. | 2024 Solved |
| 15. Functions | PHP functions: Call-by-Value vs. Call-by-Reference parameters. | 2024 Solved |
These foundational questions appear regularly in both short-answer and long-answer descriptive sections. Click a target year to open the detailed solution.
Role of PHP in server-side compilation, processing dynamic responses, and connecting to database engines.
2024 Solution 2023 SolutionStructural differences in content processing, database dependency, security, scalability, and UX.
2024 Solution 2023 SolutionOpen-source accessibility, cross-platform compatibility, vast community resources, and runtime efficiency.
2025 Solution 2024 SolutionGET exposes parameters in the URL; POST transmits data securely within the HTTP request body payload.
2025 Solution 2023 SolutionIndexed arrays use numeric indices; associative arrays map semantic, user-defined string keys to values.
2024 SolutionHow cookies are set locally, read using superglobals, and deleted by setting the expiration date to the past.
2025 Solution 2024 SolutionHow sessions store data securely on the server and use unique session IDs stored in client cookies.
2025 SolutionDetailed comparison of storage locations, capacities, bandwidth impact, and security profiles.
2025 Solutioninclude throws a warning and continues executing; require throws a fatal compile error and halts the script.
2025 Solution 2023 SolutionHow dynamic query concatenation is exploited, and how to prevent it using parameterized prepared statements.
2025 Solution 2023 SolutionCodeIgniter request lifecycles, configuration files, front controllers, and caching mechanisms.
2023 SolutionSeparation of Concerns: Models manage database records, Views handle presentation, and Controllers manage routing.
2025 Solution 2024 SolutionSecurely processing and sanitizing HTML form inputs submitted via POST, and rendering them safely in PHP.
2023 SolutionThe sequential database write process: establishing connections, preparing queries, and executing with parameters.
2024 SolutionA complete PHP and PDO/MySQLi code block that processes submitted form fields and writes them to a database.
2025 Solution 2024 SolutionBuilding a secure user authentication system with username queries, password verification, and session storage.
2023 SolutionThese core programming questions are frequently tested, focusing on variables, function arguments, and arrays.
| ID | Target Question | Year Link | Syllabus Concept / Target Focus |
|---|---|---|---|
| Q17 | Explain Variable Scope in PHP with examples. | 2024 #q3 | Analyses local, global, and static scopes inside functions. |
| Q18 | Differentiate between FOR loop and FOREACH loop. | 2024 #q3 | Iterating over indexed counters vs. traversing associative arrays. |
| Q19 | Explain Functions with arguments and reference arguments. | 2024 #q5 | Call-by-Value copies data; Call-by-Reference (&) updates original values in memory. |
| Q20 | Explain Default Arguments in PHP Functions. | 2024 #q5 | Handling optional function parameters and avoiding parameter order errors. |
| Q21 | How are comments used in PHP? Explain with examples. | 2025 #q2 | Single-line (//, #) and multi-line (/* */) comments for documentation. |
| Q22 | Explain any four String Functions in PHP. | 2024 #q7 | String operations, including strlen(), strpos(), and str_replace(). |
| Q23 | Why is MySQL used with PHP? | 2025 #q7 | Open-source database integration, ease of connection, and performance on standard stacks. |
| Q24 | Explain PHP Database APIs (MySQLi and PDO). | 2024 #q6 | Detailed comparison of database portability, syntaxes, and security features. |
| Q25 | What is a PHP Framework? Why is it required? | 2025 #q9 | Speeds up development, structures code, and provides built-in defenses against web vulnerabilities. |
| Q26 | Name some popular PHP Frameworks and explain their features. | 2025 #q9 | Syllabus features of Laravel (Eloquent, Artisan) and CodeIgniter (lightweight speed). |
| Q27 | Write a PHP program to erase all Session Variables. | 2025 #q5 | Using session_unset() and session_destroy() to safely clear session states. |
| Q28 | Write a PHP script to delete a Cookie named "username". | 2025 #q6 | Using setcookie() to expire a cookie by setting its time to the past. |
| Q29 | Explain different types of Arrays in PHP. | 2025 #q4 | Structures and differences of Indexed, Associative, and Multidimensional arrays. |
| Q30 | Explain Array Sorting Functions with examples. | 2024 #q4 | Sorting functions, including sort(), rsort(), asort(), and ksort(). |
These questions focus on external services, file streams, databases, and secondary frameworks (such as AJAX, CMS, and Web Server configurations).
Q31 & Q32: File System Streams
How PHP handles local file systems. Open, read, and output files line-by-line using fopen("r") and fgets().
Q33 & Q34: Redirects & File Checks
Using the HTTP Location header for redirection, and evaluating files using fileatime() and file_exists().
Q35 & Q36: MySQL Sorting & DML Commands
Sorting results with the ORDER BY clause, and modifying records using DML commands (INSERT and UPDATE).
Q37 & Q38: Database Integrity & Triggers
Enforcing validation rules using MySQL constraints, and automating updates on modified tables using database triggers.
→ June 2024 Answer #group-aQ39 & Q40: PDO Abstraction & AJAX UI
Unified database connections using PHP Data Objects, and asynchronous background requests using JavaScript/AJAX.
→ May 2025 Answer #q10Q41 & Q42: CMS Applications & Apache Servers
Managing content with CMS systems (e.g., WordPress), and directory-level configuration using Apache's .htaccess.
Q43: E-Commerce business Models
Buying and selling goods online. Explains Business-to-Consumer (B2C) and Business-to-Business (B2B) business models.
→ May 2025 Answer #q5Q44 & Q45: CodeIgniter Helpers
Procedural helper scripts in CodeIgniter, loading helper libraries, and using form and URL helpers.
→ June 2024 Answer #q10These simpler foundational concepts can still appear as short questions or MCQs. Be sure to review them for quick wins.
| ID | Target Question | Direct Syllabus Answer Link | Concept Brief |
|---|---|---|---|
| Q46 | Explain echo and print. | 2023 #ga-6 | Language output constructs: print returns 1, echo can accept multiple parameters. |
| Q47 | Differentiate between == and ===. | 2023 #ga-2 | Loose value comparison (with coercion) vs. strict identity comparison (values and types). |
| Q48 | Explain Constants and Variables in PHP. | 2024 #q3 | Dynamic values declared with $ vs. immutable constants defined using the const keyword. |
| Q49 | Explain Associative Arrays with examples. | 2023 #q5 | Key-value arrays mapping custom, developer-defined strings to values. |
| Q50 | Explain Indexed Arrays with examples. | 2024 #q4 | Standard arrays that store elements sequentially using zero-based integers as keys. |
| Q51 | Write a PHP program to split a String. | 2025 #q4 | Converting strings into array elements using explode() or str_split(). |
| Q52 | Explain Dynamic Websites. | 2025 #q8 | Pages built on demand by querying a backend database (such as MySQL) and rendering content in real-time. |
| Q53 | Explain the advantages of Apache Web Server. | 2023 #ga-4 | Advantages include its open-source license, modular architecture, and directory-level .htaccess configuration files. |
| Q54 | What is the use of die() function? | 2023 #q6 | Immediately terminates current script execution and outputs an optional message. |
| Q55 | Explain Superglobal Variables in PHP. | 2024 #group-a | Built-in associative arrays (e.g., $_GET, $_POST, $_SESSION) that are accessible globally in all scopes. |
A frequency-based breakdown of previous year exam questions from the 2023, 2024, and 2025 papers.
Exam Frequency by Topic Area
Preparation Strategy Tips
Web Designing Past Paper Solutions · Master Dashboard Matrix · Designed for 2026 Examination Prep.