1. 1. check_box_outline_blank
  2. 2. check_box_outline_blank
  3. 3. check_box_outline_blank
  4. 4. check_box_outline_blank
  5. 5. check_box_outline_blank
  6. 6. check_box_outline_blank
  7. 7. check_box_outline_blank
  8. 8. check_box_outline_blank
  9. 9. check_box_outline_blank
  10. 10. check_box_outline_blank
  11. 11. check_box_outline_blank
  12. 12. check_box_outline_blank
  13. 13. check_box_outline_blank
  14. 14. check_box_outline_blank
  15. 15. check_box_outline_blank
  16. 16. check_box_outline_blank
  17. 17. check_box_outline_blank
  18. 18. check_box_outline_blank
  19. 19. check_box_outline_blank
  20. 20. check_box_outline_blank
Q1. The address of a page table in memory is pointed by ____________
Q2. The time taken for the desired sector to rotate to the disk head is called?
Q3. FAT stands for?
Q4. The undo and redo operations must be _________ to guarantee correct behaviour, even if a failure occurs during recovery process?
Q5. Which of the following statements are correct? i) logical separation – in which process use different physical objects like separate printers ii) cryptographic separation – in which process having different security requirement at different times iii) Logical separation – In which users operate under illusion that no other processes exist iv) cryptographic separation – In which processes conceal their data and computations
Q6. For swap space created in a separate disk partition where no file system or directory structure is placed, _____________ used to allocate and deallocate the blocks.
Q7. Which of the following two operations are provided by the IPC facility?
Q8. The _________ becomes the name of the root of the newly mounted directory.
Q9. What are the characteristics of computation migration?
Q10. In UNIX, the set of masked signals can be set or cleared using the ________ function.
Q11. Translate ∀x∃y(x < y) in English, considering domain as a real number for both the variable.
Q12. The series a,(a+b)/2, b is in
Q13. A relation R is defined on the set of integers as aRb if and only if a+b is even and R is termed as ______
Q14. Let us say that X is a normally distributed variable with mean(μ) of 43 and standard deviation (σ) of 6.4. Determine the probability of X<32 .
Q15. What is range of function f(x) = x-1 which is defined everywhere on its domain?
Q16. The function f(x) = x3 is bijection from R to R. Is it True or False?
Q17. For a, b ∈ Z define a | b to mean that a divides b is a relation which does not satisfy ___________
Q18. {x: x is a real number between 1 and 2} is an
Q19. What is the base case for the inequality 7n > n3, where n = 3?
Q20. If C = {1} then C X (C X C) = (C X C) X C the given statement is
  1. 21. check_box_outline_blank
  2. 22. check_box_outline_blank
  3. 23. check_box_outline_blank
  4. 24. check_box_outline_blank
  5. 25. check_box_outline_blank
  6. 26. check_box_outline_blank
  7. 27. check_box_outline_blank
  8. 28. check_box_outline_blank
  9. 29. check_box_outline_blank
  10. 30. check_box_outline_blank
  11. 31. check_box_outline_blank
  12. 32. check_box_outline_blank
  13. 33. check_box_outline_blank
  14. 34. check_box_outline_blank
  15. 35. check_box_outline_blank
  16. 36. check_box_outline_blank
  17. 37. check_box_outline_blank
  18. 38. check_box_outline_blank
  19. 39. check_box_outline_blank
  20. 40. check_box_outline_blank
Q21. What will be the output of the following PHP line?
echoo "Pakistan", "is", "the", "best", "Country"
Q22. Which relationship is illustrated by a line that begins with an unfilled diamond?
Q23. What will be the output of the following PHP code?
if (!-0.0)
  print "Coding is the best" ;
else
  print "Courtesy Coding";
