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
:
02
:
00
Q:
1
/
69
🤖
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 7
Exam Duration:
01:02:00
Ruby Mock Test 7
: Question
1
of 69
If we implement heap as min-heap, deleting root node (value 1)from the heap. What would be the value of root node after second iteration if leaf node (value 100) is chosen to replace the root at start.
1 Mark(s)
Your Answer:
2
2
100
100
17
17
3
3
What does the utc method do for a Time object in Ruby?
1 Mark(s)
Your Answer:
Converts the Time object to the number of seconds since the Unix epoch
Converts the Time object to the number of seconds since the Unix epoch
Returns the time zone of the Time object
Returns the time zone of the Time object
Converts the Time object to the user's local time zone
Converts the Time object to the user's local time zone
Converts the Time object to Coordinated Universal Time (UTC)
Converts the Time object to Coordinated Universal Time (UTC)
What is the recommended way to handle sensitive information, such as API keys, in Ruby projects?
1 Mark(s)
Your Answer:
Store them in environment variables
Store them in environment variables
Embed them directly in the code
Embed them directly in the code
Include them in a separate configuration file
Include them in a separate configuration file
Store them in the source code as comments
Store them in the source code as comments
Once the connection is set up, the program can send SQL commands to the database by using:
1 Mark(s)
Your Answer:
SQLExcelConn
SQLExcelConn
SQLExcelDirect
SQLExcelDirect
SQLDirect
SQLDirect
SQlConnect
SQlConnect
Segmentation and reassembly is the responsibility of:
1 Mark(s)
Your Answer:
7th layer
7th layer
6th layer
6th layer
5th layer
5th layer
4th layer
4th layer
The FTP functions are used to ....... files from file servers.
1 Mark(s)
Your Answer:
Open
Open
Download
Download
Close
Close
Upload
Upload
All of above
All of above
All the outgoing packets go through Network Address Translation (NAT) router, which replaces the source address in the packet with:
1 Mark(s)
Your Answer:
destination address
destination address
global NAT address
global NAT address
local NAT address
local NAT address
absolute NAT address
absolute NAT address
The 4GT Model is a package of _________________?
1 Mark(s)
Your Answer:
CASE Tools
CASE Tools
Software tools
Software tools
Software Programs
Software Programs
None of the mentioned
None of the mentioned
Which of the following helps to reduce spelling error in the document?
1 Mark(s)
Your Answer:
Auto Format
Auto Format
Auto Correct
Auto Correct
Smart Tags
Smart Tags
Auto Text
Auto Text
The term "DFD" stands for?
1 Mark(s)
Your Answer:
Data file diagram
Data file diagram
Data flow document
Data flow document
Data flow diagram
Data flow diagram
None of the above
None of the above
The ports ranging from 1024 to 49,151 are called:
1 Mark(s)
Your Answer:
registered ports
registered ports
well-known ports
well-known ports
dynamic ports
dynamic ports
data ports
data ports
Excel displays the current cells address in the __________?
1 Mark(s)
Your Answer:
Formula bar
Formula bar
Status bar
Status bar
Name box
Name box
Title bar
Title bar
Which of the following occurs when a transaction rereads data and finds new rows that were inserted by a command transaction since the prior read?
1 Mark(s)
Your Answer:
Nonrepeatable read
Nonrepeatable read
Phantom read
Phantom read
Dirty read
Dirty read
Consistent read
Consistent read
What is the key disadvantage of linear search compared to binary search?
1 Mark(s)
Your Answer:
It requires additional memory.
It requires additional memory.
It is not efficient for small arrays.
It is not efficient for small arrays.
It has higher time complexity.
It has higher time complexity.
It requires sorted data.
It requires sorted data.
In which part of computer execution of instructions done?
1 Mark(s)
Your Answer:
Control Unit
Control Unit
Main Memory
Main Memory
ALU
ALU
None of these
None of these
Which of the following is true about this pointer?
1 Mark(s)
Your Answer:
It is passed as a hidden argument to all function calls
It is passed as a hidden argument to all function calls
It is passed as a hidden argument to all static functions
It is passed as a hidden argument to all static functions
None of the above
None of the above
The natural home of an organism is known as:
1 Mark(s)
Your Answer:
house
house
habitat
habitat
place
place
pond
pond
Yarn from draft cylinders to wounding on tube cylinder passes through:
1 Mark(s)
Your Answer:
yarn guide
yarn guide
traveler
traveler
both a and b
both a and b
conveyor
conveyor
The losses occurring in the core of the transformer that produces sound and vibrations is known as:
1 Mark(s)
Your Answer:
Humming losses
Humming losses
Hysteresis losses
Hysteresis losses
Iron losses
Iron losses
Copper losses
Copper losses
Which of these is a superclass of all Adapter classes?
1 Mark(s)
Your Answer:
Applet
Applet
ComponentEvent
ComponentEvent
Event
Event
InputEvent
InputEvent
A charge particle moving with particular velocity perpendicular to a uniform magnetic field will travel:
1 Mark(s)
Your Answer:
linearly
linearly
in circle
in circle
elliptical
elliptical
randomly
randomly
The "F" in RFM analysis stands for ________ .
1 Mark(s)
Your Answer:
frequently
frequently
freshness
freshness
fast food
fast food
fantasy
fantasy
Which of the following is true about the finally clause in exception handling?
1 Mark(s)
Your Answer:
The code in the finally block always executes, regardless of whether an exception is raised or not
The code in the finally block always executes, regardless of whether an exception is raised or not
The finally block should always come before the try block
The finally block should always come before the try block
The finally block is optional
The finally block is optional
The code in the finally block executes only if an exception is caught
The code in the finally block executes only if an exception is caught
. . . . . . . . is a simple xUnit framework that enables you to easily test your Pig scripts.
1 Mark(s)
Your Answer:
PigUnit
PigUnit
PigXUnit
PigXUnit
PigUnitX
PigUnitX
All of the mentioned
All of the mentioned
Who develop the idea for universal turing machines which become the basis for the first computer?
1 Mark(s)
Your Answer:
Bill gates
Bill gates
Alan Turing
Alan Turing
Babbage
Babbage
None of these
None of these
The bytes in the original datagram of Internet Protocol Version (IPv4) are numbered from:
1 Mark(s)
Your Answer:
0 to 2999
0 to 2999
0 to 3999
0 to 3999
0 to 4999
0 to 4999
0 to 5999
0 to 5999
What is the syntax for declaring a function that takes a variable number of arguments in C++?
1 Mark(s)
Your Answer:
returnType functionName(var_args...);
returnType functionName(var_args...);
returnType functionName(var_args...); { body; }
returnType functionName(var_args...); { body; }
returnType functionName(..., var_args);
returnType functionName(..., var_args);
returnType functionName(...);
returnType functionName(...);
In mulit-list organization
1 Mark(s)
Your Answer:
Records that have equivalent value for a given secondary index item are linked together to form a list.
Records that have equivalent value for a given secondary index item are linked together to form a list.
Records are loaded in ordered sequence defined by collating sequence by content of the key
Records are loaded in ordered sequence defined by collating sequence by content of the key
Records are directly accessed by record key field
Records are directly accessed by record key field
None of the above
None of the above
Independent data marts are often created because an organization focuses on a series of short-term business objectives.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following handles painting the content on to the screen?
1 Mark(s)
Your Answer:
Rendering engine
Rendering engine
JavaScript Interpreter
JavaScript Interpreter
UI Layer
UI Layer
Network Layer
Network Layer
Extension of a Word file is:
1 Mark(s)
Your Answer:
.txt
.txt
.docx
.docx
.xlsx
.xlsx
.pdf
.pdf
How do you pass arguments to a method in Ruby?
1 Mark(s)
Your Answer:
method_name(arg1, arg2)
method_name(arg1, arg2)
method_name { arg1, arg2 }
method_name { arg1, arg2 }
method_name.with(arg1, arg2)
method_name.with(arg1, arg2)
method_name arg1 arg2
method_name arg1 arg2
Which namespace is commonly used for building Windows Forms Applications in C#?
1 Mark(s)
Your Answer:
System.IO
System.IO
System.Data
System.Data
System.Net
System.Net
System.Windows.Forms
System.Windows.Forms
A Boolean data type that can take values true, false, and unknown, was introduced in:
1 Mark(s)
Your Answer:
SQL:1998
SQL:1998
SQL:1998
SQL:1998
SQL:1999
SQL:1999
SQL:2000
SQL:2000
The name of the Page object?s property that determines if a Web page is being requested without data being submitted to server is called:
1 Mark(s)
Your Answer:
IsCallback
IsCallback
IsReusable
IsReusable
IsValid
IsValid
IsPostBack
IsPostBack
AI stands for:
1 Mark(s)
Your Answer:
Artificial Intelligence
Artificial Intelligence
Automated Intelligence
Automated Intelligence
Active Interface
Active Interface
Applied Information
Applied Information
Which library allows mathematical functions like pow() and sqrt()?
1 Mark(s)
Your Answer:
The Boolean operator which combines search terms so that each search result contains at least one of the terms, is:
1 Mark(s)
Your Answer:
and operator
and operator
not operator
not operator
or operator
or operator
nor operator
nor operator
Harvard architecture uses:
1 Mark(s)
Your Answer:
Unified memory
Unified memory
Separate memory
Separate memory
Unified bus
Unified bus
No bus
No bus
What will be the output of the following Python code? def sayHello(): print('Hello World!') sayHello() sayHello()
1 Mark(s)
Your Answer:
Hello World! Hello World!
Hello World! Hello World!
'Hello World!' 'Hello World!'
'Hello World!' 'Hello World!'
Hello Hello
Hello Hello
None of the mentioned
None of the mentioned
What all gets printed when the following program is compiled and run. public class Test{ public static void main(String args[]){ int i, j=1; i = (j>1)?2:1; switch(i){ case 0: System.out.println(0); break; case 1: System.out.println(1); case 2: System.out.println(2); break; case 3: System.out.println(3); break; } } }
1 Mark(s)
Your Answer:
0
0
1
1
2
2
3
3
1 2
1 2
What is the maximum number of ways in which a boolean expression with n + 1 terms can be parenthesized, such that the output is true?
1 Mark(s)
Your Answer:
nth catalan number
nth catalan number
n factorial
n factorial
n cube
n cube
n square
n square
How can you prevent a module from executing code when imported?
1 Mark(s)
Your Answer:
By using the if __name__ == "__main__": construct
By using the if __name__ == "__main__": construct
By using the noexec keyword
By using the noexec keyword
By using the prevent_execute decorator
By using the prevent_execute decorator
By using the not_executed function
By using the not_executed function
When a copy constructor is called?
1 Mark(s)
Your Answer:
When an object of the class is returned by value
When an object of the class is returned by value
When an object of the class is passed by value to a function
When an object of the class is passed by value to a function
When an object is constructed based on another object of the same class
When an object is constructed based on another object of the same class
All of the mentioned
All of the mentioned
What will be the output after compiling and executing the following code? public class Test implements Runnable{ public static void main(String[] args) throws InterruptedException{ Thread a = new Thread(new Test()); a.start(); System.out.print("Begin"); a.join(); System.out.print("End"); } public void run(){ System.out.print("Run"); } }
1 Mark(s)
Your Answer:
Compilation fails.
Compilation fails.
An exception is thrown at runtime.
An exception is thrown at runtime.
"BeginRunEnd" is printed.
"BeginRunEnd" is printed.
"BeginEndRun" is printed.
"BeginEndRun" is printed.
"BeginEnd" is printed.
"BeginEnd" is printed.
Computer data transmission mode in which data can travel in both directions simultaneously is called:
1 Mark(s)
Your Answer:
full duplex mode
full duplex mode
half duplex mode
half duplex mode
simplex mode
simplex mode
duplex mode
duplex mode
What is the function of CTRL+N in Microsoft Word?
1 Mark(s)
Your Answer:
Save Document
Save Document
Open Document
Open Document
New Document
New Document
Close Document
Close Document
What happens when this C++ program is compiled? #include <iostream> #include <string> #include <cstdlib> using namespace std; class A { int a; public: A(){} }; class B: public A { int b; public: B(){} }; void func() { B b; throw b; } int main() { try{ func(); } catch(A a){ cout<<"Caught A Class\n"; } catch(B b){ cout<<"Caught B Class\n"; } }
1 Mark(s)
Your Answer:
The program compiles successfully without any errors or warnings
The program compiles successfully without any errors or warnings
Compile-time error occurs
Compile-time error occurs
The program compiles successfully with warnings
The program compiles successfully with warnings
The program gives both errors and warnings
The program gives both errors and warnings
If the programmers want the output to be a data frame or a vector, then . . . . . . . . function is used.
1 Mark(s)
Your Answer:
Lapply
Lapply
Sapply
Sapply
Vapply
Vapply
Zapply
Zapply
Which of the following property defines the number of columns in a multicolumn text flow?
1 Mark(s)
Your Answer:
columns
columns
column-flow
column-flow
column-number
column-number
column-count
column-count
The part of the eye that is a messenger of electro-chemical signals from eye to the brain is:
1 Mark(s)
Your Answer:
blood vessel
blood vessel
optic nerve
optic nerve
iris
iris
cornea
cornea
Consider the markup and answer the question that follow. Which HTML5 element can replace the "?" ?
1 Mark(s)
Your Answer:
<audio>
<audio>
<video>
<video>
<media>
<media>
both <audio> & <video>
both <audio> & <video>
What is the running time of Bellmann Ford Algorithm?
1 Mark(s)
Your Answer:
O(V)
O(V)
O(V2)
O(V2)
O(ElogV)
O(ElogV)
O(VE)
O(VE)
If a slit of width 'a' is illuminated by white light, then value of 'a' at which the first minimum for red light of wavelength 650 nm appears at θ=15°, is:
1 Mark(s)
Your Answer:
25 µm
25 µm
2.5 µm
2.5 µm
250 µm
250 µm
25 m
25 m
The fundamental oscillations occur at wavenumbers less than:
1 Mark(s)
Your Answer:
1000
1000
2000
2000
3000
3000
4000
4000
From melt or more concentrated solution, bulk crystallization of polymers lead to:
1 Mark(s)
Your Answer:
heavy structure
heavy structure
spherulitic structure
spherulitic structure
round structure
round structure
strong structure
strong structure
The number of cross point needed for 10 lines in a cross point switch which is full duplex in nature and there are no self connection is
1 Mark(s)
Your Answer:
100
100
45
45
50
50
90
90
Which of the following is a risk associated with using hypertext in web applications?
1 Mark(s)
Your Answer:
Loss of sense of locality and direction
Loss of sense of locality and direction
Cognitive overload for users
Cognitive overload for users
All of the mentioned
All of the mentioned
None of the mentioned
None of the mentioned
Storage device found inside the computer__________________?
1 Mark(s)
Your Answer:
CD ROM
CD ROM
Zip disk
Zip disk
Super disk
Super disk
Hard disk
Hard disk
What does the term "inheritance" refer to in Ruby?
1 Mark(s)
Your Answer:
A mechanism by which a class can create multiple instances of another class
A mechanism by which a class can create multiple instances of another class
A mechanism by which a class can hide implementation details from another class
A mechanism by which a class can hide implementation details from another class
A mechanism by which a class can inherit properties and behaviors from another class
A mechanism by which a class can inherit properties and behaviors from another class
A mechanism by which a class can override methods from another class
A mechanism by which a class can override methods from another class
Ignite is a unified . . . . . . . . data fabric providing high-performance, distributed in-memory data management.
1 Mark(s)
Your Answer:
Column
Column
In-Memory
In-Memory
Row oriented
Row oriented
All of the mentioned
All of the mentioned
Which of the following selector in jQuery is used to select the elements with lesser index value than the value of its index parameter?
1 Mark(s)
Your Answer:
jQuery :lt() selector
jQuery :lt() selector
jQuery :gt() selector
jQuery :gt() selector
jQuery :lang() selector
jQuery :lang() selector
jQuery :nth-child selector
jQuery :nth-child selector
An element used as fuel, and will become the future overall fuel is known as:
1 Mark(s)
Your Answer:
hydrogen
hydrogen
neon
neon
phosphorus
phosphorus
helium
helium
Which of the following is NOT part of STL?
1 Mark(s)
Your Answer:
Container
Container
Iterator
Iterator
Algorithm
Algorithm
Exception handling
Exception handling
What is the size of the 'bool' data type in C++?
1 Mark(s)
Your Answer:
2 bytes
2 bytes
4 bytes
4 bytes
Compiler-dependent
Compiler-dependent
1 byte
1 byte
In Hadoop, what does the term "InputSplit" represent?
1 Mark(s)
Your Answer:
Represents a chunk of input data
Represents a chunk of input data
Sort and shuffle data
Sort and shuffle data
Aggregate values on the reducer side
Aggregate values on the reducer side
Convert data into a binary format
Convert data into a binary format
Conversion of the digital signal to an analog signal is:
1 Mark(s)
Your Answer:
modulation
modulation
demodulation
demodulation
encapsulation
encapsulation
bypass
bypass
Oxidation is accompanied by:
1 Mark(s)
Your Answer:
volume
volume
heat & light
heat & light
light
light
heat
heat
What will be the output of the following C# code snippet? public class A { public int x; public int y; public void display() { Console.WriteLine(x + " " + y); } } class Program { static void Main(string[] args) { A obj1 = new A(); A obj2 = new A(); obj1.x = 1; obj1.y = 2; obj2 = obj1; obj1.display(); obj2.display(); } }
1 Mark(s)
Your Answer:
1 2 0 0
1 2 0 0
1 2 1 2
1 2 1 2
0 0 0 0
0 0 0 0
Run time exception
Run time exception
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.