Create Account
Sign In
Toggle navigation
Home
Practice Exams
Official IQ Testing Hub
MCQ Learn
Board Exams
Learn
BISE Courses
Blog
About Us
Contact Us
01
:
09
:
00
Q:
1
/
77
🤖
Evaluating Your Answers
Please wait while our AI system evaluates your descriptive answers...
This may take a few moments.
⏳ Processing...
We're using advanced AI to provide detailed feedback on your answers.
Java Programming Mock Test 15
Exam Duration:
01:09:00
Java Programming Mock Test 15
: Question
1
of 77
Consider the following statements var count = 0; while (count 10) { console.log(count); count++; }
1 Mark(s)
Your Answer:
The values of count is logged or stored in a particular location or storage
The values of count is logged or stored in a particular location or storage
The value of count from 0 to 9 is displayed in the console
The value of count from 0 to 9 is displayed in the console
An error is displayed
An error is displayed
An exception is thrown
An exception is thrown
Which key uniquely identifies each record in a table
1 Mark(s)
Your Answer:
Foreign key
Foreign key
Composite key
Composite key
Alternate key
Alternate key
Primary key
Primary key
Which method is used to find the symmetric difference between two sets?
1 Mark(s)
Your Answer:
symmetric_difference()
symmetric_difference()
diff()
diff()
difference()
difference()
symdiff()
symdiff()
In Global Service for Mobile (GSM), each band is 25 MHz in width, shifted toward:
1 Mark(s)
Your Answer:
400 MHz
400 MHz
650 MHz
650 MHz
750 MHz
750 MHz
900 MHz
900 MHz
Cloud Computing provides resources over:
1 Mark(s)
Your Answer:
Internet
Internet
LAN
LAN
Bluetooth
Bluetooth
USB
USB
Which of the following statements are false?
1 Mark(s)
Your Answer:
bool can have two values and can be used to express logical expressions
bool can have two values and can be used to express logical expressions
bool cannot be used as the type of the result of the function
bool cannot be used as the type of the result of the function
bool can be converted into integers implicitly
bool can be converted into integers implicitly
a bool value can be used in arithmetic expressions
a bool value can be used in arithmetic expressions
Glass has a young modulus of:
1 Mark(s)
Your Answer:
65x109 N/m2
65x109 N/m2
70x109 N/m2
70x109 N/m2
200x109 N/m2
200x109 N/m2
30x109 N/m2
30x109 N/m2
Which of the following property refers to the root element of the document?
1 Mark(s)
Your Answer:
documentElement
documentElement
elementdocument
elementdocument
rootdocument
rootdocument
none of the mentioned
none of the mentioned
Which of the following is the key measure to reduce the number of diarrhea cases?
1 Mark(s)
Your Answer:
Improved sanitation
Improved sanitation
Food hygiene
Food hygiene
Safe drinking water
Safe drinking water
All of the above
All of the above
What is the purpose of the 'catch' block in exception handling in C++?
1 Mark(s)
Your Answer:
To throw exceptions
To throw exceptions
To define the block of code that may generate exceptions
To define the block of code that may generate exceptions
To catch and handle exceptions
To catch and handle exceptions
To handle errors during compile time
To handle errors during compile time
Information kept about a file includes
1 Mark(s)
Your Answer:
print setting
print setting
deletion data
deletion data
Both A and B
Both A and B
size
size
Which tab displays the content of slides in normal view?
1 Mark(s)
Your Answer:
View
View
Layout
Layout
Outline
Outline
None of these
None of these
In an E-R diagram, the relationship sets are represented through the symbol:
1 Mark(s)
Your Answer:
Undivided rectangle
Undivided rectangle
Diamond
Diamond
Rectangles divided into two parts
Rectangles divided into two parts
Triangle
Triangle
The stomach can hold:
1 Mark(s)
Your Answer:
1 liter food
1 liter food
2 liters food
2 liters food
1.5 liters food
1.5 liters food
2.5 liters
2.5 liters
How do you create a new directory in Ruby?
1 Mark(s)
Your Answer:
Using Dir.create method
Using Dir.create method
Using Dir.new method
Using Dir.new method
Using Dir.make method
Using Dir.make method
Using Dir.mkdir method
Using Dir.mkdir method
Which of the given element improve the performance of AI agent so that it can make better decisions?
1 Mark(s)
Your Answer:
Changing Element
Changing Element
Performance Element
Performance Element
Learning Element
Learning Element
None of the above
None of the above
In ∂/∂x(cxn-1), derivative will be:
1 Mark(s)
Your Answer:
ncxn
ncxn
ncxn-1
ncxn-1
cxn
cxn
xcn-1
xcn-1
Where are standard exception classes grouped?
1 Mark(s)
Your Answer:
namespace std
namespace std
error
error
catch
catch
final
final
Which C++ feature allows a function to call itself?
1 Mark(s)
Your Answer:
Polymorphism
Polymorphism
Inheritance
Inheritance
Iteration
Iteration
Recursion
Recursion
What does the usedJsHeapSize property indicate?
1 Mark(s)
Your Answer:
Amount of memory used
Amount of memory used
Amount of memory unused
Amount of memory unused
Amount of memory used & unused
Amount of memory used & unused
None of the mentioned
None of the mentioned
The declaration of the structure is also called as?
1 Mark(s)
Your Answer:
structure creator
structure creator
structure signifier
structure signifier
structure specifier
structure specifier
structure creator & signifier
structure creator & signifier
What is the pickling?
1 Mark(s)
Your Answer:
It is used for object serialization
It is used for object serialization
It is used for object deserialization
It is used for object deserialization
None of the mentioned
None of the mentioned
All of the mentioned
All of the mentioned
Which switch is a multistage switch with micro switches at each stage that route the packets based on the output port represented as a binary string?
1 Mark(s)
Your Answer:
Banyan switch
Banyan switch
Crossbar switch
Crossbar switch
Multistage crossbar
Multistage crossbar
Packet switch
Packet switch
Multivalued dependencies should ________ be eliminated.
1 Mark(s)
Your Answer:
always
always
commonly
commonly
seldom
seldom
never
never
Which command is DDL?
1 Mark(s)
Your Answer:
CREATE
CREATE
SELECT
SELECT
INSERT
INSERT
UPDATE
UPDATE
An ellipse longest diameter is:
1 Mark(s)
Your Answer:
major axis
major axis
minor axis
minor axis
semimajor axis
semimajor axis
semiminor axis
semiminor axis
Just like the SQL update privilege, the privilege that is granted on specific attributes, is:
1 Mark(s)
Your Answer:
Insert privilege
Insert privilege
References privilege
References privilege
Execute privilege
Execute privilege
Select privilege
Select privilege
To go to the beginning of a text line press__________________?
1 Mark(s)
Your Answer:
Home
Home
Page up
Page up
Enter
Enter
None of these
None of these
Which data structure is most suitable for implementing an undo feature in an application?
1 Mark(s)
Your Answer:
Queue
Queue
Linked List
Linked List
Hash Table
Hash Table
Stack
Stack
Which is the Text Styling feature in MS-Word?
1 Mark(s)
Your Answer:
Word style
Word style
Word design
Word design
Word art
Word art
Design
Design
The split size is normally the size of a . . . . . . . . block, which is appropriate for most applications.
1 Mark(s)
Your Answer:
Generic
Generic
Task
Task
Library
Library
HDFS
HDFS
In Computer, which shortcut key is used to refresh the current program window?
1 Mark(s)
Your Answer:
F2
F2
F5
F5
Ctrl+D
Ctrl+D
Ctrl+A Answer
Ctrl+A Answer
What is the purpose of Hadoop's Ranger KMS (Key Management Service) in a Hadoop security setup?
1 Mark(s)
Your Answer:
Managing and securing encryption keys
Managing and securing encryption keys
Enabling speculative execution in MapReduce
Enabling speculative execution in MapReduce
Increasing the replication factor of HDFS blocks
Increasing the replication factor of HDFS blocks
Disabling block-level access control
Disabling block-level access control
Which of the following is used in hash tables to determine the index of any input record?
1 Mark(s)
Your Answer:
hash function
hash function
hash linked list
hash linked list
hash tree
hash tree
hash chaining
hash chaining
Which among the given options is the right explanation for the statement size_t strcspn(c, s)?
1 Mark(s)
Your Answer:
return length of prefix of s consisting of characters not in c
return length of prefix of s consisting of characters not in c
return length of prefix of s consisting of characters present in c
return length of prefix of s consisting of characters present in c
return length of prefix of c consisting of characters not in s
return length of prefix of c consisting of characters not in s
return length of prefix of c consisting of characters present in s
return length of prefix of c consisting of characters present in s
In Java, which classes are used for autoboxing and unboxing operations?
1 Mark(s)
Your Answer:
Exception classes (e.g., `RuntimeException`)
Exception classes (e.g., `RuntimeException`)
Wrapper classes (e.g., `Integer`, `Double`)
Wrapper classes (e.g., `Integer`, `Double`)
Collection classes (e.g., `ArrayList`, `HashMap`)
Collection classes (e.g., `ArrayList`, `HashMap`)
None of These
None of These
Which of the following calls the function using pointer?
1 Mark(s)
Your Answer:
p(5,10);
p(5,10);
(*p)(5,10);
(*p)(5,10);
Both A and B
Both A and B
None
None
The SQL operations union, intersect, and except operate on:
1 Mark(s)
Your Answer:
Attributes only
Attributes only
Tuples only
Tuples only
Relations
Relations
Specific data set
Specific data set
Which of the following operating systems does not support more than one program at a time?
1 Mark(s)
Your Answer:
Linux
Linux
Windows
Windows
MAC
MAC
DOS
DOS
Which shortcut key is used to restart the computer?
1 Mark(s)
Your Answer:
Ctrl + F4
Ctrl + F4
Ctrl + Alt + Delete
Ctrl + Alt + Delete
Alt + F6
Alt + F6
None of above
None of above
Which of the following property is used to define whether an element should be resized and, if so, upon what axis?
1 Mark(s)
Your Answer:
axis
axis
resize
resize
set-origin
set-origin
set-axis
set-axis
You connect a host to a switch port, but the new host cannot log into the server that is plugged into the same switch. What could the problem be?
1 Mark(s)
Your Answer:
The router is not configured for the new host.
The router is not configured for the new host.
The VTP configuration on the switch is not updated for the new host.
The VTP configuration on the switch is not updated for the new host.
The host has an invalid MAC address.
The host has an invalid MAC address.
The switch port the host is connected to is not configured to the correct VLAN membership.
The switch port the host is connected to is not configured to the correct VLAN membership.
Which of the following is default prompt for UNIX environment?
1 Mark(s)
Your Answer:
>
>
>>
>>
<
<
<<
<<
Which is an example of WAN?
1 Mark(s)
Your Answer:
Share it
Share it
Mobile broadband connections
Mobile broadband connections
Bluetooth
Bluetooth
VPN
VPN
How are the constants declared?
1 Mark(s)
Your Answer:
const keyword
const keyword
#define preprocessor
#define preprocessor
both const keyword and #define preprocessor
both const keyword and #define preprocessor
$define
$define
Which of the following is not included in document management system?
1 Mark(s)
Your Answer:
word processing
word processing
desktop publishing
desktop publishing
reprographic
reprographic
e-shopping
e-shopping
If abcdefg is the input, the output will be
1 Mark(s)
Your Answer:
abcd
abcd
abc
abc
efg
efg
Garbage
Garbage
OLE DB has two types of data providers: tabular data providers and service providers.
1 Mark(s)
Your Answer:
True
True
False
False
Laplace transform of function f(t)=eatcos(wt) is:
1 Mark(s)
Your Answer:
(s-a)/(s-a)+w
(s-a)/(s-a)+w
(s-a)/((s-a)2+w)
(s-a)/((s-a)2+w)
(s-a)/((s-a)2+w2)
(s-a)/((s-a)2+w2)
s/((s-a)2+w2)
s/((s-a)2+w2)
How is a reference variable declared in C++?
1 Mark(s)
Your Answer:
int *ref
int *ref
int &ref
int &ref
int ref&
int ref&
ref int
ref int
Advanced Mobile Phone Service (AMPS) uses Frequency Division Multiplexing (FDMA) to divide each 25-MHz into:
1 Mark(s)
Your Answer:
3D-kHz
3D-kHz
2D-kHz
2D-kHz
4D-kHz
4D-kHz
5D-kHz
5D-kHz
Which command is used with vi editor to save file and remain in the editing mode ?
1 Mark(s)
Your Answer:
:q
:q
:w
:w
q!
q!
?
?
To enter the blood vessels, large molecules are:
1 Mark(s)
Your Answer:
burned
burned
digested
digested
ingested
ingested
absorbed
absorbed
What is the main advantage of using encapsulation in Ruby?
1 Mark(s)
Your Answer:
It exposes the internal state of an object and allows unrestricted access
It exposes the internal state of an object and allows unrestricted access
It allows for multiple classes to inherit from each other
It allows for multiple classes to inherit from each other
It hides the internal state of an object and restricts access to it
It hides the internal state of an object and restricts access to it
It allows for objects of different classes to be treated as objects of a common superclass
It allows for objects of different classes to be treated as objects of a common superclass
If n is the length of text(T) and m is the length of the pattern(P) identify the correct pre-processing algorithm. (where q is a suitable modulus to reduce the complexity) p=0; t0=0;
1 Mark(s)
Your Answer:
for i=1 to n do t0=(dt0 + P[i])mod q p=(dp+T[i])mod q
for i=1 to n do t0=(dt0 + P[i])mod q p=(dp+T[i])mod q
for i=1 to n do p=(dp + P[i])mod q t0=(dt0+T[i])mod q
for i=1 to n do p=(dp + P[i])mod q t0=(dt0+T[i])mod q
for i=1 to m do t0=(dp + P[i])mod q p=(dt0+T[i])mod q
for i=1 to m do t0=(dp + P[i])mod q p=(dt0+T[i])mod q
for i=1 to m do p=(dp + P[i])mod q t0=(dt0+T[i])mod q
for i=1 to m do p=(dp + P[i])mod q t0=(dt0+T[i])mod q
What is the return type of lambda expression?
1 Mark(s)
Your Answer:
String
String
Object
Object
void
void
Function
Function
Data manipulation language (DML) commands are used to define a database, including creating, altering, and dropping tables and establishing constraints.
1 Mark(s)
Your Answer:
True
True
False
False
In Hadoop, what is the purpose of the Hadoop NLineInputFormat?
1 Mark(s)
Your Answer:
Process data in compressed formats
Process data in compressed formats
Read and parse text-based input data
Read and parse text-based input data
Sort and shuffle data
Sort and shuffle data
Aggregate values on the reducer side
Aggregate values on the reducer side
What happens if you forget to update the next pointer of a node when deleting it in a singly linked list?
1 Mark(s)
Your Answer:
The node remains in the list
The node remains in the list
The list becomes circular
The list becomes circular
The next node's data is lost
The next node's data is lost
The list becomes corrupted
The list becomes corrupted
In which Tab “Ruler” is available?
1 Mark(s)
Your Answer:
Home Tab
Home Tab
Insert Tab
Insert Tab
Review Tab
Review Tab
View Tab
View Tab
In Apache NiFi, what does the term "processor" refer to?
1 Mark(s)
Your Answer:
Perform data analytics in Hadoop
Perform data analytics in Hadoop
Manage computation resources
Manage computation resources
Execute MapReduce jobs
Execute MapReduce jobs
A fundamental building block for data flows
A fundamental building block for data flows
What is the priority of the thread in the following Java Program? class multithreaded_programing { public static void main(String args[]) { Thread t = Thread.currentThread(); System.out.println(t); } }
1 Mark(s)
Your Answer:
4
4
5
5
0
0
1
1
Which one of the following is the correct way of declaring a namespace?
1 Mark(s)
Your Answer:
namespace my;
namespace my;
namespace my();
namespace my();
my namespace;
my namespace;
namespace(my);
namespace(my);
What is the output when we execute list("hello")?
1 Mark(s)
Your Answer:
['h', 'e', 'l', 'l', 'o']
['h', 'e', 'l', 'l', 'o']
['hello']
['hello']
['llo']
['llo']
['olleh']
['olleh']
Keys made up of two or more attributes are called composite keys.
1 Mark(s)
Your Answer:
True
True
False
False
Solar energy is harnessed using:
1 Mark(s)
Your Answer:
A) solar cells
A) solar cells
B) turbines
B) turbines
C) dams
C) dams
D) geothermal wells.
D) geothermal wells.
The fastest read/write time and most efficient data storage of any disk array type is:
1 Mark(s)
Your Answer:
RAID-0
RAID-0
RAID-1
RAID-1
RAID-2
RAID-2
RAID-3
RAID-3
In Flume, what is the purpose of a Flume Channel?
1 Mark(s)
Your Answer:
Store intermediate data
Store intermediate data
Collect and transport data
Collect and transport data
Execute MapReduce jobs
Execute MapReduce jobs
None of the above
None of the above
Single cotton fibre being as thick as thumb would be:
1 Mark(s)
Your Answer:
100 m long
100 m long
1000 m long
1000 m long
10 m long
10 m long
1 m long
1 m long
Which of the following is a more compact binary format?
1 Mark(s)
Your Answer:
TCompactProtocol
TCompactProtocol
TDenseProtocol
TDenseProtocol
TBinaryProtocol
TBinaryProtocol
TSimpleJSONProtocol
TSimpleJSONProtocol
The main system board of a computer is called the _______________________?
1 Mark(s)
Your Answer:
integrated circuit
integrated circuit
mother board
mother board
processor
processor
microchip
microchip
The HDFS client software implements . . . . . . . . checking on the contents of HDFS files.
1 Mark(s)
Your Answer:
metastore
metastore
parity
parity
checksum
checksum
none of the mentioned
none of the mentioned
Which of below is not a dependency management tool?
1 Mark(s)
Your Answer:
Ant
Ant
Maven
Maven
Gradle
Gradle
Jenkins
Jenkins
What is the limit of a PHP integer value?
1 Mark(s)
Your Answer:
16384
16384
65536
65536
1048576
1048576
2147483647
2147483647
The object of ________________within an OO system is to design tests that have a high likelihood of uncovering plausible bugs ?
1 Mark(s)
Your Answer:
Fault-based testing
Fault-based testing
Integration testing
Integration testing
Use-based testing
Use-based testing
Scenario-based testing
Scenario-based testing
What is a Microsoft PowerPoint?
1 Mark(s)
Your Answer:
Spreadsheet Program
Spreadsheet Program
Presentation Program
Presentation Program
Database Program
Database Program
All of the above
All of the above
On a simplex data link, which of the following is a possible error recovery technique?
1 Mark(s)
Your Answer:
Backward error correction (BEC)
Backward error correction (BEC)
The use of hamming codes
The use of hamming codes
Automatic Repeat Request (ARQ)
Automatic Repeat Request (ARQ)
Downward error correction (DEC)
Downward error correction (DEC)
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.