CS310 – Open Source Web Application Development (PHP): Midterm Important Subjective (41 Solved Q&As)

Computer Science • Read every solved subjective question with its model answer directly on this page. Free, no login required.

All 664 Midterm Packs · CS310 Course Page · CS310 MCQ Pack (53 MCQs)

  1. What is PHP? Write any four features/characteristics of PHP.
    Topic: PHP Basics & Syntax • 3 marks marks

    PHP stands for "PHP: Hypertext Preprocessor". It is a widely used, open source, server-side scripting language that is especially suited for web development and can be embedded into HTML. PHP scripts are executed on the server and the result is returned to the browser as plain HTML. Main features of PHP are: (1) It is free to download and use (open source). (2) It runs on almost all platforms (Windows, Linux, Unix, Mac OS X) and is compatible with almost all servers (Apache, IIS, etc.). (3) It can generate dynamic page content, collect form data, and send and receive cookies. (4) It supports a wide range of databases and is easy to learn. PHP files have the extension ".php".

  2. Write the basic syntax of a PHP script. How is PHP code embedded in an HTML page?
    Topic: PHP Basics & Syntax • 3 marks marks

    A PHP script starts with <?php and ends with ?>. These tags tell the server where the PHP code begins and ends. PHP code can be placed anywhere in an HTML document, and a PHP file normally contains HTML tags along with PHP scripting code. Every PHP statement ends with a semicolon (;). Output is produced with the echo or print statement. Example: <html> <body> <?php echo "Hello World!"; ?> </body> </html>

  3. Differentiate between the echo and print statements in PHP.
    Topic: PHP Basics & Syntax • 2 marks marks

    (1) echo has no return value, while print has a return value of 1, so print can be used in expressions. (2) echo can take multiple parameters (arguments separated by commas), while print can take only one argument. (3) echo is marginally faster than print. Both are language constructs and are used to output data to the screen.

  4. What are comments in PHP? Write the syntax for a single-line comment and a multi-line comment in PHP.
    Topic: PHP Basics & Syntax • 2 marks marks

    Comments are lines in the code that are not executed; they are used to explain the code and make it more readable. In PHP, a single-line comment is written with // (or #), and a multi-line comment is written between /* and */. // This is a single-line comment # This is also a single-line comment /* This is a multi-line comment */

  5. What can PHP do? List the main uses/capabilities of PHP.
    Topic: PHP Basics & Syntax • 3 marks marks

    With PHP we can: (1) Generate dynamic page content. (2) Create, open, read, write and close files on the server. (3) Collect form data sent by the user. (4) Send and receive cookies. (5) Add, delete and modify data in a database. (6) Control user access and encrypt data. PHP is not limited to outputting HTML; it can also output images, PDF files and other content.

  6. What is a variable in PHP? Write the rules for naming a PHP variable.
    Topic: Variables, Data Types, Constants & Scope • 3 marks marks

    In PHP, a variable is a container for storing data/information. A variable starts with the $ sign, followed by the name of the variable. PHP is a loosely typed language, so a variable does not need to be declared before adding a value to it; it is automatically created when a value is assigned to it. Rules for naming a variable: (1) A variable name must start with a letter or the underscore character. (2) A variable name cannot start with a number. (3) A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9 and _). (4) Variable names are case-sensitive, so $age and $AGE are two different variables. $txt = "Hello"; $x = 5;

  7. List and briefly explain the data types supported in PHP.
    Topic: Variables, Data Types, Constants & Scope • 5 marks marks

    PHP supports the following data types: (1) String — a sequence of characters in quotes, e.g. "Hello world!". (2) Integer — a whole number without decimals, e.g. 5985. (3) Float (double) — a number with a decimal point or in exponential form, e.g. 10.365. (4) Boolean — represents two possible states, TRUE or FALSE. (5) Array — stores multiple values in one single variable. (6) Object — an instance of a class, storing data and information about how to process it. (7) NULL — a variable with no value assigned to it. (8) Resource — stores a reference to functions and resources external to PHP (e.g. a database connection).

  8. What is variable scope in PHP? Explain local and global scope.
    Topic: Variables, Data Types, Constants & Scope • 3 marks marks

    Variable scope means the part of the script where a variable can be accessed/used. PHP has three different variable scopes: local, global and static. Global scope: A variable declared outside a function has a GLOBAL scope and can only be accessed outside a function. Local scope: A variable declared within a function has a LOCAL scope and can only be accessed within that function.

  9. Explain the static scope in PHP with the help of an example.
    Topic: Variables, Data Types, Constants & Scope • 3 marks marks

    Normally, when a function completes/finishes executing, all of its local variables are deleted. Sometimes we want a local variable NOT to be deleted, but to remember its value for further use of the function. For this we use the static keyword when the variable is first declared. A static variable is local to the function but retains its previous value when the function is called again. function myTest() { static $x = 0; echo $x; $x++; } myTest(); // outputs 0 myTest(); // outputs 1 myTest(); // outputs 2

  10. What is a constant in PHP? How is a constant defined? Differentiate between a constant and a variable.
    Topic: Variables, Data Types, Constants & Scope • 5 marks marks

    A constant is an identifier (name) for a simple value that cannot change during the execution of the script. A valid constant name starts with a letter or underscore (no $ sign before the name). Constants are automatically global across the entire script. A constant is defined by using the define() function. Differences: (1) A variable name starts with the $ sign, a constant name has no $ sign. (2) A variable's value can be changed during the script; a constant's value cannot be changed or undefined after it is set. (3) Variables are defined by simple assignment (=); constants are defined with the define() function. (4) By convention, constant names are usually written in uppercase. define("GREETING", "Welcome to VU!"); echo GREETING;

  11. How can a global variable be accessed inside a function in PHP?
    Topic: Variables, Data Types, Constants & Scope • 2 marks marks

    A global variable cannot be accessed directly inside a function. It can be accessed in two ways: (1) By using the global keyword before the variable name inside the function, e.g. global $x; (2) By using the $GLOBALS array, in which PHP stores all global variables, e.g. $GLOBALS['x']. function myTest() { global $x; echo $x; }

  12. List the different types of operators in PHP with one example of each.
    Topic: Operators • 3 marks marks

    PHP operators are grouped as follows: (1) Arithmetic operators, e.g. + (addition), - , * , / , % (modulus), ** (exponentiation). (2) Assignment operators, e.g. = , += , -= . (3) Comparison operators, e.g. == , === , != , > , < . (4) Increment/Decrement operators, e.g. ++$x, $x--. (5) Logical operators, e.g. && (and), || (or), ! (not). (6) String operators, e.g. . (concatenation). (7) Array operators, e.g. + (union), == (equality).

  13. Differentiate between the == and === comparison operators in PHP.
    Topic: Operators • 2 marks marks

    The == operator (equal) returns true if the two operands have the same value after type conversion (type juggling), even if their data types are different. The === operator (identical) returns true only if the operands have the same value AND the same data type. For example, 100 == "100" is true, but 100 === "100" is false because one is an integer and the other is a string.

  14. Explain the increment and decrement operators in PHP. What is the difference between pre-increment and post-increment?
    Topic: Operators • 3 marks marks

    The increment operator ++ increases the value of a variable by one, and the decrement operator -- decreases it by one. In pre-increment (++$x), the value is first incremented and then returned/used. In post-increment ($x++), the original value is first returned/used and then incremented. The same rule applies to --$x (pre-decrement) and $x-- (post-decrement). $x = 10; echo ++$x; // 11 (incremented first) $x = 10; echo $x++; // 10 (used first, then becomes 11)

  15. Explain the logical operators used in PHP with examples.
    Topic: Operators • 2 marks marks

    Logical operators are used to combine conditional statements: (1) && or 'and' — true if both operands are true, e.g. ($x > 5 && $x < 20). (2) || or 'or' — true if either of the operands is true, e.g. ($x == 5 || $x == 10). (3) ! (not) — reverses the result; returns true if the operand is not true, e.g. !($x == 5). Another logical operator is 'xor', which is true if either operand is true but not both.

  16. Explain the if-elseif-else statement with its syntax and a suitable example.
    Topic: Control Structures (if / else / switch) • 5 marks marks

    The if-elseif-else statement is used to execute some code if one of the several conditions is true. The conditions are tested in order: the first condition that evaluates to true is executed, and the remaining conditions are skipped. If none of the conditions is true, the else block is executed. Syntax: if (condition1) { code to execute if condition1 is true; } elseif (condition2) { code to execute if condition2 is true; } else { code to execute if all conditions are false; } Example: $marks = 75; if ($marks >= 80) { echo "Grade A"; } elseif ($marks >= 60) { echo "Grade B"; } else { echo "Grade C"; } // Output: Grade B

  17. Explain the switch statement in PHP with its syntax. When is it preferred over if-elseif-else?
    Topic: Control Structures (if / else / switch) • 3 marks marks

    The switch statement is used to perform different actions based on different conditions. It selects one of many blocks of code to be executed, by comparing a single expression/variable against different case values. The break statement stops the execution from falling into the next case, and the default block runs when no case matches. It is preferred over a long if-elseif-else chain when the same variable/expression is to be tested against many different values, because the code becomes simpler and easier to read. switch ($day) { case 1: echo "Monday"; break; case 2: echo "Tuesday"; break; default: echo "Other day"; }

  18. Write a PHP program that uses if-else to check whether a number is even or odd.
    Topic: Control Structures (if / else / switch) • 5 marks marks

    The modulus operator % gives the remainder of a division. If a number divided by 2 gives remainder 0, the number is even; otherwise it is odd. The if statement tests this condition and the else part handles the other case. <?php $num = 7; if ($num % 2 == 0) { echo "$num is Even"; } else { echo "$num is Odd"; } ?> // Output: 7 is Odd

  19. Differentiate between the while loop and the do-while loop in PHP.
    Topic: Loops • 3 marks marks

    (1) In a while loop the condition is checked first and then the body of the loop is executed; in a do-while loop the body is executed first and then the condition is checked. (2) A while loop may execute zero times if the condition is false at the start, whereas a do-while loop is guaranteed to execute at least one time. (3) The while loop is an entry-controlled loop, while the do-while loop is an exit-controlled loop.

  20. Explain the for loop in PHP with its syntax and an example. When should a for loop be used?
    Topic: Loops • 3 marks marks

    The for loop is used when the exact number of iterations (times the loop should run) is known in advance. It has three parts separated by semicolons: initialization (executed once, at the beginning), condition (evaluated before every iteration), and increment/decrement (executed at the end of every iteration). Syntax: for (init; condition; increment) { code to be executed; } Example: for ($i = 0; $i < 5; $i++) { echo "i = $i <br>"; } // Loop body executes 5 times

  21. What is the foreach loop in PHP? Write its syntax with an example.
    Topic: Loops • 3 marks marks

    The foreach loop works only on arrays and is used to loop through each key/value pair in an array. For every loop iteration, the value of the current array element is assigned to a variable and the array pointer moves to the next element, so no counter or condition is needed. Syntax: foreach ($array as $value) { code to be executed; } Or: foreach ($array as $key => $value) { ... } Example: $colors = array("red", "green", "blue"); foreach ($colors as $value) { echo "$value <br>"; }

  22. Write a PHP program using a loop to print the multiplication table of 5 (from 5 x 1 to 5 x 10).
    Topic: Loops • 5 marks marks

    A for loop is suitable because the number of iterations (10) is known in advance. In each iteration the loop counter is multiplied by 5 and the result is printed. <?php $num = 5; for ($i = 1; $i <= 10; $i++) { echo "$num x $i = " . ($num * $i) . "<br>"; } ?> // Output: 5 x 1 = 5, 5 x 2 = 10, ... , 5 x 10 = 50

  23. What is a function in PHP? Write the syntax for creating a user-defined function with an example.
    Topic: Functions • 5 marks marks

    A function is a block of statements that can be used repeatedly in a program. A function is not executed automatically when a page loads; it is executed only when it is called. PHP has more than 1000 built-in functions, and we can also create our own (user-defined) functions. A function declaration starts with the keyword function, followed by the function name and parentheses; function names are not case-sensitive but cannot start with a number. function writeMsg() { echo "Hello world!"; } writeMsg(); // calling the function // Output: Hello world!

  24. How are arguments passed to a function in PHP? Also explain default argument values.
    Topic: Functions • 3 marks marks

    Information can be passed to functions through arguments, which behave like local variables inside the function. Arguments are specified after the function name, inside the parentheses, separated by commas. By default, arguments are passed by value, so changing the argument's value inside the function does not change its value outside the function. A default value can also be set for an argument; if the function is called without that argument, the default value is used. function familyName($fname, $year = "unknown") { echo "$fname born in $year <br>"; } familyName("Ali", "1995"); familyName("Sara"); // uses the default value

  25. How does a function return a value in PHP? Explain with an example.
    Topic: Functions • 2 marks marks

    A function can return a value to the code that called it by using the return statement. As soon as return is executed, the function stops executing and the value is sent back to the calling code, where it can be stored in a variable or used directly. function sum($x, $y) { return $x + $y; } echo sum(5, 10); // Output: 15

  26. What is an array in PHP? Explain the types of arrays in PHP.
    Topic: Arrays & String Functions • 5 marks marks

    An array is a special variable that can hold more than one value at a time under a single name, and the values can be accessed by referring to an index number or a key name. Arrays are created with the array() function. PHP has three types of arrays: (1) Indexed arrays — arrays with numeric indexes, e.g. $cars = array("Volvo", "BMW", "Toyota"); where "Volvo" has index 0. (2) Associative arrays — arrays with named keys, e.g. $age = array("Ali" => "35", "Sara" => "37"); (3) Multidimensional arrays — arrays containing one or more arrays inside them.

  27. Write a short note on any five commonly used string functions in PHP.
    Topic: Arrays & String Functions • 3 marks marks

    (1) strlen() — returns the length of a string, e.g. strlen("Hello") returns 5. (2) str_word_count() — counts the number of words in a string. (3) strrev() — reverses a string, e.g. strrev("Hello") gives "olleH". (4) strpos() — searches for a specific text within a string and returns the position of the first occurrence. (5) str_replace() — replaces some characters/words with other characters/words in a string, e.g. str_replace("world", "Dolly", "Hello world!") gives "Hello Dolly!".

  28. Write a PHP program to create an indexed array of fruits and display all its elements using a loop.
    Topic: Arrays & String Functions • 3 marks marks

    An indexed array is created with the array() function, and its elements get numeric indexes starting from 0. The foreach loop is the easiest way to display all elements of an array one by one. <?php $fruits = array("Apple", "Banana", "Mango", "Orange"); foreach ($fruits as $fruit) { echo "$fruit <br>"; } ?>

  29. Differentiate between the GET and POST methods of sending form data in PHP.
    Topic: Forms, GET & POST and Superglobals • 3 marks marks

    (1) In GET, the form data is appended to the URL and is visible to everyone; in POST, the data is sent in the body of the HTTP request and is not visible in the URL. (2) GET has limits on the amount of information that can be sent (about 2000 characters); POST has no limits. (3) GET requests can be bookmarked and should never be used for sensitive data like passwords; POST is more secure and is used for sensitive/large data. (4) GET is used for retrieving data, while POST is used for sending/modifying data.

  30. What are superglobal variables in PHP? Name any four. How is form data collected using $_GET and $_POST?
    Topic: Forms, GET & POST and Superglobals • 3 marks marks

    Superglobals are built-in variables that are always available in all scopes throughout a script, no matter where they are used. Examples are $GLOBALS, $_SERVER, $_REQUEST, $_GET, $_POST, $_FILES, $_COOKIE and $_SESSION. When a form is submitted, its field values are collected using the superglobal matching the form's method: if the form uses method="get", values are collected with $_GET['fieldname']; if it uses method="post", values are collected with $_POST['fieldname']. <form method="post" action="welcome.php"> Name: <input type="text" name="name"> </form> // In welcome.php: <?php echo $_POST["name"]; ?>

  31. What is the include statement in PHP? Write its syntax and explain its use.
    Topic: Include Statement, date() Function, Cookies & Sessions • 3 marks marks

    The include statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement, before the server executes that file. It is very useful when the same HTML, PHP or text is repeated on multiple pages of a website, such as a header, footer or menu: instead of repeating the code on every page, it is kept in one file and included wherever needed, so updating one file updates all pages. Syntax: include 'filename'; Example: <?php include 'footer.php'; ?>

  32. Explain the date() function in PHP. What do the format characters d, m, Y and l represent?
    Topic: Include Statement, date() Function, Cookies & Sessions • 3 marks marks

    The date() function formats a local date and time and returns the formatted date string. Its syntax is date(format, timestamp), where the format parameter is required and specifies how the date/time is to be formatted, and the timestamp is optional. Important format characters are: d — represents the day of the month (01 to 31); m — represents a month (01 to 12); Y — represents a year in four digits (e.g. 2026); l (lowercase L) — represents the day of the week in full text (e.g. Monday). echo "Today is " . date("Y/m/d"); // e.g. Today is 2026/01/15

  33. What is a cookie in PHP? How is a cookie created and retrieved?
    Topic: Include Statement, date() Function, Cookies & Sessions • 3 marks marks

    A cookie is a small file that the server embeds on the user's computer; it is often used to identify a user. Each time the same computer requests a page, it also sends the cookie with the request. A cookie is created with the setcookie() function, which must appear BEFORE the <html> tag. Its main parameters are the cookie name, value, and expiry time. The value of a cookie is retrieved using the $_COOKIE superglobal. A cookie is deleted by setting its expiry time to a time in the past. setcookie("user", "Ali Ahmad", time() + 3600, "/"); // Retrieve it on another page: echo $_COOKIE["user"];

  34. What is a session in PHP? Explain how a session is started, how session variables are set, and how a session is destroyed.
    Topic: Include Statement, date() Function, Cookies & Sessions • 5 marks marks

    A session is a way to store information (variables) about a single user across multiple pages, e.g. a username or login status. Unlike a cookie, the information is not stored on the user's computer but on the server. A session is started with the session_start() function, which must be the very first thing in the document, before any HTML tags. Session variables are set with the PHP global variable $_SESSION. To completely destroy the session, session_unset() removes all session variables and session_destroy() destroys the session. session_start(); $_SESSION["username"] = "Ali"; echo $_SESSION["username"]; // To end the session: session_unset(); session_destroy();

  35. Differentiate between cookies and sessions in PHP.
    Topic: Include Statement, date() Function, Cookies & Sessions • 3 marks marks

    (1) Cookies store data on the user's (client) computer, while session data is stored on the server. (2) Sessions are more secure than cookies because the data is not kept on the user's machine. (3) A cookie can store only a small amount of data and has a size limit; a session can store much larger data. (4) A cookie remains available even after the browser is closed (until its expiry time), while a session normally ends when the user closes the browser or the session is destroyed. (5) Cookies are accessed with $_COOKIE and sessions with $_SESSION after calling session_start().

  36. Write down a complete PHP code to display your name.
    Topic: PHP Basics & Syntax • 3 marks marks

    A complete PHP code that displays a name using the echo statement is: <?php echo "Ali Ahmed"; ?> The code is written between the opening tag <?php and the closing tag ?>, and the echo statement displays the given name on the web page.

  37. Write the name of each type of loop in PHP.
    Topic: Loops • 2 marks marks

    There are four types of loops in PHP. Their names are as follows: 1. for Loop 2. while Loop 3. do-while Loop 4. foreach Loop

  38. What will be the output of the following code? for($i = 1; $i<=3; $i++) echo $i*2 . "<br>";
    Topic: Loops • 3 marks marks

    The for loop will execute three times; each time it will multiply the value of $i with 2 and display the result. The output will be as follows: 2 4 6

  39. Write the code of for loop in PHP which will calculate the sum of all numbers from 1 to 20 and then display its value on the screen.
    Topic: Loops • 5 marks marks

    <?php $sum = 0; for ($i = 1; $i <= 20; $i++) { $sum = $sum + $i; } echo "Sum of numbers from 1 to 20 is: " . $sum; ?> The for loop runs from 1 to 20 and keeps adding each value of $i into the variable $sum. After the loop ends, the total is displayed on the screen. Output: Sum of numbers from 1 to 20 is: 210

  40. What will be the output of the following code? <?php echo strrev("Pakistan"); ?>
    Topic: Arrays & String Functions • 2 marks marks

    The strrev() function reverses a string, so the output of this code will be: natsikaP

  41. Write PHP code using string functions that will replace word "and" with "AND" in the given below paragraph. After replacing and with AND display the paragraph. (5 marks) Paragraph: The territory that now constitutes Pakistan was previously home to several ancient cultures, including the Mehrgarh of the Neolithic and the Bronze Age Indus Valley Civilization, and was later home to kingdoms ruled by people of different faiths and cultures.
    Topic: Arrays & String Functions

    The str_replace() string function is used to replace all occurrences of a word in a string: <?php $paragraph = "The territory that now constitutes Pakistan was previously home to several ancient cultures, including the Mehrgarh of the Neolithic and the Bronze Age Indus Valley Civilization, and was later home to kingdoms ruled by people of different faiths and cultures."; echo str_replace("and", "AND", $paragraph); ?> After replacing "and" with "AND", the paragraph displayed will be: The territory that now constitutes Pakistan was previously home to several ancient cultures, including the Mehrgarh of the Neolithic AND the Bronze Age Indus Valley Civilization, AND was later home to kingdoms ruled by people of different faiths AND cultures.

