wp mid1 ques

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

1. a. List string manipulation functions of Java String class.

b. Does Java support multi way selection statement? Justify your answer.
2.What is an exception? How are exceptions handled in Java programming? Explain
with suitable program.
3.Explain various operators and data types available in java script with examples
4.JavaScript is referred to as Object based programming language’. Justify with an
example
5.Explain about the different types of JDBC drivers with an example.
6.Discuss in detail about java file handling with an example.

1.a. Explain the structure of the HTML webpage with an example.


b. Discuss the client-side and server-side scripting.
2.a. List and explain the benefits of OOPS and Describe the features of Java with
an example code.
b. JavaScript is referred to as Object based programming language’. Justify with an
example
3.How does Java’s multithreading capability enable you to write more efficient
programs? Explain.
4.a. Explain how basic tables and nested tables are created using HTML
b. What is the scope of the variables in JavaScript?
5.Can inheritance be applied between interfaces? Justify your answer.
6.Write a JDBC program to update the amount balance in an account after every
withdrawal. Assume the necessary database table.

Answer All Questions


PART-B
Multiple choice questions [5*1/2=5m]
1. What is the correct syntax for referring to an external script called "app.js"?.
[ ]
A) <script name="app.js"></script>
B) <script href="app.js"></script>
C) <script src="app.js"></script>
D) <script link="app.js"></script>
2. Which HTML tag is used to define an internal style sheet?
[ ]
A) <script>
B) <style>
C) <css>
D) <link>
3. Which HTML element is used to display a large title?
[ ]
A) <h1>
B) <heading>
C) <title>
D) <h6>
4. What is the correct HTML element for inserting a line break?
[ ]
A) <br>
B) <lb>
C) <break>
D) <hr>
5. Which of the following is the correct way to create an ordered list in HTML?
[ ]
A) <ol><li>Item</li></ol>
B) <ul><li>Item</li></ul>
C) <list><li>Item</li></list>
D) <dl><dt>Item</dt></dl>
6. Which of these classes are the direct subclasses of the Throwable class?
[ ]
A) RuntimeException
B) Error
C) Exception
D) All of the above
7. Which keyword is used in Java to inherit a class?
[ ]
A) this
B) extends
C) implements
D) super
8. Which of the following is used to connect to a database in JDBC?
[ ]
A) DriverManager
B) ConnectionManager
C) DataManager
D) DatabaseManager
9. Which method is used to establish a connection to a database in JDBC?
[ ]
A) connect()
B) openConnection()
C) getConnection()
D) createConnection()
10. Which interface in JDBC is used to execute SQL queries?
[ ]
A) Connection
B) Statement
C) ResultSet
D) Driver

Blanks [10*1/2=5m]
The <__> tag is used to create hyperlinks.
The <__> element is used to define the header of an HTML document.
To access an HTML element by its ID in JavaScript, you use the method __.
The function in JavaScript to print something in the console is __.
JavaScript variables are declared using the __ keyword.
The tag for creating an ordered list in HTML is <__>
An __ is a blueprint that defines a set of methods but does not implement them.
In Java, multiple methods with the same name but different parameters define __.
To create a thread in Java, you either implement the __ interface or extend the __
class.
In JDBC, to establish a connection with a database, the class __ is used.

You might also like