Q24. To prevent a method from being overridden by a subclass, which method scope is used in object oriented PHP?
Q25. XML is a markup language where documents must be marked up correctly.
Q26. Which statement will output $x on the screen?
Q27. Before you can start processing images with PHP, you must first add the ability to upload images to your administrative form on ________
Q28. Which class accepts a class name or an object reference and returns an array of interface name?
Q29. The open source software version of netscape is _________
Q30. State whether the given statement is true or false. !DOCTYPE is case sensitive”.
Q31. The number of scalar additions and subtractions used in Strassen’s matrix multiplication algorithm is ________
Q32. Which of the following is an example of asymmetric encryption technique?
Q33. Consider a reference string 7,0,1,2,0,3,0,4,2,3,0,3,2,1,2,0,1,7,0,1 of frame size 3. Calculate the number of page faults using optimal page replacement algorithm.
Q34. What is the auxiliary space requirement of introsort?
Q35. What is the average time complexity of counting sort?
Q36. What is the time complexity of the following iterative implementation used to find the largest and smallest element in an array?
#include
int get_max_element(int *arr,int n){
  int i, max_element = arr[0];
  for(i = 1; i < n; i++)
  if(arr[i] > max_element)
   max_element = arr[i];
  return max_element;
}
int get_min_element(int *arr, int n){
  int i, min_element = arr[0];
  for(i = 1; i < n; i++)
  if(arr[i] < min_element)
   min_element = arr[i];
  return min_element;
}
int main(){
  int n = 7, arr[7] = {1,1,1,0,-1,-1,-1};
  int max_element = get_max_element(arr,n);
  int min_element = get_min_element(arr,n);
  printf("%d %d",max_element,min_element);
  return 0;
}
Q37. What is the pre-processing time of Rabin and Karp Algorithm?
Q38. Which of the following can be the base case for the recursive implementation used to find the length of linked list?
#include< stdio.h >
#include< stdlib.h >
struct Node{
  int val;
  struct Node *next;
}*head;
int get_len(){
  struct Node *temp = head->next;
  int len = 0;
  while(temp != 0){
   len++;
   temp = temp->next;
  }
  return len;
}
int main(){
  int arr[10] = {1,2,3,4,5}, n = 5, i;
  struct Node *temp, *newNode;
  head = (struct Node*)malloc(sizeof(struct Node));
  head->next = 0;
  int len = get_len();
  printf("%d",len);
  return 0;
}
Q39. What is the time complexity of the following dynamic programming implementation used to find the minimum number of jumps?
#include< stdio.h >
#include< limits.h >
int min_jumps(int *arr, int len){
  int j, idx, jumps[len];
  jumps[len - 1] = 0;
  for(idx = len - 2; idx >= 0; idx--)
  {
   int tmp_min = INT_MAX;
   for(j = 1; j <= arr[idx] && idx + j < len; j++)
   {
    if(jumps[idx + j] + 1 < tmp_min)
     tmp_min = jumps[idx + j] + 1;
   }
   jumps[idx] = tmp_min;
  }
  return jumps[0];
}
int main(){
  int arr[] ={1, 1, 1, 1, 1, 1, 1, 1, 1},len = 9;
  int ans = min_jumps(arr, len);
  printf("%d\n",ans);
  return 0;
}
Q40. What is the time complexity of the following dynamic programming implementation of the boolean parenthesization problem?
int count_bool_parenthesization(char *sym, char *op){
  int str_len = strlen(sym);
  int True[str_len][str_len],False[str_len][str_len];
  int row,col,length,l;
  for(row = 0, col = 0; row < str_len; row++,col++)
 {
   if(sym[row] == 'T')
   {
    True[row][col] = 1;
    False[row][col] = 0;
   }
   else
   {
    True[row][col] = 0;
    False[row][col] = 1;
    }
  }
  for(length = 1; length < str_len; length++)
  {
   for(row = 0, col = length; col < str_len; col++, row++)
   {
    True[row][col] = 0;
    False[row][col] = 0;
    for(l = 0; l < length; l++)
    {
     int pos = row + l;
     int t_row_pos = True[row][pos] + False[row][pos];
     int t_pos_col = True[pos+1][col] + False[pos+1][col];
     if(op[pos] == '|')
     {
     False[row][col] += False[row][pos] * False[pos+1][col];
     True[row][col] += t_row_pos * t_pos_col - False[row][pos] * False[pos+1][col];;
     }
     if(op[pos] == '&')
     {
     True[row][col] += True[row][pos] * True[pos+1][col];
     False[row][col] += t_row_pos * t_pos_col - True[row][pos] * True[pos+1][col];
     }
     if(op[pos] == '^')
     {
     True[row][col] += True[row][pos] * False[pos+1][col] + False[row][pos] * True[pos + 1][col];
     False[row][col] += True[row][pos] * True[pos+1][col] + False[row][pos] * False[pos+1][col];
     }
   }
   }
  }
  return True[0][str_len-1];
}
  1. 41. check_box_outline_blank
  2. 42. check_box_outline_blank
  3. 43. check_box_outline_blank
  4. 44. check_box_outline_blank
  5. 45. check_box_outline_blank
  6. 46. check_box_outline_blank
  7. 47. check_box_outline_blank
  8. 48. check_box_outline_blank
  9. 49. check_box_outline_blank
  10. 50. check_box_outline_blank
  11. 51. check_box_outline_blank
  12. 52. check_box_outline_blank
  13. 53. check_box_outline_blank
  14. 54. check_box_outline_blank
  15. 55. check_box_outline_blank
  16. 56. check_box_outline_blank
  17. 57. check_box_outline_blank
  18. 58. check_box_outline_blank
  19. 59. check_box_outline_blank
  20. 60. check_box_outline_blank