MIHORA VU – Virtual University Assignment Solutions 2026, Solved Past Papers & All 455+ Courses

Official MIHORA TECH academic repository offering 28,328+ verified study documents for all 455+ Virtual University of Pakistan courses. Access VU Assignment Solution 2026 (Latest Session), Moaaz & Waqar Siddhu solved midterm & final papers, lecture handouts, and quizzes with 100% direct high-speed links.

SPRING 2026 / FALL 2026 ACTIVE SESSION

VU Assignment Solution 2026 (Latest Solved Assignments, GDBs & Quizzes)

Get high-scoring solutions for Assignment 1, Assignment 2, and Graded Discussion Boards across Computer Science, Mathematics, Management, English, and Economics. Compliant with Turnitin similarity limits (< 19%) and official 24-hour grace periods.

Open VU Assignment Solution 2026 Hub →

Popular Virtual University Courses (2026 Solved Papers & Solutions):

CS101 – Introduction to Computing CS201 – Introduction to Programming CS301 – Data Structures CS302 – Digital Logic Design CS401 – Computer Architecture & Assembly Language CS402 – Theory of Automata CS403 – Database Management Systems CS501 – Advance Computer Architecture CS502 – Fundamentals of Algorithms CS504 – Software Engineering - I CS506 – Enterprise Application Development CS601 – Data Communication CS602 – Computer Graphics CS604 – Operating Systems CS605 – Software Engineering - II CS607 – Artificial Intelligence CS610 – Computer Networks CS619 – Final Year Project MTH101 – Calculus & Analytical Geometry MTH202 – Discrete Mathematics MTH301 – Calculus II (Multivariable Calculus) MTH302 – Business Mathematics & Statistics MTH501 – Linear Algebra ENG101 – English Comprehension ENG201 – Business and Technical English Writing MGT101 – Financial Accounting MGT211 – Introduction to Business MGT301 – Principles of Marketing MGT501 – Human Resource Management ACC311 – Fundamentals of Auditing ACC501 – Business Finance STA301 – Statistics and Probability ECO401 – Economics (Micro & Macro) ISL202 – Islamic Studies / Ethics PAK301 – Pakistan Studies PHY101 – Physics - Mechanics & Waves

