July 17, 2021 in C and CPP
What do you mean by static and dynamic typed languages? Explain in brief.
c) What do you mean by static and dynamic typed languages? Explain in brief.
July 17, 2021 in C and CPP
c) What do you mean by static and dynamic typed languages? Explain in brief.
July 17, 2021 in C and CPP
b) Write a short note on java.nio.ByteBuffer class.
July 17, 2021 in C and CPP
a) Write a short note on following UML diagrams
i) Component diagram
ii) Deployment diagram
July 17, 2021 in C and CPP
c) Briefly discuss Abstraction and Encapsulation in Object Oriented Programming.
July 17, 2021 in C and CPP
b) What is a package? Explain the steps for creating user defined package.
July 17, 2021 in C and CPP
a) What are Wrapper classes? Explain in detail.
July 17, 2021 in C and CPP, MySql
A. IOException static B. InvalidMarkException C. final
D. javap E. default F. ResultSet
G. private H. FlowLayout I. PreparedStatement
J. reference K. SQLException L. ReadOnlyBufferException
M. objects
4.1 A class declared as ________ cannot be inherited.
4.2 An object is implicitly passed to a method by ________.
4.3 The class variable is also called as a(n) ________ variable.
4.4 getNextException method belongs to ________ class.
4.5 The object of ________ class is thrown when an attempt is made to reset a buffer when its mark is not defined.
4.6 The jdk development tool which is used as a class file disassembler is known as ________.
4.7 A SQL statement is precompiled and stored in a ________ object.
4.8 ________ is the default access modifier for instance variables in Java.
4.9 UML depicts information systems as a collection of ________.
4.10 The default layout manager of a JPanel container is ________.
July 17, 2021 in C and CPP
Each statement below is either TRUE or FALSE. Choose the most appropriate one and
ENTER in the “tear-off” sheet attached to the question paper, following instructions
therein.
2.1 JFrame is a parent class of a JPanel.
2.2 The entry point of every application in java is its main() method.
2.3 The ArrayList class provides the capability to implement a growable array of object.
2.4 In java, Object class is the root of class hierarchy.
2.5 The destroy() method of a JApplet is called more than once in its life cycle.
2.6 Assertions are a commonly used idiom for defensive programming.
2.7 The JButton object can be created with text and icon.
2.8 When using the GridBagLayout manager, each new component requires a new instance of the
GridBagConstraints class.
2.9 The combination of name, return type and order of arguments is termed as signature of
method.
2.10 UML Sequence diagram is one form of interaction diagram.
July 17, 2021 in C and CPP
1.10 Which code segment would execute the stored procedure "calculateSal()" located in a
database server?
A) Statement stmt = connection.createStatement();
stmt.execute("CALCULATESAL()");
B) CallableStatement cs = con.prepareCall("{call calculateSal }");
cs.executeQuery();
C) StoreProcedureStatement spstmt = connection.createStoreProcedure("calculateSal()");
spstmt.executeQuery();
D) PrepareStatement pstmt = connection.prepareStatement("calculateSal()");
pstmt.execute();
E) Statement stmt = connection.createStatement();
stmt.executeStoredprocedure("calculateSal()");
July 17, 2021 in C and CPP
1.9 int values[ ] = {1,2,3,4,5,6,7,8};
for(int i=0;i< X; ++i)
System.out.println(values[i]);
Referring to the above, what value for X will print from all members of array "values"?
A) 1
B) 7
C) 8
D) None of the above