Q41. A ________ on an attribute of a relation is a data structure that allows the database system to find those tuples in the relation that have a specified value for that attribute efficiently, without scanning through all the tuples of the relation.
Q42. CREATE TABLE SECTION
(course_id VARCHAR (8),
sec_id VARCHAR (8),
semester VARCHAR (6),
YEAR NUMERIC (4,0),
building VARCHAR (15),
room_number VARCHAR (7),
time_slot id VARCHAR (4),
PRIMARY KEY (course_id, sec_id, semester, YEAR),
FOREIGN KEY (_______) ______ course);

CREATE TABLE teaches
(ID VARCHAR (5),
course_id VARCHAR (8),
sec_id VARCHAR (8),
semester VARCHAR (6),
YEAR NUMERIC (4,0),
PRIMARY KEY (ID, course_id, sec_id, semester, YEAR),
FOREIGN KEY (course_id, sec_id, semester, YEAR) REFERENCES SECTION,
FOREIGN KEY (ID) _______ instructor);

In the above DDL command the foreign key entries are got by using the keyword
Q43. What is the purpose of SMON background process?
Q44. The relation with primary key can be created using
Q45. To include integrity constraint in an existing relation use :
Q46. The __________ requires that each transaction Ti executes in two or three different phases in its lifetime, depending on whether it is a read-only or an update transaction.
Q47. Suppose the Authority want to include a new instructor for the title Neuro Science what command should be inserted ?
The course relation
Course_id Title Dept_name Credits
BIt-101 Computer Networking CS&IT 4
CS-402 OOP CS&IT 3
PHY-333 Physical Principles Physics 2
CS-201 Data StructureCS&IT 4
Math-2301 Liner AlgebraMathematics 3
The instructor relation
ID Name Dept_name Salary
101 Moshin CS&IT 89000
102 Kashmala Mathematics80000
103 Sara Mathematics 87000
104 Awais CS&It90000
105 Anisa Physics 87000
Q48. There are similarities between the instructor entity set and the secretary entity set in the sense that they have several attributes that are conceptually the same across the two entity sets: namely, the identifier, name, and salary attributes. This process is called
Q49. The information about data in a database is called _______
Q50. A _________ consists of a sequence of query and/or update statements.
Q51. How is it possible to have both const and non-const version of a function?
Q52. Which of the following describes a friend class?
Q53. The memory for automatic variables ______________
Q54. Which among the following best defines single level inheritance?
Q55. How many public members are allowed in a class?
Q56. Which public function call among the following is correct outside the class, if return type is void (C++)?
Q57. Find the output of the following program.
class education{
  char name[10];
  public : disp(){
   cout<<”Its education system”;
  }
  class school:public education{
   public: void dsip(){
    cout<<”Its school education system”;
   }
  };
  void main(){
   school s;
   s.disp();
  }
}
Q58. Which programming language restricts the use of multiple inheritance?
Q59. Which among the following is added in grammar of new operator?
Q60. If base class is an abstract class then derived class ______________ the undefined functions
  1. 61. check_box_outline_blank
  2. 62. check_box_outline_blank
  3. 63. check_box_outline_blank
  4. 64. check_box_outline_blank
  5. 65. check_box_outline_blank
  6. 66. check_box_outline_blank
  7. 67. check_box_outline_blank
  8. 68. check_box_outline_blank
  9. 69. check_box_outline_blank
  10. 70. check_box_outline_blank
  11. 71. check_box_outline_blank
  12. 72. check_box_outline_blank
  13. 73. check_box_outline_blank
  14. 74. check_box_outline_blank
  15. 75. check_box_outline_blank
  16. 76. check_box_outline_blank
  17. 77. check_box_outline_blank
  18. 78. check_box_outline_blank
  19. 79. check_box_outline_blank
  20. 80. check_box_outline_blank