Complete Directory of All 455 Virtual University Courses & Codes

Browse the complete curriculum of all 455 accredited courses across 27 faculties of Virtual University of Pakistan. Every course includes verified lecture handouts, Moaaz & Waqar Siddhu solved papers, and 2026 assignment solution templates.

Accounting & Finance (16 Courses)

ACC301 – Financial Accounting ACC311 – Fundamentals of Auditing ACC501 – Business Finance BNK601 – Banking Laws & Practices BNK603 – Consumer Banking BNK604 – Commercial Banking BNK610 – Credit & Risk Management in Banking EFIN623 – Economics of Financial Markets FIN611 – Advanced Financial Accounting FIN621 – Financial Statement Analysis FIN622 – Corporate Finance FIN623 – Taxation Management FIN624 – Islamic Banking & Finance FIN625 – Credit & Risk Management FIN630 – Investment Analysis & Portfolio Management FIN722 – Advanced Corporate Finance

Bioinformatics (7 Courses)

BIF101 – Basic Bioinformatics BIF401 – Introduction to Bioinformatics BIF402 – Computational Biology Methods BIF501 – Genomics & Proteomics BIF601 – Bioinformatics Algorithms BIF602 – Structural Bioinformatics BIF604 – Systems Biology

Biological Sciences (16 Courses)

