Explore topic-wise MCQs in Technical MCQs.

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

1.

Existing data can be modified by calling?

A. Save
B. Update
C. both a and b
D. None of the above
E.
Answer» D. None of the above
2.

get_id() instance method returns primary key of a row.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
3.

The Peewee.Model class also has a ________ method that creates a new instance and add its data in the table.

A. get
B. set
C. create
D. insert
Answer» D. insert
4.

Which class is used to establish foreign key relationship in two models and hence, the respective tables in database?

A. Binary fields
B. ForeignKey field
C. Numeric Field
D. Text fields
Answer» C. Numeric Field
5.

Which method Inserts a new row in the underlying table mapped to model?

A. Classmethod select()
B. Classmethod update()
C. classmethod delete()
D. classmethod insert()
Answer» E.
6.

Which method create an alias to the model-class?

A. Classmethod select()
B. Classmethod update()
C. Classmethod alias()
D. classmethod insert()
Answer» D. classmethod insert()
7.

________ is SQLite extension which is used to modify operation of SQLite library.

A. tuple
B. pragma
C. psycopg2
D. pymysql
Answer» C. psycopg2
8.

Peewee supports?

A. SQLite
B. MySQL
C. PostgreSQL
D. All of the above
Answer» E.
9.

Peewee developed by a U.S. based software engineer Charles Leifer in ?

A. 2005
B. 2007
C. 2010
D. 2013
Answer» D. 2013
10.

Peewee is a Python Object Relational Mapping (ORM) library.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
11.

wxPython API contains wx.Slider class.

A. Yes
B. No
C. Can be yes or no
D. Can not say
E.
Answer» B. No
12.

Which of the following method Sets the button’s caption programmatically?

A. SetLabel
B. GetLabel
C. SetDefault
D. Default
Answer» B. GetLabel
13.

_______ method is inherited by all display objects from wx.EvtHandler class.

A. OnClick()
B. Event()
C. Load()
D. Bind()
Answer» E.
14.

___________ class object shows a vertical or horizontal bar, which graphically shows incrementing quantity.

A. wx.Slider
B. wx.MenuBar
C. Wx.Gauge
D. wx.CheckBox
Answer» D. wx.CheckBox
15.

A _________ displays a small labeled rectangular box.

A. wx.StaticText
B. wx.checkbox
C. wx.Frame
D. wx.Toolbar
Answer» C. wx.Frame
16.

Which of the following is true about wx.Panel?

A. Class has a default constructor with no arguments
B. class object presents a control holding such read-only text
C. class is usually put inside a wxFrame object
D. None of the above
Answer» D. None of the above
17.

Which of the following is true about wxFormBuilder?

A. wxFormBuilder is open source
B. wxFormBuilder is cross-platform
C. wxFormBuilder is can translate the wxWidget GUI design into C++, Python, PHP or XML format
D. All of the above
Answer» E.
18.

A ___________ window can contain any frame that is not a dialog or another frame.

A. wxModule
B. wxFrame
C. wxWidget
D. wxFormBuilder
Answer» C. wxWidget
19.

wxPythonis a Python wrapper forwxWidgets.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
20.

wxPython developed by?

A. Robin Dunn
B. Harri Pasanen
C. Guido van Rossum
D. Both A and B
Answer» E.
21.

The Hibernate architecture consists of?

A. persistent object
B. session factory
C. transaction
D. All of the above
E.
Answer» E.
22.

What do you think about the statement - "session being a thread-safe object"?

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» C. Can be yes or no
23.

Which session method begin a unit of work and return the associated Transaction object?

A. clear
B. cancelQuery
C. Transaction beginTransaction
D. Transaction
Answer» D. Transaction
24.

A ___________ represents a unit of work with the database and most of the RDBMS supports transaction functionality.

A. Query objects
B. Session
C. Criteria objects
D. Transaction
Answer» E.
25.

Hibernate has _____ cache types

A. 1
B. 2
C. 3
D. 4
Answer» C. 3
26.

_____________ is mainly used for improving the application performance by helping to load the child objects on demand.

A. Load
B. Configuration
C. Lazy loading
D. CGF
Answer» D. CGF
27.

SessionFactory provides an instance ofSession.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
28.

A ____________ is an object that maintains the connection between Java object application and database.

A. cookie
B. session
C. cache
D. persist
Answer» C. cache
29.

Which of the following are advantages of Hibernate?

A. Clean Readable Code
B. Hibernate Query Language
C. Exception Handling
D. All of the above
Answer» E.
30.

Hibernate ORM stands for ?

A. Class Relational Mapping
B. Class Object Mapping
C. Object Relational Mapping
D. None of the above
Answer» D. None of the above
31.

The Statement object is created by using createStatement() method of Connection class.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
E.
Answer» B. FALSE
32.

_______ method can be used for any SQL statements(Select and Update both).

A. executeQuery
B. executeUpdate
C. execute
D. All of the above
Answer» D. All of the above
33.

The ___________ method returns the object of java.lang.Class object.

A. Class.Name()
B. Class.forAttribute()
C. Class.Attributes()
D. Class.forName()
Answer» E.
34.

Which represents a collection of binary data stored as a single entity in the database management system?

A. Clob
B. Blob
C. Glob
D. Dlob
Answer» C. Glob
35.

The Connection object is created by using __________ method of DriverManager class. DriverManager is the factory for connection.

A. createConnection()
B. setConnection()
C. getConnection()
D. Connect()
Answer» D. Connect()
36.

How many types of JDBC drivers?

A. 1
B. 2
C. 3
D. 4
Answer» E.
37.

The java.sql and javax.sql are the primary packages for JDBC 4.0.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
38.

JDBC Architecture consists of ______ layers.

A. 2
B. 3
C. 4
D. 5
Answer» B. 3
39.

The JDBC API supports __________ processing models for database access

A. two-tier
B. three-tier
C. both two-tier and three-tier
D. None of the above
Answer» D. None of the above
40.

What is correct MIME type for JSON ?

A. application/js
B. application/json
C. json/mime
D. application/xml
E.
Answer» C. json/mime
41.

Which of the following is not a type in JSON?

A. Date
B. Object
C. Array
D. String
Answer» B. Object
42.

Which is correct format of writting JSON name/value pair

A. 'name : value'
B. 'name = 'value'
C. 'name = "value"
D. "name" : "value"
Answer» E.
43.

JSON is based onECMAScript.

A. Yes
B. No
C. Can be yes or no
D. Can not say
Answer» B. No
44.

Which of the following are benefits of JSON over XML?

A. It is faster and lighter than XML as on the wire data format
B. XML data is typeless while JSON objects are typed
C. XML data are all string
D. All of the above
Answer» E.
45.

What is the default value of a constructor’s prototype?

A. 0
B. 1
C. null
D. -1
Answer» D. -1
46.

____________ creates a new object with the specified prototype object and properties.

A. Create
B. Object.create
C. Object.get
D. Object.set
Answer» C. Object.get
47.

JSON supports?

A. Objects
B. Arrays
C. Primitives
D. All of the above
Answer» E.
48.

JSON is used for communication between javascript and serverside technologies.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
Answer» B. FALSE
49.

JSON stands for?

A. Java Object Notation
B. Google Object Notation
C. JavaScript Object Notation
D. Jenkins Object Notation
Answer» D. Jenkins Object Notation
50.

Gson performs the _____________ of objects using its inbuilt adapters

A. serialization
B. deserialization
C. serialization or deserialization
D. None of the above
E.
Answer» D. None of the above