CS508 – Modern Programming Languages: Midterm Important Subjective (95 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 · CS508 Course Page · CS508 MCQ Pack (222 MCQs)

  1. Write a note on ALGOL 58 and ALGOL 60, including their salient features.
    Topic: Language History & Evolution

    ALGOL stands for Algorithmic Language. ALGOL 58 was designed in 1958 in the search for a "Universal Language". Salient features of the language are: • Concept of type was formalized • Names could have any length • Arrays could have any number of subscripts • Lower bound of an array could be defined • Parameters were separated by mode (in & out) • Subscripts were placed in brackets • Compound statements were introduced (begin ... end) • Semicolon as a statement separator was used • Assignment operator was := • if had an else-if clause ALGOL 60 (1960) was a modified version of ALGOL 58. It added new features to the language, including block structure (local scope), two parameter passing methods – value and name, subprogram recursion, and stack-dynamic arrays – run time size definition and space allocation. It did not have built-in I/O facility.

  2. Write a note on COBOL (1960): its design goals and the features it introduced.
    Topic: Language History & Evolution

    COBOL was designed in 1960 to support business-oriented computation which requires fixed point arithmetic. It was designed to look like simple English to broaden the base of computer users. It was thus required to be easy to use, even if that means it will be less powerful. Another design consideration was that it must not be biased by current compilers. It encountered problems because the design committee members were all from computer manufacturers and DoD branches and there were fights among manufacturers. It was the first language to add macro facility in a high-level language. It also introduced hierarchical data structures (records) and nested selection statements. The language supported long variable names (up to 30 characters) with hyphens, data division, and fixed-point arithmetic. It was the first language required by DoD and would probably have failed without support from DoD. It is still a very widely used business applications language and is very popular in business and government, much less at universities.

  3. What are the additional features added in COBOL that were not included in SNOBOL?
    Topic: Language History & Evolution • 2 marks marks

    1. COBOL has introduced hierarchical data structures (records) and nested selection statements. 2. The COBOL language supported long variable names (up to 30 characters) with hyphens, data division, and fixed-point arithmetic. 3. These are the features in COBOL that were added or enhanced and were not included in SNOBOL.

  4. Which language had a strong influence on high-level system programming languages like C?
    Topic: Language History & Evolution

    ALGOL 68 came from the continued development of ALGOL 60, but it is not a superset of that language. Its design is based on the concept of orthogonality. ALGOL 68 had even less usage than ALGOL 60 but had strong influence on subsequent languages, especially C, Ada and Pascal.

  5. Which of the languages first provided a structured exception handling mechanism among Ada and C++?
    Topic: Language History & Evolution

    PL/1 introduced the concept of exception handling, but Ada elaborated this concept. • Ada was the first language to provide a structured exception handling mechanism. • Ada includes an exception handling mechanism so that these problems can be dealt with at run time. • Errors can be signaled as exceptions and handled explicitly.

  6. Write three descendants of the C language.
    Topic: Language History & Evolution

    • C++: C++ is an extension of C, developed by Bjarne Stroustrup in 1983. C++ introduced the concept of classes and objects, which allows for the creation of user-defined data types and the use of object-oriented programming techniques. It also includes features such as function overloading, templates, and exception handling. • C#: C# is a modern, object-oriented programming language developed by Microsoft in 2000. It is designed for the Microsoft .NET framework and is commonly used for developing Windows desktop and web applications. C# is similar to C++ and Java in terms of syntax and features, but it also includes features such as garbage collection and built-in support for threading and parallel programming. • Objective-C: Objective-C is an object-oriented programming language that is a descendant of C. It was developed in the early 1980s by Brad Cox and Tom Love. Objective-C is widely used on Apple's macOS and iOS operating systems, as well as their respective APIs, Cocoa and Cocoa Touch. Objective-C is known for its dynamic binding, which allows for the creation of runtime-modifiable programs. These are just a few examples of the many descendants of the C language; there are many more in the market like Go, Rust, Swift, etc.

  7. Write a simple "Hello World" program in Pascal, with starting and ending statements.
    Topic: Language History & Evolution

    program HelloWorld; begin writeln('Hello World'); end.

  8. How can we increase readability? Write at least 5 points.
    Topic: Language Evaluation Criteria & Design Issues • 3 marks marks

    • Simplifying sentence structure: Using shorter, simpler sentences can improve readability for readers of all language backgrounds. • Using active voice: Writing in active voice (as opposed to passive voice) can make sentences clearer and more direct. • Using common words: Avoiding technical jargon or uncommon words can make text more accessible to a wider audience. • Using headings and subheadings: Breaking text up into smaller sections with headings and subheadings can make it easier to skim and understand. • Using images and other media: Adding images, videos, or other media can help to clarify or illustrate information, making it easier to understand.

  9. Explain simplicity and readability as characteristics of a programming language.
    Topic: Language Evaluation Criteria & Design Issues

    • Simplicity refers to how easy it is to understand and use a language. A simple language is one that has a small set of features, is easy to learn, and has a straightforward syntax. Simple languages are often preferred for small projects, learning to code, or for people who are not professional programmers. • Readability refers to how easy it is to understand the code written in a particular language. A readable language is one that follows a consistent style, uses meaningful variable and function names, and has clear and concise code. Readable code is often preferred by professional programmers as it makes it easier to maintain and debug the code.

  10. Considering 'Generality' as an important factor that helps to manage complexity of any programming language, briefly mention how generality can be considered an important language evaluation criterion.
    Topic: Language Evaluation Criteria & Design Issues

    Generality is an important factor that helps to manage complexity of any programming language and deals with the applicability of the language to a range of different domains. For example: C is more general purpose than FORTRAN or LISP, so it can be used in more domains than these two languages.

  11. Explain the concept of dangling else with an example, and also explain the solution to this problem.
    Topic: Language Evaluation Criteria & Design Issues

    "Dangling else" in C explains the association of a single else statement in a nested if statement. In nested if statements, when a single "else clause" occurs, the situation that happens is called dangling else. For example: if (condition) if (condition) if (condition) else printf("dangling else!\n"); /* dangling else, as to which if statement does the else clause associate? */ Solution to the problem: In such situations, the else clause belongs to the closest if-statement which is incomplete, that is the innermost if-statement. We can make the else clause belong to the wanted if statement by enclosing the if statements in a block { } to which the else clause should associate. For example: if (condition) { if (condition) if (condition) } else printf("else associates with the outermost if statement!\n");

  12. What does LISP stand for? Who designed it, and when?
    Topic: LISP

    LISP, an acronym for LIST Processing, is a programming language that was designed for easy manipulation of data strings. Developed in 1959 by John McCarthy as part of AI research at MIT, it is a commonly used language for artificial intelligence (AI) programming. It is one of the oldest programming languages still in relatively wide use. In LISP, all computation is expressed as a function of at least one object. Objects can be other functions, data items (such as constants or variables), or data structures. LISP's ability to compute with symbolic expressions rather than numbers makes it convenient for AI applications.

  13. Write two points that differentiate the LISP language from other languages.
    Topic: LISP • 2 marks marks

    1. A LISP program has two types of elements: • Atoms • Lists 2. The first symbol is the name of the function. The rest are its arguments. For example: > (+ 1 3 5) 9

  14. Which data structure is more widely used in LISP programming?
    Topic: LISP

    Atoms and Lists.

  15. Set the value of variable a: HEIGHT = 12 and Weight = 5 (using property lists in LISP).
    Topic: LISP • 3 marks marks

    > (setf (get 'a 'height) 12) > (setf (get 'a 'weight) 5)

  16. What is the difference between the statements > (set-intersection L1 L2) and > (set-difference L1 L2)? Also describe the related set operations.
    Topic: LISP • 5 marks marks

    These are set operations in LISP: > (union L1 L2) ; returns the union of the two lists > (intersection L1 L2) ; returns the intersection of the two lists > (set-difference L1 L2) ; returns the difference of the two lists (elements of L1 that are not in L2)

  17. Write a function in LISP that returns the difference of the two lists L3 and L4.
    Topic: LISP

    These are set operations in LISP: > (union L1 L2) ; returns the union of the two lists > (intersection L1 L2) ; returns the intersection of the two lists > (set-difference L1 L2) ; returns the difference of the two lists So the difference of L3 and L4 is obtained by (set-difference L3 L4).

  18. Which predicate function will help for testing atoms in LISP?
    Topic: LISP

    The predicate for testing whether an object is an atom is atom. (atom x) returns T if x is an atom and NIL if x is a list. Note: the source file's given answer, (member 'b L), tests whether an element is a member of a list — it does not test for atoms.

  19. What is the error in > (sqrt x) in LISP?
    Topic: LISP • 3 marks marks

    x is unbound, because this symbol doesn't have any value. We will have to assign a value using setq, setf and set. > (setq x 3) 3

  20. How many elements are there in (a (d e)) in LISP?
    Topic: LISP • 2 marks marks

    There are two elements: 1. Atom = a 2. List = (d e)

  21. Enlist any three major concepts that were introduced for the first time in the LISP programming language.
    Topic: LISP • 3 marks marks

    From a programming language design point of view, LISP was the first to introduce the following concepts: • Conditionals: such as the if-then-else construct. • Function types: where functions are just like integers and strings. • Recursion: first language to support it. • Dynamic typing: all variables are pointers. • Garbage Collection. • Programs composed of expressions. • A symbol type. • The whole program is a mathematical function.

  22. Which programming language is considered to be the de facto standard for the Artificial Intelligence community?
    Topic: LISP • 2 marks marks

    LISP — it was one of the earliest programming languages and is the standard language of the AI community.

  23. Name the two famous versions (dialects) of LISP programming.
    Topic: LISP

    1) Scheme 2) Common Lisp

  24. Differentiate the car, cdr, first and rest LISP functions.
    Topic: LISP

    first (or car) takes a list as an argument and returns the first element of that list. For example: > (first '(a s d f)) a rest (or cdr) takes a list as its argument and returns a new list after removing the first element from the list. For example: > (rest '(a s d f)) (s d f)

  25. Identify the list selector functions used in LISP.
    Topic: LISP

    List Selectors: In order to select elements from a list, selector functions are used. There are two basic selector functions known as first (or car) and rest (or cdr). 1. First (or car) is a list selector. It takes a list as argument and returns the first element of the list. 2. Rest (or cdr) is a list selector. It takes a list as argument and returns the whole list after excluding the first element.

  26. Write three built-in functions used in LISP.
    Topic: LISP

    • car: The car function returns the first element of a list. For example, (car '(1 2 3)) would return 1. • cdr: The cdr function returns the rest of the elements in a list after the first element. For example, (cdr '(1 2 3)) would return the list (2 3). • cons: The cons function is used to construct a new list by adding an element to the front of an existing list. For example, (cons 1 '(2 3)) would return the list (1 2 3). These are just a few examples of the many built-in functions in Lisp; there are many more like eq, equal, atom, list, +, -, *, /, etc.

  27. Enlist any three mathematical functions used in LISP.
    Topic: LISP • 3 marks marks

    There are many built-in functions in LISP. These include math functions as well as functions for manipulating lists. The math functions include: +, -, *, /, exp, expt, log, sqrt, sin, cos, tan, max, min

  28. Why is a predicate called a special function in LISP?
    Topic: LISP

    A predicate is a special function which returns NIL if the predicate is false, and T or anything other than NIL otherwise. Predicates are used to build Boolean expressions in the logical statements. Comparative operators in LISP are used as functions for numerical values and return a T or NIL: =, >, <, >=, <=. For example 1: (= (+ 2 4) (* 2 3)) T Example 2: (> (- 5 2) (+ 3 1)) NIL

  29. Write a procedure in LISP that takes two linked lists as arguments and returns the concatenation of these two lists by adding one list in front of another. List a = (3 4 5), List b = (C d 6).
    Topic: LISP • 5 marks marks

    append takes two lists as arguments and appends one list in front of the other, as shown below: > (append '(a b) '(c d)) (A B C D) ; appends one list in front of another

  30. Suppose you want to remove a certain property attribute named 'WEIGHT' from the following list of symbols in LISP: > (symbol-plist 'a) -> (WEIGHT 20 HEIGHT 8). How will you do it?
    Topic: LISP

    We can remove a property by using the remprop function as shown below: > (remprop 'a 'WEIGHT) T > (symbol-plist 'a) (HEIGHT 8) > (remprop 'a 'HEIGHT) T > (symbol-plist 'a) NIL

  31. Explain the dotimes and dolist looping statements in LISP.
    Topic: LISP • 3 marks marks

    In LISP there are two basic statements for looping: dotimes and dolist. dotimes is like a counter-controlled for loop. Its syntax is given below: (dotimes (count n result) body) It executes the body of the loop n times, where count starts with 0 and ends with n-1. dolist: The second looping structure is dolist. It is used to iterate over the list elements, one at a time. Its syntax is given below: (dolist (x L result) body)

  32. Explain the conditional control statements of LISP (if, when, cond).
    Topic: LISP • 5 marks marks

    LISP has multiple conditional control statements. The set includes if, when, and cond. If statement: The if statement has the following syntax: (if <test> <then> <else>) That is, the if statement has three parts: the test, the then part, and the else part. It works almost exactly like the if statement in C++. If the test is TRUE then the then part will be executed, otherwise the else part will be executed. If there is no else part, then if the test is not true the if statement will simply return NIL. Here is an example that shows the if statement: > (setq SCORE 78) 78 > (if (> score 85) 'HIGH (if (and (< score 84) (> score 65)) 'MEDIUM 'LOW)) MEDIUM In the above if statement, the then part contains 'HIGH and the else part is another if statement. So, with the help of nested if statements we can develop code with multiple branches.

  33. Lists are used in LISP. Write the top elements of the lists given as (add 3 (mult 3 4)) and (job car school).
    Topic: LISP • 3 marks marks

    The first-level elements in LISP are called top-level elements. For example, the top elements of list (a b c) are a, b, and c. Similarly, the top elements of list (a (b c)) are a and (b c). An empty list is represented by NIL. It is the same as ( ).

  34. Tell the output of the following LISP code: (defun y-min (x) (- x y)); set y to 2; then call (y-min 20).
    Topic: LISP

    -18

  35. Explain briefly the expression of the LISP language (S-expression).
    Topic: LISP

    S-expression: An S-expression (S stands for symbolic) is a convention for representing data or an expression in a LISP program in text form. It is characterized by the extensive use of prefix notation with explicit use of brackets (affectionately known as Cambridge Polish notation). S-expressions are used for both code and data in Lisp. S-expressions were originally intended only as machine representations of human-readable representations of symbols, but Lisp programmers soon started using S-expressions as the default notation. S-expressions can either be single objects or atoms such as numbers, or lists.

  36. What is the role of an atom in LISP?
    Topic: LISP

    Atoms: Atoms include numbers, symbols, and strings. LISP supports both real numbers and integers.

  37. Identify the local and global variables in: > (defun y-plus (x) (+ x y))
    Topic: LISP

    This function adds x to y, where x is the parameter passed to the function and y is a global variable since it is not defined inside the function. It works in the following manner: > (setq y 2) > (y-plus 23) 25 With this we introduce the concept of local and global variables. Local variables are defined in the function body. Everything else is global.

  38. Describe the following SNOBOL statement fields: (label), :S(label), :F(label), and :S(label2) F(label3).
    Topic: SNOBOL • 2 marks marks

    (label) This is a command for unconditional jump to the label specified inside parentheses. :S(label) This is a command for jump. It is used to jump to the specified label if the statement in the body was executed successfully or resulted in a true Boolean value. :F(label) It is opposite to :S(label). The control jumps to the label if the statement is not executed successfully or resulted in false. :S(label1) F(label2) It is a combination of :S(label) and :F(label). It states that go to label1 in case of success and label2 in case of failure.

  39. What is the functionality of KEYWORD = 'INT' | 'CHAR' in SNOBOL4?
    Topic: SNOBOL • 2 marks marks

    KEYWORD = 'INT' 'CHAR' This statement assigns the pattern 'INT' 'CHAR' to the variable KEYWORD.

  40. Pattern matching is a powerful tool for syntax analysis in SNOBOL. Consider the following piece of code and identify if the pattern matching comes out to be success or failure. Justify your answer in either case. FIRST = 'SUMMER'; SECOND = 'SUM'; FIRST SECOND
    Topic: SNOBOL

    If 'SUM' will be searched in 'SUMMER'. Since it is present in it — SUM ('MER') — it will result in success.

  41. Explain pattern matching and string concatenation (the space operator) in SNOBOL.
    Topic: SNOBOL

    In SNOBOL, space is used as the pattern matching operator and the statement has the following form: subject pattern There is no assignment operator in this case. Both the subject and the pattern are strings, and this statement tries to match the pattern in the subject. It will be successful if the match is found and will result in failure otherwise. Pattern matching and manipulation is a very important feature of SNOBOL. Example: TRADE = 'PROGRAMMER' PART = 'GRAM' TRADE PART

  42. Write down the working and output of the string replacement function in SNOBOL with respect to the following code: TEXT = "A {I,J} = A{A,B}+5"; OUTPUT = REPLACEMENT(TEXT, '{}', '[]')
    Topic: SNOBOL • 5 marks marks

    The replacement statement is used in conjunction with the pattern matching statement in the following manner: subject pattern = object In this case the pattern is searched in the subject and if found it is replaced by the object, as demonstrated by the following example: SENTENCE = 'THIS IS YOUR PEN' SENTENCE 'YOUR' = 'MY' Since 'YOUR' is present in the subject, it will be replaced by 'MY', resulting in changing the value of SENTENCE to 'THIS IS MY PEN'. If we now have the following statement: SENTENCE 'MY' = then SENTENCE will be further modified to 'THIS IS PEN', as we are now replacing 'MY' with a NULL string, effectively deleting 'MY' from the subject.

  43. While programming in SNOBOL4, which of the following operators must not have space between operator and operand: (a) Unary operators (b) Binary operators?
    Topic: SNOBOL • 2 marks marks

    Unary operators.

  44. How many types of functions are supported in SNOBOL4?
    Topic: SNOBOL

    SNOBOL4 supports two types of functions: 1. Built-in functions, which are known as primitive functions. 2. User defined functions.

  45. How many types of statements are used for pattern building in SNOBOL?
    Topic: SNOBOL • 2 marks marks

    There are two types of statements for pattern building. These are Alternation and Concatenation.

  46. Describe arrays in SNOBOL.
    Topic: SNOBOL

    In SNOBOL, arrays are created with the built-in ARRAY function. The prototype string given to ARRAY specifies the dimensions and the bounds of the subscripts, e.g. A = ARRAY('10') creates a one-dimensional array of 10 elements with subscripts 1 to 10, and ARRAY('2,8') creates a two-dimensional array. Array elements are accessed with angle-bracket notation, e.g. A<3> or N<I,J>. All elements are initially set to the null (empty) string unless an initial value is supplied as the second argument of ARRAY. Arrays in SNOBOL can hold values of mixed types, and subscripts can also be given as lower:upper bound pairs, e.g. ARRAY('-5:5'). (The source file gives no answer for this question — it only refers to a handout page.)

  47. Write a two-dimensional array of size (2x8) in SNOBOL and initialize it to zero.
    Topic: SNOBOL • 3 marks marks

    The following statement creates a two-dimensional array of 2 x 8 and each cell is initialized to the NULL string: N = ARRAY('2,8')

  48. Following is the snippet from SNOBOL4. Calculate the value of x, y, z where ** sign is used for exponentiation: 1) x = 2*3*2 2) y = 3*2*3 3) z = x + y**2
    Topic: SNOBOL

    In SNOBOL4, the ** operator is used for exponentiation. So, with that in mind: • x = 2*3*2 = 12 • y = 3*2*3 = 18 • z = x + y**2 = 12 + 18**2 = 12 + 324 = 336 So, the final values of x, y, and z are 12, 18 and 336 respectively.

  49. Why did we need a single language, Ada?
    Topic: Ada • 2 marks marks

    The necessity for a single standard language was felt in 1975. The draft requirements were given the code name Strawman. Strawman was refined to Woodenman and then Tinman in 1976. Initial designs were submitted in 1978 and Red and Green were short listed on the basis of these designs. Standard requirements were then refined to Steelman. The designs were refined additionally and finally in 1979 Green was selected. DoD announced that the language will be called Ada. In 1995 a revision of Ada (Ada 95) was developed by a small team managed by Tucker Taft. In both cases, the design needed a public comment period where the designers answer back to public comments.

  50. Which language is the result of history's largest design effort, in which most of the programming is done today?
    Topic: Ada

    Ada – 1983 – History's largest design effort. It involved a huge design effort, involving hundreds of people, much money, and about eight years. It introduced Packages – support for data abstraction, elaborate exception handling, generic program units, and concurrency through the tasking model.

  51. What was the main emphasis of the Ada language?
    Topic: Ada • 2 marks marks

    Ada is a computer programming language originally designed to support the construction of long-lived, highly reliable software systems. Its design emphasizes readability, avoids error-prone notation, encourages reuse and team coordination, and it is designed to be efficiently implementable.

  52. State which of the following statements are valid or invalid in the Ada language: a = (1..5) integer; b = (1..5) integer; c, d = (1...5) float; and the conditions a = b, a = c, b = a.
    Topic: Ada • 5 marks marks

    In Ada, a constrained (range) subtype is declared as: a : Integer range 1 .. 5; — the source's shorthand a : integer (1..5); is valid in intent: it declares an integer variable whose values are restricted to the range 1 to 5. Conditions: a = b is valid, because a and b have the same type and range. a = c is invalid, because a is an integer type while c is a float type, and Ada's strong typing does not allow comparison/assignment between different numeric types without conversion. b = a is valid for the same reason as a = b. (The source file's answer to this question is garbled/incomplete, so this answer follows standard Ada rules.)

  53. Why does Ada not use += and -= type of operators?
    Topic: Ada

    Such operators reduce readability. So Ada has not included operators like +=, -=, *=, /=, |=.

  54. Write the names of the operators which are avoidable in Ada but not in C/C++.
    Topic: Ada

    PlusEquals += SubtractEquals -= MultiplyEquals *= DivisionEquals /= OrEquals |= AndEquals &=

  55. Write a small program in Ada to print "BS-computer-sciences".
    Topic: Ada

    with Ada.Text_IO; use Ada.Text_IO; procedure Name is begin New_Line; Put("BS-computer-sciences"); end Name;

  56. Write a "Hello World" program in Ada.
    Topic: Ada

    with Ada.Text_IO; use Ada.Text_IO; procedure Hello_World is begin Put_Line("Hello World!"); end Hello_World;

  57. Write a simple Ada program to check whether a number is even or not.
    Topic: Ada

    declare N : Integer := 5; begin if N rem 2 = 0 then Put_Line ("Even number"); elsif N rem 2 /= 0 then Put_Line ("Odd number"); else Put_Line ("Something went really wrong!"); end if; end;

  58. Write an Ada program for the given pattern using a for loop, using the Put() method instead of Put_Line() and New_Line for a new line: * / ** / *** / **** / *****
    Topic: Ada

    procedure Loopprint is Number_Of_Time : Integer := 5; begin for I in 1 .. Number_Of_Time loop for J in 1 .. I loop Put ('*'); end loop; New_Line; end loop; end Loopprint;

  59. Briefly explain the data structures that are used in Ada for: (a) Encapsulation (b) Defining extensible types.
    Topic: Ada • 5 marks marks

    Encapsulation: The primary structure used for encapsulation in Ada is called a package. Packages are used to group data and subprograms. Packages can be hierarchical, allowing a structured and extensible relationship for data and code. All the standard Ada libraries are defined within packages. Extensible Types: Tagged types are used to define extensible types. Tagged Type: A tagged type is like a record which can be used to declare objects. Following is an example of a tagged type: type Person is tagged record Name : String(1..20); Age : Natural; end record;

  60. What is a tagged type in Ada?
    Topic: Ada

    Tagged Type: A tagged type is like a record which can be used to declare objects. Following is an example of a tagged type: type Person is tagged record Name : String(1..20); Age : Natural; end record;

  61. Type a record named School using the Ada language.
    Topic: Ada

    type School is record Name : String; Address : String; Phone_Number : String; Principal_Name : String; Number_of_Students : Integer; end record;

  62. Write code in Ada where the parent class is Employee and the child class is Teacher, and explain it.
    Topic: Ada

    with Ada.Text_IO; use Ada.Text_IO; type Employee is tagged null record; procedure Print_Name (Self : in out Employee); type Teacher is new Employee with null record; procedure Print_Subject (Self : in out Teacher); procedure Employee.Print_Name (Self : in out Employee) is begin Put_Line("Name: John Doe"); end Print_Name; procedure Teacher.Print_Subject (Self : in out Teacher) is begin Put_Line("Subject: Math"); end Print_Subject; Here Employee is a tagged (parent) type and Teacher is derived from it (child type), which is how inheritance is expressed in Ada. (Note: the paper also recalled a second, GUI-tasks question; its answer was not given in the source.)

  63. What is the difference between functions and procedures in Ada?
    Topic: Ada

    In Ada, a function is a subprogram that returns a value, while a procedure is a subprogram that does not return a value. Functions are used to perform calculations or transformations on input data and return the result, while procedures are used to perform actions, such as printing output or modifying the state of a program. Functions have return types while procedures do not. Functions can be used in expressions and can be passed as arguments to other subprograms, while procedures cannot; procedures can only be called. For example, you might use a function to calculate the square of a number, and a procedure to print the result to the screen: function Square (X : Integer) return Integer is begin return X * X; end Square;

  64. Does Ada facilitate programmers to do programming as a human activity? If yes, give a reason.
    Topic: Ada • 3 marks marks

    Yes, Ada believes in programming as a human activity. Programming as a human activity is the main goal of Ada. In Ada the whole philosophy is that a programmer is a human and all humans make mistakes. So to make it safer, Ada uses discriminants in a record that tell what type of data is currently stored there.

  65. Why is Ada considered to be a strongly typed language? Briefly explain.
    Topic: Ada

    Ada is strongly typed. A programming language is strongly typed if type errors are always detected, and in Ada errors can be signaled as exceptions and handled explicitly. Many serious errors such as computational overflow and invalid array indexes are automatically caught and handled through this exception mechanism, improving program reliability.

  66. Do small alphabets and capital alphabets are considered the same in Ada? Justify your answer.
    Topic: Ada • 2 marks marks

    Yes — Ada is not case sensitive: identifiers written in small or capital letters are considered the same.

  67. When the Put_Line method is called in Ada, does it need to call the New_Line method or not?
    Topic: Ada

    No need, because Put_Line already adds a new line. When we use only Put(), then we use New_Line.

  68. What do you know about increment/decrement, or predecessors and successors, in enum types in Ada? Explain with a suitable example.
    Topic: Ada • 3 marks marks

    An enumeration type in Ada is a sequence of ordered enumeration literals, just like C: type Colors is (Red, Indigo, Orange, Green, Yellow, Blue, Violet); type State is (Off, Powering_Up, On); It is however different from C in many respects: there is no arithmetic defined for these types. For example: S1, S2 : State; S1 := S1 + S2; -- Illegal One can however add/subtract one (sort of increment and decrement) using the Pred and Succ attributes, as shown below: State'Pred (S1) State'Succ (S2)

  69. Explain operator overloading in Ada and C++.
    Topic: Ada

    Operator Overloading in Ada: Ada allows a limited overloading of operators. The exception in Ada is that the assignment operator (:=) cannot be overridden. It can be overridden in case of inheritance from a special kind of "abstract class". When you override the equality operator (=) you also implicitly override the inequality operator (/=).

  70. Whether polymorphism is allowed in Ada or not? Briefly state.
    Topic: Ada • 2 marks marks

    Ada 83 supported a form of polymorphism through the use of overloading that allowed the developer to reuse a procedural name or operator by redefining the context and semantics. For example, when using integer numbers, the + sign adds one integer to another. The + operator could be redefined to work with an abstract data type consisting of a set of colors and provide the proper color mix (i.e., red + yellow = orange). This polymorphic behavior had to be resolved at compile time. Ada 95 supports true polymorphic operations through the use of class-wide types and type extensions, which can contextually recognize the appropriate operation to perform.

  71. Is there anything like templates as in C++ (in Ada)?
    Topic: Ada

    Generics are like templates in C++ and allow parameterization of subprograms and packages with parameters which can be types and subprograms as well as values and objects.

  72. Write an array in Ada using the days of a week as indexes.
    Topic: Ada

    For example, if we define Days as below: type Days is (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday); Then we can create an array which uses Days (or any sub-range of Days) as the array indexes, as shown below: type Daily_Sales is array (Days) of Float; Now the type Daily_Sales is an array type of size 7 and indexes Monday through Sunday. Also note that these literals will be used as indexes in the statements that reference array elements.

  73. How are Bitwise Exclusive OR and NOT represented in Ada?
    Topic: Ada

    Bitwise Exclusive Or = xor Bitwise Not = not Logical Not = not

  74. Suppose you have to write a program in the Ada language for calculating marks of a student for 3 subjects. The total marks for each subject are: Subject1 = 100, Subject2 = 200, Subject3 = 400. How will you restrict users to not enter values less than 0 and greater than the total marks? Also write a code snippet for this. Note: The use of loops and conditions is not allowed.
    Topic: Ada

    The restriction is imposed through range-constrained subtypes, so no loops or conditions are needed — any out-of-range value raises Constraint_Error automatically: subtype Marks1 is Integer range 0 .. 100; subtype Marks2 is Integer range 0 .. 200; subtype Marks3 is Integer range 0 .. 400; S1 : Marks1; S2 : Marks2; S3 : Marks3; When a value is read into S1, S2 or S3, Ada checks it against the declared range; a value less than 0 or greater than the subject's total marks is rejected at run time by the language itself.

  75. Write two distinct features of ALGOL which were not present in FORTRAN.
    Topic: Language History & Evolution

    1. Block structure: ALGOL introduced block structure with local scope (begin ... end compound statements), which was not present in FORTRAN. 2. Recursion: ALGOL supported subprogram recursion, along with stack-dynamic arrays whose size is defined at run time. It also provided two parameter passing methods – pass by value and pass by name.

  76. Why was COBOL encountered with problems at the start?
    Topic: Language History & Evolution • 2 marks marks

    COBOL encountered problems at the start because the design committee members were all from computer manufacturers and DoD branches, and there were fights among the manufacturers.

  77. What will be the choice of language in the functional programming paradigm?
    Topic: LISP

    Functional programming is a style of programming that emphasizes the evaluation of expressions, rather than execution of commands. The expressions in these languages are formed by using functions to combine basic values. A functional language is a language that supports and encourages programming in a functional style. LISP is a representative language of this style of programming.

  78. Name two special symbols used for logical true and false in LISP.
    Topic: LISP

    There are two special symbols in LISP: T for logical true and NIL for logical false.

  79. Which language firstly used recursion?
    Topic: LISP • 2 marks marks

    LISP was the first language to use recursion.

  80. Which symbol is used for alternation in SNOBOL?
    Topic: SNOBOL

    The vertical bar is used to specify pattern alternation, as shown in the example below: P1 P2 This is an example of a pattern that will match either P1 or P2.

  81. In SNOBOL, what is used in place of a pointer?
    Topic: SNOBOL

    The unary operator '$' is used for indirect reference in SNOBOL. Indirect reference is an interesting feature of SNOBOL and is similar to a pointer in concept.

  82. Explain immediate assignment and conditional assignment in SNOBOL4.
    Topic: SNOBOL

    The '.' (dot) operator is used for conditional assignment, only when the entire pattern is matched. The '$' operator is used for immediate value assignment, even if the entire pattern does not match. It is used as follows: Pattern $ Variable

  83. Write the resultant output after evaluating the following arithmetic expressions using SNOBOL: a) 5**2**2 b) -56+7 c) 5**7+2 d) 7/2
    Topic: SNOBOL

    In SNOBOL, exponentiation (**) is right-associative and arithmetic on integers produces integer results. a) 5**2**2 = 5**(2**2) = 5**4 = 625 b) -56+7 = -49 c) 5**7+2 = 78125+2 = 78127 d) 7/2 = 3 (integer division)

  84. Consider the following code segment in SNOBOL language: N = '5'; S = 'N'; 'SEAT5N' N S. How will the concatenation and pattern matching operations take place in the above code segment?
    Topic: SNOBOL

    In the statement 'SEAT5N' N S, the subject is the string 'SEAT5N'. The pattern is formed by concatenating the values of N and S, i.e. '5' and 'N', which gives the pattern '5N'. This pattern is then searched in the subject 'SEAT5N'. Since '5N' is present at the end of the subject, the pattern matching will be successful.

  85. Write two data types used in SNOBOL.
    Topic: SNOBOL

    Two data types used in SNOBOL are Integer and String. SNOBOL also supports other data types such as Real, Pattern, Array and Table.

  86. In SNOBOL4, create a table of unspecified length.
    Topic: SNOBOL • 3 marks marks

    A table of unspecified length is created by calling the TABLE function without giving a size: T = TABLE() Such a table starts with a default size and grows automatically as more entries are added to it.

  87. Tell the names of operators that are present in Ada but not in C++.
    Topic: Ada

    Remainder: rem Absolute Value: abs Exponentiation: ** Range: .. Membership: in String Concatenation: &

  88. Differentiate between Ada access types and C/C++ pointer type.
    Topic: Ada • 5 marks marks

    An access type roughly corresponds to a C++ pointer. type Address_Ref is access Address; A_Ref := new Address; A_Ref.Postal_Code := "94960-1234"; Note that, unlike C, there is no notational difference for accessing a record field directly or through an access value. To refer to the entire record accessed by an access value, the following notation is used: Print(A_Ref.all);

  89. Differentiate between C/C++ unions and Ada discriminated type.
    Topic: Ada • 3 marks marks

    Discriminated records are like union types in C. There are, however, major differences between C union types and Ada discriminated records. The union type in C is fundamentally unsafe and therefore unacceptable. For example, in a union of int and float, at runtime the compiler and the environment cannot tell which particular value has been stored currently, so we have to trust the programmer. In Ada we are short on trust: the whole philosophy is that a programmer is a human and all humans make mistakes. So, to make it safer, Ada uses discriminants in a record that tell what type of data is currently stored there.

  90. Why does Ada not use '=' operator for assignment like other languages?
    Topic: Ada • 3 marks marks

    Like all imperative languages, Ada also supports the assignment statement. However, in Ada the assignment is not an expression like C. In Ada, ':=' is used as the assignment operator, whereas '=' is used for the equality test. The syntax of the assignment statement is: Variable := expression;

  91. What will be the result of the following Ada code? A := 8; B := 6; if A > B then A := 5 else A := A - 3 end if;
    Topic: Ada • 2 marks marks

    Output = 5. Since A (8) is greater than B (6), the condition A > B is true, so the then part is executed and A is assigned the value 5.

  92. Write an Ada case statement for a variable TODAY of an enumeration type (MON, TUE, WED, THU, FRI, SAT, SUN) that performs WORK on MON to THU, WORK and PARTY on FRI, and REST on SAT and SUN.
    Topic: Ada

    case TODAY is when MON .. THU => WORK; when FRI => WORK; PARTY; when SAT SUN => REST; end case;

  93. Suppose you have defined your own integer data type ranging from 0 to 1000 in Ada. If anyone else declares a variable using your data type and gives a value more than 1000 to the variable, will the compiler generate an error? If yes, then explain why.
    Topic: Ada

    Yes. Ada is a strongly typed language and performs range constraint checking. A variable of a type defined with the range 0 .. 1000 can only hold values within this range. Assigning a value greater than 1000 violates the range constraint, so the error is detected and a Constraint_Error exception is raised.

  94. Type BIG is mod 8; big1 : BIG := 3; Is there any error in this Ada code?
    Topic: Ada

    No, there is no error. 'mod 8' defines a modular integer type whose values range from 0 to 7. The value 3 lies within this range, so the declaration and initialization of big1 are valid.

  95. From the following code snippet in Ada, which statement will execute if A contains 12? (2 marks) case A is when 1 => fly; when 11 | 14 => null; when 22 | 20..30 => ...; when others => complain; end case;
    Topic: Ada

    The value 12 does not match the choice 1, the choices 11 14, or the range 20..30. Therefore the 'others' choice is selected and the statement 'complain' will be executed.

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.