BIO101 – Basic Biology BIO102 – Introductory Biology & Diversity BIO201 – Cell Biology BIO202 – Biochemistry BIO203 – General Genetics BIO204 – Biochemical Techniques BIO301 – Molecular Biology BIO302 – Animal Physiology BIO303 – Developmental Biology BIO401 – Ecology & Evolutionary Biology BIO502 – Immunology & Pathology BIO503 – Pharmacology & Toxicology BIO504 – Applied Microbiology BIO505 – Environmental Biotechnology BIO506 – Forensic Biology BIO731 – Advanced Molecular Genetics

Virtual University of Pakistan (43 Courses)

BNK611 – Economic Ideology in Islam BT613T – Agricultural Biotechnology CS306 – Introduction to Python CS441 – Big Data Concepts CS442 – Introduction to Data Science CS620 – Modeling & Simulation CS701 – Theory of Computation CS703 – Operating Systems CS704 – Advanced Computer Architecture ECO302 – Microeconomics EDU407 – EDU407 ENG401 – Introduction to Literature: Short Story and Poetry GSC201 – Teaching of General Science MCM516 – TV News Reporting and Production MGMT611 – Human Relations MGMT629 – Crisis Management MGT201 – Financial Management MGT401 – Financial Accounting II MGT404 – MGT404 MGT504 – Organization Theory & Design MGT520 – International Business MGT522 – MGT522 MGT601 – SME Management MGT603 – Strategic Management MGT613 – Production and Operations Management MGT703 – Strategic Management MGT705 – Advanced Cost and Management Accounting MGT713 – Production / Operations Management MTH102 – Basic Algebra and Trigonometry MTH201 – Multivariable Calculus MTH304 – Mechanics MTH403 – MTH403 MTH404 – MTH404 MTH405 – MTH405 MTH621 – Real Analysis I MTH633 – Group Theory MTH642 – Fluid Mechanics MTH643 – MTH643 PAK303 – PAK303 PSC401 – Public International Law PSY409 – Positive Psychology SE601 – Software Construction & Development SE602 – Software Re—engineering

