Computer 3 Past Papers 

[OBJECTIVE]

Subject: Computer-III

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 right answer, cutting and overwriting is not allowed. (1×10=10)

Which component is responsible for converting byte code into machine specific code?

a) JVM b) JDK

c) JIT d) JRE

Which of the below is not a memory leak solution?

a) Code changes b) JVM parameter tuning

c) Process restarts d) GC parameter tuning

Which of these interfaces is implemented by Thread class?

a) Runnable b) Connections

c) Set d) Map Connections

Which tag should be used to pass information from JSP to included JSP?

a) Using <%jsp:page> tag b) Using <%jsp:param> tag

c) Using <%jsp:import> tag d) Using <%jsp:useBean> tag

What is it called where child object gets killed if parent object is killed? –

a) Aggregation b) Composition

c) Encapsulation d) Association

Statements of JavaScript function are enclosed in.

a) { & } b) [ & ]

c) ( & ) d) None of these

Which of the following is a server side programming language?

a) VbScript b) JavaScript

c) JSP d) HTML

What kind of programming language is Java?

a) Object-oriented programming language b) Relational programming language

c) Sixth-generation programming language d) Database management language

The Extension with which web documents are saved is.

a) .class b) .c

c) .htm] d) .css

The <br> tag is used to add:

a) Long break b) Line break

c) Braces d) All of these

 

[SUBJECTIVE]

Subject: Computer-III

Time Allowed: 2 Hours 45 Minutes

Maximum Marks: 50

NOTE: ATTEMPT THIS (SUBJECTIVE) ON THE SEPARATE ANSWER SHEET PROVIDED.

 

Part-II Give short answers of the following. (20)

Q#1: How do you create links to sections within the same web page?

Q#2: Write an HTML table tag sequence that outputs the following:

150         pcs         1100       1500

110         pcs         15           150

Q#3: How do you create a link that will connect to another web page when clicked?

Q#4: What are two types of Web Storage in HTML5?

Q#5: What is the difference between final, finalize and finally as per JAVA?

 

 

Part-III Give brief answers of the following. (30)

Q#1: An anagram is a word or a phrase made by transposing the letters of another word or phrase; for example, “parliament” is an anagram of “partial men,” and “software” is an anagram of “swear oft.” Write a JAVA program that figures out whether one string is an anagram of another string. The program should ignore while space and punctuation

Q#2: For each of the following pairs of concepts that are used in Java explain a similarities and differences and discuss when you would use one rather than the other. If there are important syntactic differences, method names, degrees of generalization possible or the like, then any code fragments you give in illustration should be as short as possible to make the desired point. .

(a) JApplet and simple Java applications. .

(b) Vector<String> and arrays of strings (String []).

(c) class, abstract class and interface.

Q#3: What is JDBC Connection? Explain steps to get Database connection in a simple java program and also write the java code as example.

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.