Visual Net Programming Past Papers 1
Time Allowed: 3 hours Examination: Total Marks: 70, Passing Marks (35)
Visual Net Programming Past Papers 2
Time Allowed: 3 hours Examination: Total Marks: 70, Passing Marks (35)
[OBJECTIVE] Subject: Visual Programming Concept Time Allowed: 10 Minutes Maximum Marks: 10 NOTE: Attempt this Paper on this Question Sheet only. Please encircle the correct option. Division of marks is given in front of each question. This Paper will be collected back after expiry of time limit mentioned above. Part-I Encircle the correct option, cutting and overwriting is not allowed. (10) 1. Visual basic was developed by. A) Prof. Bell B) Prof. John Kemmeny and Thomas Kurtz C) Prof. Howard Bell D) Both b and c 2. A Order data for baseball tickets and bar code data are examples of A) raw input. B) raw output. C) customer and product data. D) sales information. 3. When does Exceptions arises in code sequence? A) Run Time B) Compilation Time C) Can Occur Any Time D) None of the mentioned 4. What is function overloading? A) Methods with same name but different parameters. B) Methods with same name but different return types. C) Methods with same name, same parameter types but different parameter names. D) None of the above. 5. How many classes can be defined in a single program? A) Only 1 B) Only 100 C) Only 999 D) None of above 6. Which concept of OOP is false for C++? A) Code can be written without using classes B) Code must contain at least one class C) A class must have member functions D) At least one object should be declared in code 7. How does the computer store the letter e.g. ‘s’? A) In binary format B) In ASCII representation C) The letter is mapped onto some number and this number is stored D) All of the above 8. What is the value stored in the integer variable intVar? int intVar = 24.2 / 2; A) 12 B) 12.1 C) 13 D) 24 E) None of the above 9. How many times is the body of the loop executed? int i=1; while(true) { cout << i; if(i==5) break; i++; } A) Forever B) 5 times C) 6 times D) 0 times E) None of the above 10. What does the following piece of code print? for(int i=0;i<3;i++) { for(int j=5;j<7;j++) { cout << ‘*’; } cout <<endl; } A) ** ** ** B) ****** C) *** *** D) * ** [SUBJECTIVE] Subject: Visual Programming Concept Time Allowed: 2 Hours 45 Minutes Maximum Marks: 50 NOTE: ATTEMPT THIS (SUBJECTIVA) ON THE SEPARATE ANSWER SHEET PROVIDED. Part-II Give short details of each of them, each answer carries equal marks. (20) Q#1: Define instance in object-oriented programming. Q#2: Define destructor. Q#3: What is abstraction and its benefits. Q#4: What is exception handling? Q#5: What are the access modifiers? Q#6: What is early and late binding? Q#7: What is the difference between structure and a class? Q#8: What is the use of constant variables? Q#9: Define nested if statement and also give an example. Q#10: Define function and its benefits. Part-III Give brief answers, each answer carries equal marks. (30) Q#1: State the important features of Object-Oriented Programming. Compare Object-Oriented programming with Procedure-Oriented programming. Q#2: Difference between abstraction and encapsulation with detail example in your word. Q#3: Write an algorithm to print table from 2 to 10. e.g. 2 X 1 = 2 2 X 2 = 4 : : 3 X 1 = 3 3 X 2 = 6