Bio-Technology (34 Courses)

BT101 – Ecology, Biodiversity & Evolution BT102 – Microbiology BT201 – Biotechnology Fundamentals BT301 – Recombinant DNA Technology BT302 – Cell and Tissue Culture BT401 – Genetic Engineering BT402 – Fermentation Technology BT403 – Agricultural Biotechnology BT404 – Medical Biotechnology BT405 – Industrial Biotechnology BT406 – Nanobiotechnology BT501 – Biochemical Engineering BT502 – Biosafety & Bioethics BT503 – Molecular Diagnostics BT504 – Stem Cell Technology BT505 – Food Biotechnology BT511 – Vaccine Technology BT512 – Drug Design & Development BT513 – Genomics & Functional Proteomics BT514 – Enzyme Technology BT601 – Advanced Genetic Engineering BT602 – Bioinformatics in Biotechnology BT603 – Bioprocess Engineering BT604 – Aquatic Biotechnology BT605 – Environmental Bioremediation BT611 – Synthetic Biology BT612 – Metabolic Engineering BT613 – Biofuels and Bioenergy BT614 – Clinical Research in Biotechnology BT693 – Research Project in Biotechnology BT732 – Advanced Molecular Biology Seminar BT734 – Advanced Cellular Biotechnology BT735 – Current Topics in Biotechnology NTBT301 – Nanotechnology in Biotechnology

