University Examination Reference Framework · Computer Science & Applications

Web Designing

Syllabus Frequency & Past Year Questions (PYQ) Matrix

55 Solved Questions 2023, 2024 & 2025 Integrated Active Navigation Anchor Links PHP, SQL & MVC CodeIgniter Core
Strategic Preparation Guide Welcome to the Web Designing Exam Preparation Portal. This index maps 55 questions sourced directly from the July 2023, June 2024, and May 2025 university papers. Questions are categorized by recurrent frequency and historical probability to optimize your study time.

Preparation Directories

  1. If You Have Only 1 Day (Top 15 Essential Questions)
  2. ⭐⭐⭐⭐⭐ Tier-1: Guaranteed / High Frequency (Q1 - Q16)
  3. ⭐⭐⭐⭐ Tier-2: Very High Probability (Q17 - Q30)
  4. ⭐⭐⭐ Tier-3: Medium Probability (Q31 - Q45)
  5. ⭐⭐ Tier-4: Low Probability (Q46 - Q55)
  6. Analysis of Recurrent Frameworks
Special Study Track

If You Have Only 1 Day (The Essential 15) Critical Pass

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

Tier-1 Questions

⭐⭐⭐⭐⭐ Tier-1: Guaranteed / Highest Probability (Q1 - Q16)

These foundational questions appear regularly in both short-answer and long-answer descriptive sections. Click a target year to open the detailed solution.

Q1. PHP & Dynamic Web Apps

Role of PHP in server-side compilation, processing dynamic responses, and connecting to database engines.

2024 Solution 2023 Solution
Q2. Static vs. Dynamic Sites

Structural differences in content processing, database dependency, security, scalability, and UX.

2024 Solution 2023 Solution
Q3. Advantages of PHP

Open-source accessibility, cross-platform compatibility, vast community resources, and runtime efficiency.

2025 Solution 2024 Solution
Q4. HTTP GET vs. POST

GET exposes parameters in the URL; POST transmits data securely within the HTTP request body payload.

2025 Solution 2023 Solution
Q5. Array Architectures

Indexed arrays use numeric indices; associative arrays map semantic, user-defined string keys to values.

2024 Solution
Q6. Cookie Lifecycle

How cookies are set locally, read using superglobals, and deleted by setting the expiration date to the past.

2025 Solution 2024 Solution
Q7. PHP Session Management

How sessions store data securely on the server and use unique session IDs stored in client cookies.

2025 Solution
Q8. Sessions vs. Cookies

Detailed comparison of storage locations, capacities, bandwidth impact, and security profiles.

2025 Solution
Q9. include vs. require

include throws a warning and continues executing; require throws a fatal compile error and halts the script.

2025 Solution 2023 Solution
Q10. SQL Injection (SQLi)

How dynamic query concatenation is exploited, and how to prevent it using parameterized prepared statements.

2025 Solution 2023 Solution
Q11. CodeIgniter & Routing

CodeIgniter request lifecycles, configuration files, front controllers, and caching mechanisms.

2023 Solution
Q12. MVC in CodeIgniter

Separation of Concerns: Models manage database records, Views handle presentation, and Controllers manage routing.

2025 Solution 2024 Solution
Q13. Display Form Data

Securely processing and sanitizing HTML form inputs submitted via POST, and rendering them safely in PHP.

2023 Solution
Q14. Database Writing

The sequential database write process: establishing connections, preparing queries, and executing with parameters.

2024 Solution
Q15. POST Form DB Insertion

A complete PHP and PDO/MySQLi code block that processes submitted form fields and writes them to a database.

2025 Solution 2024 Solution
Q16. Session Login Form

Building a secure user authentication system with username queries, password verification, and session storage.

2023 Solution

Tier-2 Questions

⭐⭐⭐⭐ Tier-2: Very High Probability (Q17 - Q30)

These 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().

Tier-3 Questions

⭐⭐⭐ Tier-3: Medium Probability (Q31 - Q45)

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().

→ July 2023 Answer #q7

Q33 & Q34: Redirects & File Checks

Using the HTTP Location header for redirection, and evaluating files using fileatime() and file_exists().

→ July 2023 Answer #q7

Q35 & Q36: MySQL Sorting & DML Commands

Sorting results with the ORDER BY clause, and modifying records using DML commands (INSERT and UPDATE).

→ May 2025 Answer #q8

Q37 & Q38: Database Integrity & Triggers

Enforcing validation rules using MySQL constraints, and automating updates on modified tables using database triggers.

→ June 2024 Answer #group-a

Q39 & Q40: PDO Abstraction & AJAX UI

Unified database connections using PHP Data Objects, and asynchronous background requests using JavaScript/AJAX.

→ May 2025 Answer #q10

Q41 & Q42: CMS Applications & Apache Servers

Managing content with CMS systems (e.g., WordPress), and directory-level configuration using Apache's .htaccess.

→ May 2025 Answer #q10

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 #q5

Q44 & Q45: CodeIgniter Helpers

Procedural helper scripts in CodeIgniter, loading helper libraries, and using form and URL helpers.

→ June 2024 Answer #q10

Tier-4 Questions

⭐⭐ Low Probability (Q46 - Q55)

These 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.
Preparation Statistics

Analysis of Recurrent Frameworks

A frequency-based breakdown of previous year exam questions from the 2023, 2024, and 2025 papers.

Exam Frequency by Topic Area

  • State Persistence (Session/Cookie) → 5 Times
  • Database Operations (SQL/DML/PDO) → 4 Times
  • MVC Architectures & CodeIgniter → 3 Times
  • Variables, Scopes & Loops → 3 Times
  • Include vs Require Imports → 2 Times

Preparation Strategy Tips

  • Focus on writing clean, functional PHP and SQL code to secure full marks in long-answer questions.
  • When explaining variables and parameters, always use clear, annotated code snippets.
  • For architecture questions, draw neat flow diagrams to illustrate controllers and data models.
  • When explaining SQL injection vulnerabilities, make sure to detail the prevention mechanisms.
Syllabus Index

Quick Revision Matrix

State Management

  • Cookies store data locally in browser
  • Sessions store data securely on server
  • Use session_start() to track state
  • Set cookie time to past to delete

File Handling

  • fopen("r") opens read-only stream
  • fgets() reads files line-by-line
  • fclose() closes stream, releasing resources
  • require throws fatal error on missing files

MVC Frameworks

  • Frameworks provide pre-built logic
  • Model manages database interactions
  • View displays final UI/HTML
  • Controller coordinates data flow

Relational Databases

  • MySQL: fast relational database
  • ORDER BY sorts query outputs
  • PDO: secure unified database API
  • Prepared statements prevent SQL Injection

Web Designing Past Paper Solutions · Master Dashboard Matrix · Designed for 2026 Examination Prep.