Explore topic-wise MCQs in Technical Programming.

This section includes 1671 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

551.

How does eclipse provide capability for debugging browser actions?

A. internal web browser
B. chrome web browser
C. firefox web browser
D. internet explorer browser
Answer» B. chrome web browser
552.

Which perspective is used to run a program in debug view?

A. java perspective
B. eclipse perspective
C. debug perspective
D. jdbc perspective
Answer» D. jdbc perspective
553.

What happens when the value of variable change?

A. changed value pop on the screen
B. variable changes are printed in logs
C. dump of variable changes are printed on screen on end of execution
D. variable tab shows variables highlighted when values change
Answer» E.
554.

What is debugging an application which runs on another java virtual machine on another machine?

A. virtual debugging
B. remote debugging
C. machine debugging
D. compiling debugging
Answer» C. machine debugging
555.

Which view allows us to delete and deactivate breakpoints and watchpoints?

A. breakpoint view
B. variable view
C. debug view
D. logger view
Answer» B. variable view
556.

Which key helps to step out of the caller of currently executed method?

A. F3
B. F5
C. F7
D. F8
Answer» D. F8
557.

How to deep dive into the execution of a method from a method call?

A. F3
B. F5
C. F7
D. F8
Answer» C. F7
558.

Which part stores the program arguments and startup parameters?

A. debug configuration
B. run configuration
C. launch configuration
D. project configuration
Answer» D. project configuration
559.

How can we move from one desired step to another step?

A. breakpoints
B. System.out.println
C. logger.log
D. logger.error
Answer» B. System.out.println
560.

Which mode allows us to run program interactively while watching source code and variables during execution?

A. safe mode
B. debug mode
C. successfully run mode
D. exception mode
Answer» C. successfully run mode
561.

Which design pattern works on data and action taken based on data provided?

A. Command pattern
B. Singleton pattern
C. MVC pattern
D. Facade pattern
Answer» B. Singleton pattern
562.

Is design pattern a logical concept?

A. True
B. false
Answer» B. false
563.

What does MVC pattern stands for ?

A. Mock View Control
B. Model view Controller
C. Mock View Class
D. Model View Class
Answer» C. Mock View Class
564.

Which design pattern represents a way to access all the objects in a collection?

A. Iterator pattern
B. Facade pattern
C. Builder pattern
D. Bridge pattern
Answer» B. Facade pattern
565.

Which design pattern suggest multiple classes through which request is passed and multiple but only relevant classes carry out operations on the request?

A. Singleton pattern
B. Chain of responsibility pattern
C. State pattern
D. Bridge pattern
Answer» C. State pattern
566.

Which design pattern ensures that only one object of particular class gets created?

A. Singleton pattern
B. Filter pattern
C. State pattern
D. Bridge pattern
Answer» B. Filter pattern
567.

Which design pattern provides a single class which provides simplified methods required by client and delegates call to those methods?

A. Adapter pattern
B. Builder pattern
C. Facade pattern
D. Prototype pattern
Answer» D. Prototype pattern
568.

Which of the below is not a valid classification of design pattern?

A. Creational patterns
B. Structural patterns
C. Behavioural patterns
D. Java patterns
Answer» E.
569.

Which of the below author is not a part of GOF (Gang of Four)?

A. Erich Gamma
B. Gang Pattern
C. Richard Helm
D. Ralph Johnson
Answer» C. Richard Helm
570.

Which of the below is not a valid design pattern?

A. Singleton
B. Factory
C. Command
D. Java
Answer» E.
571.

Which of the following is not a JDBC connection isolation levels?

A. TRANSACTION_NONE
B. TRANSACTION_READ_COMMITTED
C. TRANSACTION_REPEATABLE_READ
D. TRANSACTION_NONREPEATABLE_READ
Answer» E.
572.

Which of the following is used to rollback a JDBC transaction?

A. rollback()
B. rollforward()
C. deleteTransaction()
D. RemoveTransaction()
Answer» B. rollforward()
573.

Which of the following is method of JDBC batch process?

A. setBatch()
B. deleteBatch()
C. removeBatch()
D. addBatch()
Answer» E.
574.

Which of the following is used to limit the number of rows returned?

A. set Max Rows (int i)
B. set Min Rows (int i)
C. get Maxrows (int i)
D. get Min Rows (int i)
Answer» B. set Min Rows (int i)
575.