Chemistry (2 Courses)

CHE201 – General Chemistry CHE301 – Organic Chemistry

Computer Science (55 Courses)

CS000 – Introduction to Computer Fundamentals CS001 – Computer Proficiency License CS101 – Introduction to Computing CS201 – Introduction to Programming CS202 – Web Design & Development CS204 – Cyber Law & Intellectual Property CS205 – Information Security Management CS206 – Ethical Hacking & Defense CS301 – Data Structures CS302 – Digital Logic Design CS304 – Object Oriented Programming CS310 – Introduction to Programming (Python) CS311 – Introduction to Web Services Development CS312 – Mobile Application Development CS314 – Embedded Systems & IoT CS315 – Web Engineering CS401 – Computer Architecture & Assembly Language CS402 – Theory of Automata CS403 – Database Management Systems CS405 – Mobile Computing CS407 – Cloud Computing Fundamentals CS408 – Human Computer Interaction CS409 – Ethical & Legal Issues in Computing CS410 – Design & Analysis of Algorithms CS411 – Visual Programming CS420 – Game Design and Development CS432 – Network Security CS435 – Cloud Computing Infrastructure CS501 – Advance Computer Architecture CS502 – Fundamentals of Algorithms CS505 – Agile Software Development CS506 – Enterprise Application Development CS507 – Information Systems CS508 – Modern Programming Languages CS510 – Compiler Construction CS511 – Distributed Systems CS521 – Data Science Principles CS601 – Data Communication CS602 – Computer Graphics CS603 – Software Architecture CS604 – Operating Systems CS606 – Compiler Design & Construction CS607 – Artificial Intelligence CS608 – Digital Signal Processing CS609 – System Programming CS610 – Computer Networks CS614 – Data Warehousing CS619 – Final Year Project CS621 – Information Retrieval Techniques CS625 – Formal Methods in Software Engineering CS627 – Computer Vision & Pattern Recognition CS636 – Big Data Analytics CS708 – Advanced Computer Graphics CS713 – Advanced Software Architecture CS718 – Advanced Artificial Intelligence

Software Engineering (4 Courses)

CS504 – Software Engineering - I CS605 – Software Engineering - II CS611 – Software Quality Assurance CS615 – Software Project Management

Statistics (18 Courses)

DSTA630 – Data Science Research Methods STA000 – Basic Statistics Fundamentals STA100 – Foundations of Statistics STA301 – Statistics and Probability STA304 – Statistical Inference STA404 – Experimental Design STA406 – Sampling Techniques STA408 – Biostatistics and Epidemiology STA630 – Research Methods in Social Sciences STA631 – Advanced Statistical Methods STA632 – Multivariate Analysis STA641 – Non-Parametric Methods STA642 – Econometric Models STA730 – Advanced Research Methodology in Statistics STAT100 – Statistics Fundamentals STAT404 – Applied Statistical Modeling STAT408 – Statistical Computing STAT730 – Advanced Biostatistics

Education (44 Courses)

ECE101 – Introduction to Early Childhood Care & Education EDU101 – Foundations of Education EDU201 – Learning Theories & Applications EDU205 – Classroom Management EDU301 – General Methods of Teaching EDU302 – Human Development & Learning EDU303 – School, Community and Teacher EDU304 – Educational Assessment & Evaluation EDU305 – Curriculum Development & Instruction EDU306 – Contemporary Trends in Education EDU401 – Critical Thinking and Reflective Practices EDU402 – Educational Leadership & Management EDU403 – Art, Craft & Calligraphy in Education EDU404 – Teaching of English EDU405 – Teaching of Mathematics EDU406 – Teaching of General Science EDU410 – ICT in Education EDU411 – Teaching of Social Studies EDU430 – Information & Communication Technology in Teaching EDU431 – Test Development & Measurement EDU433 – Educational Statistics EDU501 – Educational Psychology EDU505 – Guidance and Counseling in Schools EDU510 – Qualitative Research in Education EDU512 – Comparative Education EDU514 – Special Education Principles EDU515 – Early Childhood Education Curriculum EDU516 – Educational Technology & Media EDU601 – Philosophy of Education EDU602 – Educational Planning and Policy EDU604 – Educational Administration & Supervision EDU630 – Research Methods in Education EDU654 – Teacher Education in Pakistan EDU702 – Advanced Seminar in Educational Leadership EDU705 – Advanced Educational Policy Analysis EDUA305 – Applied Curriculum Development EDUA403 – Elementary Arts Education EDUA405 – Pedagogy of Mathematics EDUA516 – Educational Media Design EDUA630 – Action Research in Educational Settings MEDU402 – Master Level Educational Leadership MEDU406 – Science Teaching Pedagogies MEDU430 – Advanced ICT in Education MEDU601 – Advanced Philosophy of Education

