2nd Year Computer Past Paper

All Solved 2nd Year Computer Past Paper written by Honorable Professor Mr. Adnan Haider Suib. These notes are very helpful in the preparation of 2nd Year Computer Past Paper of all Punjab Boards (Faisalabad Board, Gujranwala Board, Lahore Board, Multan Board, Rawalpindi Board, D.G. Khan Board, Bahawalpur Board,  Sargodha Board, Sahiwal Board ) for the students of the Intermediate part-II and these are according to the paper patterns of all Punjab boards.

Summary and Contents:
Topics which are discussed in the notes are given below:
  • Here are the detailed 2nd Year Computer Past Paper to help you prepare for your exams.
  • 1-1. Which file is used to store information that remains constant for a long time :
  • (A) Data file
  • (B) Master file
  • (C) Transaction file
  • (D) Backup file
  • 2. An attribute is also known as:
  • (A) Record
  • (B) Row
  • (C) Field
  • (D) Relation
  • You can also download the 2nd year computer past papers for free.
  • 3. Which of the following is used to associate entities with one another:
  • (A) Entity
  • (B) Attribute
  • (C) Relation
  • (D) Relationship
  • 4. In 2NF, which form of dependency is removed:
  • (A) Partial
  • (B) Non-functional
  • (C) Associative
  • (D) Transitive
  • If you're looking for comprehensive computer past papers 2nd year, you've come to the right place.
  • 5. The output of a query is in the form of a:
  • (A) Form
  • (B) Query
  • (C) Table
  • (D) Macro
  • 6. To find all names start with M from student table, the criteria is:
  • C-Language OR Visual Basic
  • (A) Like "M?"
  • (B) Like "M-"
  • (C) Like "M# "
  • (D) Like "M* "
  • These computer science past papers 2nd year are designed to simplify your study sessions.
  • 7. The target code produced by the compiler is:
  • (A) Object code
  • (B) Source code
  • (C) Library code
  • (D) Linked code
  • 8. Which of the following is a valid character constant:
  • (A) a
  • (B) @
  • (C) "c"
  • (D) =
  • Download the solved past papers 2nd year computer science today and start your exam preparation without any hassle.
  • 9. The format specifier % f is used for:
  • (A) int
  • (B) long
  • (C) double
  • (D) float
  • 10. If x2 and y=3, what will be the output of the expression: x>y?x+y: x*y;
  • (A) 6
  • (B) 5
  • (C) 12
  • (D) 10
  • Get access to high-quality 2nd Year Computer solved past papers pdf download that cover all the important topics.
  • 11. Conditional operator is an alternative of:
  • (A) if
  • (B) if-else
  • (C) switch
  • (D) for
  • 12. In which loop, statement terminator is a part of its syntax:
  • (A) for
  • (B) while
  • (C) do-while
  • (D) for-each
  • Our comprehensive past papers of 2nd year computer will ensure you're fully prepared for your exams.
  • 13. What is the final value of i after executing the code for (int i=1; i<5; i+-2)
  • (A) 7
  • (B) 5
  • (C) 6
  • (D) 9
  • 14. What is the variable that is used by function to receive an argument:
  • (A) Expression
  • (C) Constant
  • (B) Parameter
  • (D) Function
  • Make your study time more effective with these well-organized past papers 2nd year computer.
  • 15. Which of the following function is used to write a character to a file:
  • (A) getc()
  • (B) fputs()
  • (C) putc()
  • (D) fgets()
  • 1. 7. The output of the compiler is called:
  • (A) Object code
  • (B) Source code
  • (C) Linked code
  • (D) Program
  • 8. A project file is saved with the following extension:
  • (A) .frm
  • (B) .vbp
  • (C) .vb
  • (D) .frx
  • 9. You can enter data in a control only when it has:
  • (A) Tab order
  • (B) Control
  • (C) Mask
  • (D) Focus
  • 10. What is the value of variable R after the following code has been executed :
  • Dim R As Integer     R=14 - 4*8+12/6
  • (A)-16
  • (B) 14
  • (C) -12
  • (D) 8
  • 11. In Visual Basic, which statement indicates the end of a decision structure:
  • (A) END
  • (B) END IF
  • (C) NEXT
  • (D) ELSE
  • 12. For A4 and B = 4, which of the following evaluates to true:
  • (A) A<>B
  • (B) A
  • (C) A>=B
  • (D) A>B
  • 13. What is the value of i after the execution of following code:
  • For i 2 to 12 step 3       Statement in loop     Next
  • (A) 14
  • (B) 13
  • (C) 12
  • (D) 11
  • 14. A loop within a loop is called:
  • (A) Next loop
  • (B) Nested loop
  • (C) Outer loop
  • (D) Inner loop
  • 15. The interval property of timer control is set in:
  • (A) Hours
  • (B) Minutes
  • (C) Milliseconds
  • (D) Seconds
  • (MS-ACCESS)
  • 2. Write short answers to any SIX (6) questions:
  • (i) Define data redundancy.   (ii) Differentiate between master file and transaction file.      
  • (iii) Describe foreign key.       (iv) Define synonym.
  • (v) What are the database anomalies?  (vi) List two advantages of report.
  • (vii) Define sorting.   (viii) State the purpose of subform.
  • (ix) Identify name of entity and primary key in the following: STUDENT (Student ID, St name, Group)
  • C-Language
  • 3. Write short answers to any SIX (6) questions:
  • (i) What is the use of main () function in C?   (ii) Distinguish between source code and object code.
  • (iii) Define header files.   (iv) What is the use of assignment statement?
  • (v) Differentiate between unary and binary operator.  (vi) Compare "getch()" and "getche ()" function.
  • (vii) Trace output of the following code int x0, y5, z=4; x=y+z*5; printf ("Result = %d", x);
  • (viii) Find errors in following code: void main(); { } print ("Pakistan");
  • (ix) Trace output of following code:   inta5,b= 10; int ca+b* 2; printf("The output is %d", c);
  • OR  (Visual Basic)
  • 3. Write short answers to any SIX (6) questions:
  • (i) Define source code.   (ii) List any two disadvantages of machine language.
  • (iii) List any two properties of form object.  (iv) Differentiate between text box & label control.
  • (v) Differ between constant and variable.  (vi) What is the purpose of language processor?
  • (vii) Find output of the following code  DIM res As Integer res(20+10)/3  print res
  • (viii) Trace errors in following code:  DIM x Integer    x=10+5   print "x
  • (ix) Find output of the following code: DIM z As Integer z = 50 print z MOD 6
  • C-Language
  • 4. Write short answers to any SIX (6) questions:
  • (i) Write the syntax of if-else statement.    (ii) State the use of goto statement.
  • (iii) Determine the output of the following code if (1!=2) printf ("OK"); else printf ("Correct it");
  • (iv) Trace the errors in the following code:  if (7!=10 printf ("Hello") else print ("Welcome");

Loading your document...