Which of the following is used to call stored procedure?

A. Statement
B. Prepared Statement
C. Callable Statment
D. Called Statement
Answer» D. Called Statement
576.

What does setAutoCommit(false) do?

A. commits transaction after each query
B. explicitly commits transaction
C. does not commit transaction automatically after each query
D. never commits transaction
Answer» D. never commits transaction
577.

Which one of the following contains date information?

A. java.sql.TimeStamp
B. java.sql.Time
C. java.io.Time
D. java.io.TimeStamp
Answer» B. java.sql.Time
578.

Which of the following is advantage of using PreparedStatement in Java?

A. Slow performance
B. Encourages SQL injection
C. Prevents SQL injection
D. More memory usage
Answer» D. More memory usage
579.

Which of the following is advantage of using JDBC connection pool?

A. Slow performance
B. Using more memory
C. Using less memory
D. Better performance
Answer» E.
580.

Which of the following contains both date and time?

A. java.io.date
B. java.sql.date
C. java.util.date
D. java.util.dateTime
Answer» E.
581.

How to specify autowiring by name?

A. @Qualifier
B. @Type
C. @Constructor
D. @Name
Answer» B. @Type
582.

Which attribute is used to specify destroy method?

A. destroy
B. destroy-method
C. destruction
D. destruction-method
Answer» C. destruction
583.

Which attribute is used to specify initialization method?

A. initinit-method
B. init-method
C. initialization
D. initialization-method
Answer» C. initialization
584.

What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?

A. prototype
B. singleton
C. request
D. session
Answer» C. request
585.

Which of the following is not feature of Beans?

A. Introspection
B. Events
C. Persistence
D. Serialization
Answer» E.
586.

Java Beans are extremely secured?

A. True
B. False
Answer» C.
587.

Which of the following is correct error when loading JAR file with duplicate name?

A. java.io.NullPointerException
B. java.lang.ClassNotFound
C. java.lang.ClassFormatError
D. java.lang.DuplicateClassError
Answer» D. java.lang.DuplicateClassError
588.

Which of the following is not true about Java beans?

A. Implements java.io.Serializable interface
B. Extends java.io.Serializable class
C. Provides no argument constructor
D. Provides setter and getter methods for its properties
Answer» C. Provides no argument constructor
589.

Which of the following is not an Enterprise Beans type?

A. Doubleton
B. Singleton
C. Stateful
D. Stateless
Answer» B. Singleton
590.

Which of the following keywords are used for lower bounding a wild card?

A. extends
B. super
C. class
D. lower
Answer» C. class
591.

Which of these is an correct way making a list that is upper bounded by class Number?

A. List<? extends Number>
B. List<extends ? Number>
C. List(? extends Number)
D. List(? UpperBounds Number)
Answer» B. List<extends ? Number>
592.

Which of these keywords is used to upper bound a wildcard?

A. stop
B. bound
C. extends
D. implements
Answer» D. implements
593.

What is use of wildcards?

A. It is used in cases when type being operated upon is not known
B. It is used to make code more readable
C. It is used to access members of super class
D. It is used for type argument of generic method
Answer» B. It is used to make code more readable
594.

Which of these is wildcard symbol?

A. ?
B. !
C. %
D. &
Answer» B. !
595.

Which of the following cannot be Type parameterized?

A. Overloaded Methods
B. Generic methods
C. Class methods
D. Overriding methods
Answer» B. Generic methods
596.

Which of these Exception handlers cannot be type parameterized?

A. catch
B. throw
C. throws
D. all of the mentioned
Answer» E.
597.

Which of these data type cannot be type parameterized?

A. Array
B. List
C. Map
D. Set
Answer» B. List
598.

Which of these instance cannot be created?

A. Integer instance
B. Generic class instance
C. Generic type instance
D. Collection instances
Answer» D. Collection instances
599.

Which of these types cannot be used to initiate a generic type?

A. Integer class
B. Float class
C. Primitive Types
D. Collections
Answer» D. Collections
600.

Which of these is an correct way of defining generic method?

A. name(T1, T2, …, Tn) { /* … */ }
B. public name { /* … */ }
C. class name[T1, T2, …, Tn] { /* … */ }
D. name{T1, T2, …, Tn} { /* … */ }
Answer» C. class name[T1, T2, …, Tn] { /* … */ }