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
:
10
:
00
Q:
1
/
78
🤖
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.
Ruby Mock Test 9
Exam Duration:
01:10:00
Ruby Mock Test 9
: Question
1
of 78
What will be the output of the following C++ code? #include <iostream> #include <algorithm> #include <vector> using namespace std; int main () { vector<int> myvector; for (int i = 1; i < 6; ++i) myvector.push_back(i); reverse(myvector.begin(), myvector.end()); for (vector<int> :: iterator it = myvector.begin(); it != myvector.end(); ++it) cout << ' ' << *it; return 0; }
1 Mark(s)
Your Answer:
1 2 3 4 5
1 2 3 4 5
5 4 3 2 1
5 4 3 2 1
0 1 2 3 4
0 1 2 3 4
5 4 1 2 3
5 4 1 2 3
When the child entity is required, we are restricted from creating a new parent row without also creating a corresponding child row at the same time.
1 Mark(s)
Your Answer:
True
True
False
False
The while loop repeats a set of code while the condition is not met?
1 Mark(s)
Your Answer:
True
True
False
False
Locking may cause which of the following problems?
1 Mark(s)
Your Answer:
Erroneous updates
Erroneous updates
Deadlock
Deadlock
Versioning
Versioning
All of the above
All of the above
What will be the output of the following Java program? class A { public int i; public int j; A() { i = 1; j = 2; } } class B extends A { int a; B() { super(); } } class super_use { public static void main(String args[]) { B obj = new B(); System.out.println(obj.i + " " + obj.j) } }
1 Mark(s)
Your Answer:
1 2
1 2
2 1
2 1
Runtime Error
Runtime Error
Compilation Error
Compilation Error
Which of the following applications/software can be used to create a favicon?
1 Mark(s)
Your Answer:
Unity
Unity
Adobe Photoshop
Adobe Photoshop
Dreamweaver
Dreamweaver
VLC
VLC
The liquefied air is put into an apparatus known as:
1 Mark(s)
Your Answer:
non-fractional column
non-fractional column
non-fractional column
non-fractional column
fractional row
fractional row
fractionating column
fractionating column
The jQuery method used to remove the set of matched elements is -
1 Mark(s)
Your Answer:
delete() method
delete() method
empty() method
empty() method
remove() method
remove() method
None of the above
None of the above
Maximum stress that a material can withstand while being stretched or pulled before breaking is called:
1 Mark(s)
Your Answer:
ultimate strength
ultimate strength
yield strength
yield strength
compressive strength
compressive strength
young modulus
young modulus
Consider the following code snippet function f(o) { if (o === undefined) debugger; }
1 Mark(s)
Your Answer:
It does nothing but a simple breakpoint
It does nothing but a simple breakpoint
It debugs the error in that statement and restarts the statement’s execution
It debugs the error in that statement and restarts the statement’s execution
It is used as a keyword that debugs the entire program at once
It is used as a keyword that debugs the entire program at once
All of the mentioned
All of the mentioned
What refers to the externally observable structure of an OO program ?
1 Mark(s)
Your Answer:
Deep structure
Deep structure
Surface structure
Surface structure
Core structure
Core structure
All of the mentioned
All of the mentioned
Which of the following is the product of data processing?
1 Mark(s)
Your Answer:
Information
Information
Data
Data
Software Program
Software Program
System
System
Which of the following is not paper size in MS-Word 2016? Legal, Executive, Landscape, A3
1 Mark(s)
Your Answer:
Legal
Legal
Executive
Executive
Landscape
Landscape
A3
A3
What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i)
1 Mark(s)
Your Answer:
error
error
1 2 3 4
1 2 3 4
a b c d
a b c d
0 1 2 3
0 1 2 3
Which of the following is a design pattern?
1 Mark(s)
Your Answer:
Behavioral
Behavioral
Structural
Structural
Abstract Factory
Abstract Factory
All of the mentioned
All of the mentioned
Can inline functions be defined inside a class?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Only if static
Only if static
Only if friend
Only if friend
The gases in the air can be separated by process of:
1 Mark(s)
Your Answer:
distillation
distillation
evaporation
evaporation
fractional distillation
fractional distillation
decomposition
decomposition
Easy installation is the main advantage of:
1 Mark(s)
Your Answer:
Ring topology
Ring topology
Bus topology
Bus topology
Mesh topology
Mesh topology
Star topology
Star topology
What is the result of the expression (6 + 3) * 2 in Java?
1 Mark(s)
Your Answer:
12
12
15
15
18
18
9
9
When two or more bulbs are connected in same electrical circuit its called:
1 Mark(s)
Your Answer:
parallel circuit
parallel circuit
series circuit
series circuit
multiple circuit
multiple circuit
complex circuit
complex circuit
The true definition by information of Metadata, means:
1 Mark(s)
Your Answer:
Number of columns in the result
Number of columns in the result
Name of a specified column
Name of a specified column
Type of a specified column
Type of a specified column
All of the Above
All of the Above
''Water' is a:
1 Mark(s)
Your Answer:
element
element
compound
compound
mixture
mixture
solute
solute
Batch processing is the execution of series of jobs in a:
1 Mark(s)
Your Answer:
memory
memory
software
software
hardware
hardware
Program
Program
Which protocol is commonly used for file transfer in Java Networking?
1 Mark(s)
Your Answer:
FTP (File Transfer Protocol)
FTP (File Transfer Protocol)
SMTP (Simple Mail Transfer Protocol)
SMTP (Simple Mail Transfer Protocol)
HTTP (Hypertext Transfer Protocol)
HTTP (Hypertext Transfer Protocol)
UDP (User Datagram Protocol)
UDP (User Datagram Protocol)
Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
1 Mark(s)
Your Answer:
false.toString()
false.toString()
String(false)
String(false)
String newvariable=”false”
String newvariable=”false”
Both false.toString() and String(false)
Both false.toString() and String(false)
Selecting a data type involves which of the following?
1 Mark(s)
Your Answer:
Maximize storage space
Maximize storage space
Represent most values
Represent most values
Improve data integrity
Improve data integrity
All of the above.
All of the above.
Hardware components which are used by user to enter data and instructions into the computer are termed as:
1 Mark(s)
Your Answer:
input devices
input devices
output devices
output devices
printer
printer
scanner
scanner
A station in a network forwards incoming packets by placing them on its shortest output queue. What routing algorithm is being used?
1 Mark(s)
Your Answer:
hot potato routing
hot potato routing
flooding
flooding
static routing
static routing
delta routing
delta routing
None of the above
None of the above
Magnetic moment of electron is:
1 Mark(s)
Your Answer:
1.41x10-26 J/T
1.41x10-26 J/T
9.28x10-24 J/T
9.28x10-24 J/T
5.05x10-27 J/T
5.05x10-27 J/T
1.28x10-24 J/T
1.28x10-24 J/T
What is the primary function of the Pig Latin LOAD statement?
1 Mark(s)
Your Answer:
Load data into a relation
Load data into a relation
Perform data analytics in Hadoop
Perform data analytics in Hadoop
Manage computation resources
Manage computation resources
Execute MapReduce jobs
Execute MapReduce jobs
What term will be used when you hold the left key of the mouse on an object and move it on the slide?
1 Mark(s)
Your Answer:
Dragging
Dragging
Moving
Moving
Highlighting
Highlighting
None of the above
None of the above
Time-division multiplexing is designed for:
1 Mark(s)
Your Answer:
digital signals
digital signals
analog signals
analog signals
optical signals
optical signals
magnetic signals
magnetic signals
Which macro is used to check assertions?
1 Mark(s)
Your Answer:
check()
check()
verify()
verify()
assert()
assert()
test()
test()
Specific heat of Silver in joules is:
1 Mark(s)
Your Answer:
386 J/kg.k
386 J/kg.k
128 J/kg.k
128 J/kg.k
236 J/kg.k
236 J/kg.k
900 J/kg.k
900 J/kg.k
When two events occur at same location in an inertial reference frame, time interval between them is called:
1 Mark(s)
Your Answer:
linear time
linear time
time dilation
time dilation
proper time
proper time
fixed time
fixed time
In C++, what is the purpose of the 'do-while' loop?
1 Mark(s)
Your Answer:
Terminates the loop
Terminates the loop
Executes a block of code only once
Executes a block of code only once
Executes a block of code repeatedly until a condition becomes false
Executes a block of code repeatedly until a condition becomes false
Executes a block of code repeatedly until a condition becomes true
Executes a block of code repeatedly until a condition becomes true
Bellmann Ford algorithm was first proposed by . . . . . . . .
1 Mark(s)
Your Answer:
Richard Bellmann
Richard Bellmann
Alfonso Shimbe
Alfonso Shimbe
Lester Ford Jr
Lester Ford Jr
Edward F. Moore
Edward F. Moore
Teeth are eroded by conversion of sugar food into acid by:
1 Mark(s)
Your Answer:
bacteria
bacteria
virus
virus
both a and b
both a and b
fungus
fungus
What is the purpose of the basic validation?
1 Mark(s)
Your Answer:
Data correctness
Data correctness
Mere data existence
Mere data existence
Both Data correctness and Mere data existence
Both Data correctness and Mere data existence
None of the mentioned
None of the mentioned
Quadrature Amplitude Modulation (QAM) is a combination of:
1 Mark(s)
Your Answer:
BPSK and PSK
BPSK and PSK
ASK and BPSK
ASK and BPSK
ASK and PSK
ASK and PSK
BPSK and QPSK
BPSK and QPSK
In MS Word, 'Cross-reference' is used to?
1 Mark(s)
Your Answer:
Compare fonts
Compare fonts
Link to another part of the same document
Link to another part of the same document
Compare two documents
Compare two documents
None of these
None of these
Which traversal algorithm would you use to find the shortest path in an unweighted graph?
1 Mark(s)
Your Answer:
Depth-First Search (DFS)
Depth-First Search (DFS)
Dijkstra's Algorithm
Dijkstra's Algorithm
Breadth-First Search (BFS)
Breadth-First Search (BFS)
Floyd-Warshall Algorithm
Floyd-Warshall Algorithm
Whenever the view relation is accessed, its tuples are created through:
1 Mark(s)
Your Answer:
Execution
Execution
Compiling
Compiling
Storing
Storing
Computing
Computing
The first 3 codes in Internet Protocol Version (IPv4) addresses, the telephone networks define the:
1 Mark(s)
Your Answer:
IP code
IP code
local code
local code
area code
area code
block code
block code
In Pig, what is the purpose of the DISTINCT statement?
1 Mark(s)
Your Answer:
Load data into a relation
Load data into a relation
Filter records based on a condition
Filter records based on a condition
Group data based on a specified key
Group data based on a specified key
Remove duplicate records
Remove duplicate records
Which attribute of the following is related to the font tag?
1 Mark(s)
Your Answer:
face
face
size
size
color
color
All of the above
All of the above
Carbon has the symbol:
1 Mark(s)
Your Answer:
Ca
Ca
Cl
Cl
Cr
Cr
C
C
Plants in deserts have only few stomata to reduce:
1 Mark(s)
Your Answer:
water intake
water intake
water loss
water loss
mineral content
mineral content
oxygen intake
oxygen intake
What type of device is a computer printer ?
1 Mark(s)
Your Answer:
Input
Input
Output
Output
Software
Software
Storage
Storage
The introduction of dead or weekend germs into body orally or by injection so as to train body to fight against the real germ should they attack body is:
1 Mark(s)
Your Answer:
vaccination
vaccination
anticipation
anticipation
immunity
immunity
variation
variation
Initialization of variable can be done by writing _____ operator in between variable name and operand value.
1 Mark(s)
Your Answer:
EQUALS
EQUALS
=
=
VALUE
VALUE
==
==
A set of inter-related components that collect, process, store and distribute information to support decision making and control in an organization best defines_________________?
1 Mark(s)
Your Answer:
a network
a network
hardware
hardware
an information system
an information system
communications technology
communications technology
The system in which the names are defined in an inverted tree structure with the root at the top is called:
1 Mark(s)
Your Answer:
name space
name space
domain name space
domain name space
hierarchical name space
hierarchical name space
flat name space
flat name space
Type of computer memory which is nonvolatile and can't be changed by the user is:
1 Mark(s)
Your Answer:
SRAM
SRAM
DRAM
DRAM
ROM
ROM
RAM
RAM
How do you delete a node from a linked list, given only a pointer to that node?
1 Mark(s)
Your Answer:
Update the head pointer
Update the head pointer
Update the tail pointer
Update the tail pointer
Copy the data from the next node to the current node and delete the next node
Copy the data from the next node to the current node and delete the next node
You cannot delete the node
You cannot delete the node
Density of Mercury is:
1 Mark(s)
Your Answer:
5427 kg/m3
5427 kg/m3
5243 kg/m3
5243 kg/m3
3933 kg/m3
3933 kg/m3
687 kg/m3
687 kg/m3
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.
1 Mark(s)
Your Answer:
start()
start()
run()
run()
init()
init()
go()
go()
Infrared waves, that can be used for short range communication have frequencies between:
1 Mark(s)
Your Answer:
300 GHz to 700 THz
300 GHz to 700 THz
300 GHz to 800 THz
300 GHz to 800 THz
300 GHz to 100 THz
300 GHz to 100 THz
300 GHz to 400 THz
300 GHz to 400 THz
What kind of organisms are studied when examining a single drop of water?
1 Mark(s)
Your Answer:
A) Plants
A) Plants
B) Birds
B) Birds
C) Microorganisms
C) Microorganisms
D) Insects
D) Insects
If speed of wave on a string will increase, wave power will:
1 Mark(s)
Your Answer:
increase
increase
decrease
decrease
become constant
become constant
become zero
become zero
If int arr[5]; what is type of arr+1?
1 Mark(s)
Your Answer:
int*
int*
int
int
int&
int&
int**
int**
The global variable read count is used to keep the track of the number of:
1 Mark(s)
Your Answer:
Client
Client
Server
Server
Writers
Writers
Readers
Readers
A thread library provides the programmer an API for creating and managing:
1 Mark(s)
Your Answer:
Threads
Threads
Operating System
Operating System
Processor
Processor
Memory
Memory
The Carrier Sense Multiple Access/Collision Detection (CSMA/CD) is used to avoid the:
1 Mark(s)
Your Answer:
errors
errors
multiple access
multiple access
point to point access
point to point access
collision
collision
Which of these methods are member of Remote class?
1 Mark(s)
Your Answer:
checkIP()
checkIP()
addLocation()
addLocation()
AddServer()
AddServer()
None of the mentioned
None of the mentioned
What will be the output of the following R code? > x <- list(a = list(10, 12, 14), b = c(3.14, 2.81)) > x[[c(1, 3)]]
1 Mark(s)
Your Answer:
13
13
14
14
15
15
18
18
Magnets will attract each other if they are facing each other with:
1 Mark(s)
Your Answer:
like poles
like poles
unlike poles
unlike poles
S-S poles
S-S poles
N-N poles
N-N poles
Which of the following methods is used to determine whether the specified file exists in C#?
1 Mark(s)
Your Answer:
File.Ensure()
File.Ensure()
File.Verify()
File.Verify()
File.Exists()
File.Exists()
File.Check()
File.Check()
How do you find the length of a linked list?
1 Mark(s)
Your Answer:
Using the length property
Using the length property
Using the size property
Using the size property
Iterating through the list
Iterating through the list
Using the count property
Using the count property
Which of the following is valid declaration of pointer to function returning void and taking no arguments?
1 Mark(s)
Your Answer:
void *p();
void *p();
void (p)();
void (p)();
void p();
void p();
void &p();
void &p();
Define the term verification in V and V model?
1 Mark(s)
Your Answer:
Checking that we are building the system right
Checking that we are building the system right
Making sure that it is what the user wants
Making sure that it is what the user wants
Performed by an independent test team
Performed by an independent test team
Checking that we are building the right system
Checking that we are building the right system
A substance that lacks the characteristics of metals is known as:
1 Mark(s)
Your Answer:
transparent
transparent
non-metal
non-metal
metal
metal
liquid
liquid
Domains can have constraints, such as:
1 Mark(s)
Your Answer:
Like
Like
AS
AS
Valid
Valid
Not Null
Not Null
Let p1 be an integer pointer with a current value of 2000. What is the content of p1 after the expression p1++ has been evaluated?
1 Mark(s)
Your Answer:
2001
2001
2002
2002
2004
2004
2008
2008
What is the purpose of the `javax.servlet.http.HttpSessionBindingEvent` class in Java web applications?
1 Mark(s)
Your Answer:
To define JavaBean properties
To define JavaBean properties
To execute SQL queries
To execute SQL queries
To create JavaBeans
To create JavaBeans
To represent events related to session attribute binding and unbinding
To represent events related to session attribute binding and unbinding
To perform comparison operation on strings supported operations are . . . . . . . .
1 Mark(s)
Your Answer:
Compare()
Compare()
Equals()
Equals()
Assignment '==' operator
Assignment '==' operator
All of the mentioned
All of the mentioned
Carbon dioxide enters a leaf of a plant via:
1 Mark(s)
Your Answer:
stomata
stomata
stem
stem
roots
roots
flowers
flowers
Printer which uses temperature variations to achieve different colors is:
1 Mark(s)
Your Answer:
dye-sublimation
dye-sublimation
thermal-wax
thermal-wax
laser
laser
inkjet
inkjet
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.