Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
1 views2 pages

Answers

The document contains a series of advanced questions and answers related to databases and programming concepts. It covers topics such as SQL injection, transaction management, Java Servlets, and collection interfaces in Java. Each question is followed by a multiple-choice answer, indicating the correct option for each query.

Uploaded by

ephitsegaye7878
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views2 pages

Answers

The document contains a series of advanced questions and answers related to databases and programming concepts. It covers topics such as SQL injection, transaction management, Java Servlets, and collection interfaces in Java. Each question is followed by a multiple-choice answer, indicating the correct option for each query.

Uploaded by

ephitsegaye7878
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Advanced Database Answers👇👇👇

1. D. There is a risk a hacker would use SQL injection.

2. B. Revoke update on employee from Abebe

3. B. Projection 4. E. All 5. B. Cascadeless Schedule 6. A. Undo the transaction before commit. 7. D. All 8.
A. By applying locking method and lock managers deal with.

9. D. None 10. D. All of the mentioned 11. D. B and C. 12. B. Begin & End 13. B. Active State 14. A. Table.
15. C. Isolation 16. A. True 17. D. A&C 18. D. All 19. B. wound/wait 20. C. The schedule is non-serializable
schedule and is not strict recoverable schedule. 21. Concurrency control

22. D. All 23. A. Lost Update problem 24. D. All

25. B. Database recovery 26. D. All 27. A. By applying locking method and lock managers deal with. 28.
D. All 29. D. None 30. E. All of the mentioned 31. A. Write Transaction 32. B. FALSE 33. D. All 34. B. Query
Optimization 35. D. SELECT 36. A. Sigma 37. B. 35 38. C. Create 39. A. Binary lock 40. A. TRUE 41. A. Data
security 42. A. Software cost 43. A. A single logical database that is spread to multiple locations and is
interconnected by a network 44. A. Hierarchical 45. C. Relational algebra 46. D. All of the above 47. A.
Active 48. A. Lost update problem 49. D. All 50. B. Undo pass.

Advanced programming answers

👇👇👇👇

1. C. TCP is slower compared to UDP 2. E. None 3. B. It's a process in which two or more parts of the
same process run simultaneously 4. C. iii->v->i->ii->iv 5. E. HashSet and LinkedHashSet are the
implementing classes of the SortedSet interface 6. D. Running to ready 7. B. Scriptlet tag 8. C. Hashtable
9. D. service() method 10. A. java.net package 11. C. IPAdress 12. C. Both IP address of Server and port
number 13. B. CallableStatement 14. A. GenericServlet 15. C. Compilation, Initialization, Execution,
Cleanup

16. Which of the following is true about JSP? A. 1 & 2 17. Which of the following is false about Set
interface java collection? A. A Set collection can contain duplicate elements 18. Which types of 10
stream is used to perform read based communication on top of TCP protocol? A. DataInputStream 19.
Which collection interface restricts duplicate elements? A. Set 20. Which one of the following is false
about the java servlet life cycle? B. The service() method will be called only once during the lifetime of
the servlet 21. The ASP and JSP technologies are quite similar in the way they support the creation of
Dynamic pages, using HTML templates, scripting code, and components for business logic. B. False 22.
Which of the following is true about List interface java collection? A. A List collection can contain
duplicate elements 23. Which one of the following is not true about client-server communication on top
of User Datagram Protocol? D. Packets may arrive at the destination in any order

25. To execute the given SQL statement efficiently and effectively, the JDBC interface that is more
suitable is: C. PreparedStatement 26. Based on Question No. 26, the method that is not able to execute
the above SQL statement (update statement) is: A. executeQuery(String sql) 27. Which one of the
following is false about GET and POST request methods? C. The doGet() method is the corresponding
method for POST request 28. JSPs eventually are compiled into Java servlets, you can do as much with
JSPs as you can do with Java servlets. A. True 29. What is the output of the following program? public
class Question_7_1 { public static void main(String[] args) { ArrayDeque deque = new ArrayDeque();
deque.push(1); deque.push(2); deque.push(3); deque.poll(); System.out.println(deque); } The output of
the program is: B. [1, 2]

30. Which one of the following is not true about ResultSet in JDBC? C. Despite the number of rows in a
result set returned from a manipulated query, at a time only one row is accessible 31. Which of the
following are the advantages of Java Servlet over the other common server extensions? D. All of the
above 32. Which of the following are the valid scopes in JSP? A. request, page, session, application 33.
Which types of IO stream is used to perform read based communication on top of TCP protocol? A.
DataInputStream 34. The life cycle method of a servlet which is responsible for handling all incoming
requests from the client side: C. service() method 35. The class used to create datagram packets is: A.
DatagramPacket 36. A Map can contain duplicate keys. B. False 39. Which method is called internally by
Thread start() method? C. run() 37. Which of the following object of java.sql package is responsible to
manage the registering and unregistering of database drivers from the underlying system? C.
Java.sql.DriverManager

38. Which collection class maintains insertion order? C. LinkedHashSet 39. Which method will contain
the body of the thread in Java? D. run() 40. Which one of the following is false about client-server
communication on top of User Datagram Protocol? C. Destination address is accessed from an
established socket 41. Which one of the following is not true about client-server communication on top
of User Datagram Protocol? C. Destination address is accessed from an established socket 42. The
correct order of the activities for Java Database Connectivity in any underlying system is: C. c-fade->b>g

43. Which interface provides key-value pair? C. Map 44. Which one of the following is true about port
number and IP address? A. Port number is an identification given for computer machines 45. Which
Interface does not allow duplicates? B. Set 46. Which one of the following is not true about TCP
protocol? C. It does not allow reliable communication between two applications 47. Which of these is
synchronized? C. Vector 48. Which of these maintains insertion order? A. List 49. Which class is
responsible for managing the loading and unloading of database drivers from the underlying system? B.
DriverManager 50. What is the maximum thread priority in Java? C. 10

You might also like