Economics (11 Courses)

ECO401 – Economics (Micro & Macro) ECO402 – Microeconomics Analysis ECO403 – Macroeconomics Analysis ECO404 – Managerial Economics ECO406 – Development Economics ECO501 – Monetary Economics ECO601 – International Economics ECO603 – Public Sector Economics ECO606 – Agricultural Economics ECO607 – Environmental & Resource Economics ECO610 – Econometrics Principles

Management Sciences (26 Courses)

EMG525 – Engineering Project Management MGMT614 – Leadership & Team Building MGMT615 – Project Management Practices MGMT617 – Project Management Methodologies MGMT622 – Operations Management MGMT623 – Supply Chain Management MGMT625 – Knowledge Management Systems MGMT627 – Global Business Strategy MGMT628 – Strategic Management MGMT630 – Business Strategy & Policy MGMT631 – Innovation Management MGT101 – Financial Accounting MGT111 – Introduction to Public Administration MGT211 – Introduction to Business MGT301 – Principles of Marketing MGT402 – Cost & Management Accounting MGT411 – Money & Banking MGT501 – Human Resource Management MGT502 – Organizational Behaviour MGT503 – Principles of Management MGT510 – Total Quality Management MGT602 – Entrepreneurship MGT604 – Management of Financial Institutions MGT610 – Business Ethics & Corporate Governance MGT611 – Business & Labor Law MGTE630 – Business Management Strategy

English (34 Courses)

ENG001 – Basic English Grammar & Composition ENG101 – English Comprehension ENG201 – Business and Technical English Writing ENG301 – Business Communication ENG501 – History of English Language ENG502 – Introduction to Linguistics ENG503 – English Morphology and Syntax ENG504 – Sociolinguistics ENG505 – Phonetics & Phonology ENG506 – World Englishes ENG507 – Psycholinguistics ENG508 – Semantics & Pragmatics ENG509 – English for Specific Purposes (ESP) ENG510 – Language Testing & Evaluation ENG511 – Syllabus Design & Materials Development ENG512 – Stylistics & Literary Analysis ENG513 – Second Language Acquisition (SLA) ENG514 – Classical Poetry ENG515 – Classical Drama ENG516 – Research Methodology in Linguistics ENG517 – Modern Poetry ENG518 – Modern Drama ENG519 – Classical Novel ENG520 – Modern Novel ENG521 – American Literature ENG522 – Postcolonial Literature ENG523 – Continental Literature & Criticism ENG524 – Literary Criticism & Theory ENG525 – Discourse Analysis ENG526 – Applied Linguistics in Education ENG527 – Creative Writing & Composition ENG528 – Corpus Linguistics ENG529 – Translation Studies & Theory FENG301 – Functional English for Professionals

Islamic Studies (4 Courses)

ETH100 – Ethics (For Non-Muslim Students) ETH201 – Ethics & Moral Philosophy (For Non-Muslims) ISL201 – Islamic Studies ISL202 – Islamic Studies / Ethics

General Guides (1 Courses)

GENERAL – General University Resources, Guides & Handbooks

General Sciences (1 Courses)

GSC101 – General Science

Human Resources (4 Courses)

HRM613 – Human Resource Development HRM617 – Compensation & Benefits Management HRM624 – Conflict & Negotiation Management HRM627 – Strategic Human Resource Management

Information Technology (4 Courses)

IT430 – E-Commerce & Digital Business IT601 – Network Administration IT602 – Database Administration ITU430 – E-Commerce Systems

Microbiology (4 Courses)

MB501 – General Microbiology & Microbial Diversity MB502 – Microbial Physiology & Metabolism MB504 – Medical Microbiology MIC501 – Applied Microbiology

Mass Communication (22 Courses)

MCD401 – Media Content Development MCD403 – Media Ethics & Professional Standards MCM000 – Introduction to Communication Fundamentals MCM101 – Introduction to Mass Communication MCM301 – Communication Skills MCM304 – Mass Media in Pakistan MCM310 – Radio Broadcasting & Audio Media MCM311 – Radio & Television Production MCM401 – Fundamentals of Public Relations MCM404 – Electronic Media Content Creation MCM411 – News Writing and Reporting MCM431 – Digital Media & Online Journalism MCM501 – Development Support Communication MCM511 – Media Ethics, Cyber Laws & Regulation MCM514 – Feature, Column & Editorial Writing MCM517 – Advertising Strategy & Campaigns MCM520 – Print Media Design & Layout MCM531 – International & Cross-Cultural Communication MCM601 – Theories of Mass Communication MCM604 – Communication Research Methodology MCM610 – Cyber Journalism & Web Publishing MCMP310 – Radio & Audio Production Practical

Marketing (5 Courses)

MKT501 – Marketing Management MKT530 – Consumer Behaviour MKT610 – Customer Relationship Management (CRM) MKT621 – Advertising & Brand Management MKT630 – International Marketing Strategy

Mathematics (20 Courses)