Q61. If the corresponding end bracket/braces/parentheses is encountered, which of the following is done?
Q62. What is a time complexity for finding the longest palindromic substring in a string by using the generalized suffix tree?
Q63. In a full binary tree if number of internal nodes is I, then number of nodes N are?
Q64. Which of the following is the self-adjusting binary search tree?
Q65. What should be done when a left parenthesis ‘(‘ is encountered?
Q66. What is the condition for priority of a node in a treap?
Q67. What does the following piece of code do?
public void func(Tree root) {
  System.out.println(root.data());
  func(root.right());
  func(root.left());
}
Q68. Level order traversal of a tree is formed with the help of
Q69. What is the average running time of a treap?
Q70. Evaluation of infix expression is done based on precedence of operators.
Q71. When consecutive memory locations are accessed only one module is accessed at a time.
Q72. The clock rate of the processor can be improved by _________
Q73. The addressing mode/s, which uses the PC instead of a general purpose register is ______
Q74. The next level of memory hierarchy after the L2 cache is _______
Q75. The DMA controller has _______ registers.
Q76. The cache bridges the speed gap between ______ and __________
Q77. The instruction, MLA R0,R1,R2,R3 performs _________
Q78. For the synchronization of the read head, we make use of a _______
Q79. The PC gets incremented _____________
Q80. The two phases of executing an instruction are __________
  1. 81. check_box_outline_blank
  2. 82. check_box_outline_blank
  3. 83. check_box_outline_blank
  4. 84. check_box_outline_blank
  5. 85. check_box_outline_blank
  6. 86. check_box_outline_blank
  7. 87. check_box_outline_blank
  8. 88. check_box_outline_blank
  9. 89. check_box_outline_blank
  10. 90. check_box_outline_blank
  11. 91. check_box_outline_blank
  12. 92. check_box_outline_blank
  13. 93. check_box_outline_blank
  14. 94. check_box_outline_blank
  15. 95. check_box_outline_blank
  16. 96. check_box_outline_blank
  17. 97. check_box_outline_blank
  18. 98. check_box_outline_blank
  19. 99. check_box_outline_blank
  20. 100. check_box_outline_blank
Q81. Which of the following is an essential principle of an architecture?
Q82. Object that collects data on request rather than autonomously is known as
Q83. Which metric gives the idea about the contents on a web page ?
Q84. The cost of re-engineering is often significantly less than the costs of developing new software.
Q85. Which of the following is the way of ensuring that the tests are actually testing code?
Q86. How many Information Domain Values are used for Function Point Computation?
Q87. How many Scenarios are there in elicitation activities ?
Q88. What is Life cycle risk assessment ?
Q89. Which of the following is not an objective of reverse engineering?
Q90. Java packages and Fortran subroutine are examples of__________
Q91. A subset of a network that includes all the routers but contains no loops is called ________
Q92. The physical layer is concerned with ___________
Q93. What is interframe gap?
Q94. Which layer 3 protocols can be transmitted over an L2TP VPN?
Q95. A __________ is a device that forwards packets between networks by processing the routing information included in the packet.?
Q96. In OSI model, when data is sent from device A to device B, the 5th layer to receive data at B is _________
Q97. Closed-Loop control mechanisms try to _________
Q98. Several techniques can make size of routing table manageable and also handle issues such as __________
Q99. The network address of 172.16.0.0/19 provides how many subnets and hosts?
Q100. Which transmission media provides the highest transmission speed in a network?