MTH001 – Elementary Mathematics MTH100 – General Mathematics MTH101 – Calculus & Analytical Geometry MTH104 – Sets & Logic MTH202 – Discrete Mathematics MTH301 – Calculus II (Multivariable Calculus) MTH302 – Business Mathematics & Statistics MTH401 – Differential Equations MTH501 – Linear Algebra MTH601 – Operations Research MTH603 – Numerical Analysis MTH622 – Vector & Tensor Analysis MTH631 – Real Analysis MTH632 – Complex Analysis MTH634 – Topology MTH641 – Functional Analysis MTH644 – Mathematical Methods MTH645 – Mechanics MTH646 – Differential Geometry MTH647 – Fluid Mechanics

Social Studies (3 Courses)

PAK301 – Pakistan Studies PAK302 – History of Pakistan PAK522 – Ideology & Constitution of Pakistan

Physics (3 Courses)

PHY000 – Foundational Physics PHY101 – Physics - Mechanics & Waves PHY301 – Circuit Theory

Psychology (23 Courses)

PSY101 – General Psychology PSY401 – Clinical Psychology Fundamentals PSY402 – Social Psychology PSY403 – Developmental Psychology PSY404 – Abnormal Psychology PSY405 – Personality Theories & Assessment PSY406 – Educational Psychology Applications PSY407 – Experimental Psychology & Lab Methods PSY408 – Health Psychology PSY502 – History and Systems of Psychology PSY504 – Cognitive Psychology PSY505 – Psychological Testing & Measurement PSY510 – Positive Psychology & Well-being PSY511 – Counseling Psychology Principles PSY512 – Organizational & Industrial Psychology PSY513 – Neuropsychology Fundamentals PSY515 – Forensic & Criminal Psychology PSY516 – Cross-Cultural Psychology PSY610 – Neurological Basis of Behavior PSY611 – Psychopathology & Diagnostics PSY631 – Psychological Assessment Practicum PSY632 – Research Methods in Psychology PSYP631 – Psychological Assessment Lab Practical

Sociology (14 Courses)

SOC101 – Introduction to Sociology SOC201 – Pakistani Society and Culture SOC301 – Social Psychology & Society SOC302 – Cultural Anthropology SOC401 – Social Research Methods SOC402 – Classical Sociological Theories SOC403 – Social Change & Modernization SOC404 – Urban Sociology SOC601 – Rural Sociology & Community Development SOC602 – Gender Studies & Society SOC605 – Criminology & Juvenile Delinquency SOC608 – Sociology of Development SOC609 – Sociology of Health & Medicine SOC610 – Demography & Population Dynamics

Urdu Literature (2 Courses)

URD101 – Functional Urdu (Urdu Zaban-o-Adab) URDU101 – Urdu Language & Literature

Zoology (35 Courses)

ZOO101 – Principles of Animal Life I ZOO102 – Principles of Animal Life II ZOO103 – Animal Diversity: Invertebrates ZOO111 – Fundamentals of Zoology ZOO201 – Animal Diversity: Chordates ZOO202 – Animal Form & Function I ZOO203 – Animal Form & Function II ZOO301 – Animal Physiology ZOO302 – Cell & Molecular Biology in Zoology ZOO307 – Principles of Ecology ZOO401 – Evolution & Principles of Systematics ZOO403 – Animal Behavior & Sociobiology ZOO404 – Biostatistics for Zoologists ZOO405 – General Developmental Biology ZOO501 – Developmental Biology ZOO502 – Environmental Biology ZOO503 – Biostatistics in Zoological Research ZOO504 – Zoogeography & Paleontology ZOO505 – Wildlife of Pakistan & Conservation ZOO506 – Endocrinology ZOO507 – Animal Diversity & Behavior ZOO509 – Fish Biology & Fisheries Science ZOO510 – General Microbiology & Immunology ZOO511 – Immunology & Serology ZOO512 – Parasitology & Vectors ZOO513 – Applied Entomology ZOO514 – Biochemistry of Animals ZOO515 – Genetics & Population Biology ZOO516 – Aquaculture & Fisheries Management ZOO517 – Toxicology & Environmental Health ZOO518 – Comparative Vertebrate Anatomy ZOO519 – Mammalogy ZOO520 – Ornithology (Bird Biology) ZOO603 – Applied Parasitology & Vector Biology ZOO630 – Research Methodology in Zoology

Core Student Calculators & Rules Handbooks

Frequently Asked Questions – MIHORA VU Study Library

Where can I download VU Assignment Solution 2026 for CS101, CS201, MTH101, and all subjects?

MIHORA VU (https://study.mihora.tech/vu-assignment-solution-2026) offers verified 2026 assignment solutions, GDB answers, quiz files, and Dev-C++ code templates for all 455 Virtual University courses with 100% free direct downloads.

What is the 24-hour assignment grace period in Virtual University?

Virtual University gives students an automatic 24-hour grace period after the official assignment deadline. Submissions during this grace window are awarded full credit with 0 marks deduction.

How to avoid zero marks in VU assignments due to Turnitin plagiarism?

Never copy-paste solutions directly from YouTube or public groups. Keep Turnitin similarity under 19% by renaming code variables, rearranging logical statements, and writing custom explanations.

Where can I get Moaaz and Waqar Siddhu solved midterm and final past papers?

MIHORA VU hosts over 28,328 verified documents including complete Moaaz and Waqar Siddhu past paper collections for all 455 VU subjects, available via direct download without registration.

What is the 20% Two-Half passing rule in Virtual University?

Students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterms) AND independently at least 20% in the Final Term exam paper to pass any course.