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
00
:
55
:
00
Q:
1
/
61
🤖
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 10
Exam Duration:
00:55:00
Ruby Mock Test 10
: Question
1
of 61
The main job of a CPU is to_____________________________?
1 Mark(s)
Your Answer:
carry out program instructions
carry out program instructions
store data / information for future use
store data / information for future use
process data and information
process data and information
both (A) and (B)
both (A) and (B)
What is the correct way to define a conditional statement in Ruby?
1 Mark(s)
Your Answer:
if (condition) { code }
if (condition) { code }
if condition then code end
if condition then code end
if condition: code
if condition: code
when condition; code
when condition; code
Which flag is used to compile client programs that use MySQL header files?
1 Mark(s)
Your Answer:
-O
-O
-I
-I
-U
-U
-A
-A
Bootstrap does not use . . . . . . . .
1 Mark(s)
Your Answer:
HTML
HTML
jQuery
jQuery
PHP
PHP
CSS
CSS
A method is:
1 Mark(s)
Your Answer:
A named sequence of statement
A named sequence of statement
A decision statement
A decision statement
An iteration structure
An iteration structure
It is member of a class not of an object
It is member of a class not of an object
What is the purpose of the `quote()` method in Java regular expressions?
1 Mark(s)
Your Answer:
It returns a literal pattern string for the specified string
It returns a literal pattern string for the specified string
It quotes a matched subsequence
It quotes a matched subsequence
It compiles a regular expression
It compiles a regular expression
It checks if a string matches the pattern
It checks if a string matches the pattern
Which of the following is an example of a problem where Dynamic Programming is particularly useful?
1 Mark(s)
Your Answer:
Merge Sort
Merge Sort
Heap Sort
Heap Sort
Binary Search
Binary Search
Longest Increasing Subsequence
Longest Increasing Subsequence
What is the purpose of Apache Ambari in the Hadoop ecosystem?
1 Mark(s)
Your Answer:
Data processing
Data processing
Data integration
Data integration
Cluster management and monitoring
Cluster management and monitoring
Scripting in Hadoop
Scripting in Hadoop
Which of the following moves an element from its current position?
1 Mark(s)
Your Answer:
rotate()
rotate()
translate()
translate()
scale()
scale()
matrix()
matrix()
Thermal conductivity of Aluminium is equals to:
1 Mark(s)
Your Answer:
235 k(W/m.K)
235 k(W/m.K)
401 k(W/m.K)
401 k(W/m.K)
428 k(W/m.K)
428 k(W/m.K)
0.026 k(W/m.K)
0.026 k(W/m.K)
What is true about an XML layout file?
1 Mark(s)
Your Answer:
Used to draw Activity content
Used to draw Activity content
A layout PNG image file
A layout PNG image file
Both A & B
Both A & B
Contains application permissions
Contains application permissions
Which of the following is/are a PHP code editor? 1. Notepad 2. Notepad++ 3. Adobe Dreamweaver 4. PDT
1 Mark(s)
Your Answer:
Only 4
Only 4
All of the mentioned
All of the mentioned
1, 2 and 3
1, 2 and 3
Only 3
Only 3
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 is the output of the given code? variable = false if variable print "false" elsif !variable print "true" end
1 Mark(s)
Your Answer:
False
False
True
True
Syntax error
Syntax error
None of the mentioned
None of the mentioned
Which concept in OOP allows objects to exhibit multiple behaviors based on their types or class?
1 Mark(s)
Your Answer:
Abstraction
Abstraction
Inheritance
Inheritance
Encapsulation
Encapsulation
Polymorphism
Polymorphism
How can you handle dynamic content loaded by JavaScript in web scraping?
1 Mark(s)
Your Answer:
By using the requests library
By using the requests library
By manually entering the data
By manually entering the data
By using a headless browser
By using a headless browser
By disabling JavaScript in the browser
By disabling JavaScript in the browser
The searching phase in quick search algorithm has good practical behaviour.
1 Mark(s)
Your Answer:
true
true
false
false
$(this) in jQuery is used when -
1 Mark(s)
Your Answer:
an HTML element references the entire document
an HTML element references the entire document
an HTML element references its own action
an HTML element references its own action
an HTML element references the action of its parent element
an HTML element references the action of its parent element
All of the above
All of the above
In the Go-Back-N Protocol, the sequence numbers are modulo:
1 Mark(s)
Your Answer:
2m
2m
2m+1
2m+1
2n
2n
2n+1
2n+1
_____ computers are also called personal computers.
1 Mark(s)
Your Answer:
Super Computers
Super Computers
Mini Computers
Mini Computers
Micro Computers
Micro Computers
Mainframe Computers
Mainframe Computers
The other columns are inactive when you’ve select three columns. How will you activate those boxes?
1 Mark(s)
Your Answer:
Double Click on Spacing Box
Double Click on Spacing Box
Remove Mark from Equal Column width Check Box
Remove Mark from Equal Column width Check Box
Double Click on Inactive Column
Double Click on Inactive Column
Remove Mark from Line between Check Box Answer
Remove Mark from Line between Check Box Answer
In Ruby, what is the difference between a proc and a lambda?
1 Mark(s)
Your Answer:
Procs perform strict argument checking, while lambdas do not
Procs perform strict argument checking, while lambdas do not
Lambdas can accept a variable number of arguments, while procs cannot
Lambdas can accept a variable number of arguments, while procs cannot
Lambdas perform strict argument checking, while procs do not
Lambdas perform strict argument checking, while procs do not
Procs can accept a variable number of arguments, while lambdas cannot
Procs can accept a variable number of arguments, while lambdas cannot
For what purposes are views used?
1 Mark(s)
Your Answer:
To hide columns only
To hide columns only
To hide rows only
To hide rows only
To hide complicated SQL statements only
To hide complicated SQL statements only
All of the above are uses for SQL views.
All of the above are uses for SQL views.
What will be the output of the following C# code? int i, j = 1, k; for (i = 0; i < 3; i++) { k = j++ - ++j; Console.Write(k + " "); }
1 Mark(s)
Your Answer:
-4 -3 -2
-4 -3 -2
-6 -4 -1
-6 -4 -1
-2 -2 -2
-2 -2 -2
-4 -4 -4
-4 -4 -4
Which of the following is not example of block element?
1 Mark(s)
Your Answer:
<h1>
<h1>
<ul>
<ul>
<p>
<p>
<a>
<a>
If we press the F8 key thrice in MS Word, We will?
1 Mark(s)
Your Answer:
Automatically align the text
Automatically align the text
select a paragraph
select a paragraph
Select a sentence
Select a sentence
None of these
None of these
What is the result of the following code snippet? try { int result = 10 / 0; } catch (ArithmeticException e) { System.out.println("Arithmetic Exception!"); } finally { System.out.println("Finally Block!"); }
1 Mark(s)
Your Answer:
No output
No output
Finally Block!
Finally Block!
Arithmetic Exception!
Arithmetic Exception!
Arithmetic Exception! Finally Block!
Arithmetic Exception! Finally Block!
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstring> using namespace std; int main(int argc, char const *argv[]) { string s("a"); cout<<s; return 0; }
1 Mark(s)
Your Answer:
a
a
empty string
empty string
Error
Error
Segmentation fault
Segmentation fault
What is the property to access the first child of a node?
1 Mark(s)
Your Answer:
timestamp.Child1
timestamp.Child1
timestamp.Child(1)
timestamp.Child(1)
timestamp.Child(0)
timestamp.Child(0)
timestamp.firstChild
timestamp.firstChild
Which of the following technique stores data separately in case of a collision?
1 Mark(s)
Your Answer:
Open addressing
Open addressing
Double hashing
Double hashing
Quadratic probing
Quadratic probing
Chaining using a binary tree
Chaining using a binary tree
What will be the output of the following C# code? static void Main(string[] args) { int i = 0; int j = 0; for (i = 0; i < 4; i++) { for (j = 0; j < 3; j++) { if (i > 1) continue; Console.WriteLine("Hi \n"); } } Console.ReadLine(); }
1 Mark(s)
Your Answer:
Prints hi 4 times
Prints hi 4 times
Prints hi 3 times
Prints hi 3 times
Prints hi 6 times
Prints hi 6 times
Prints hi infinite times
Prints hi infinite times
In Multilevel Frequency Shift Keying (MFSK), to send 3 bits at a time we can use:
1 Mark(s)
Your Answer:
2 frequencies
2 frequencies
4 frequencies
4 frequencies
8 frequencies
8 frequencies
10 frequencies
10 frequencies
In-Network Management System, maps track each piece of hardware and its connection to the:
1 Mark(s)
Your Answer:
IP Server
IP Server
domain
domain
network
network
data
data
Which is not included in a Font Style in MS-Word?
1 Mark(s)
Your Answer:
Bold
Bold
Italic
Italic
Regular
Regular
Superscript
Superscript
What is the assignment operator in Python?
1 Mark(s)
Your Answer:
==
==
=
=
:=
:=
><
><
A second technique to reduce the routing table and simplify the searching process is called:
1 Mark(s)
Your Answer:
Network-Specific Method
Network-Specific Method
Network-Specific Movement
Network-Specific Movement
Network-Specific Maintenance
Network-Specific Maintenance
Network-Specific Membership
Network-Specific Membership
What does pressure help to explain?
1 Mark(s)
Your Answer:
A) Taste of food
A) Taste of food
B) Movement of planets
B) Movement of planets
C) Air movement and weather events
C) Air movement and weather events
D) Growth of plants
D) Growth of plants
Which among the following feature does not come under the concept of OOPS?
1 Mark(s)
Your Answer:
Data binding
Data binding
Data hiding
Data hiding
Platform independent
Platform independent
Message passing
Message passing
How do you open the Header and Footer toolbar in MS Word?
1 Mark(s)
Your Answer:
On the Insert tab, click Header and Footer
On the Insert tab, click Header and Footer
Right-click any toolbar and click Header and Footer
Right-click any toolbar and click Header and Footer
On the View tab, click Toolbars and select Header and Footer from the list of toolbars
On the View tab, click Toolbars and select Header and Footer from the list of toolbars
None of these
None of these
The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID
1 Mark(s)
Your Answer:
Equi-join
Equi-join
Natural join
Natural join
Outer join
Outer join
Cartesian join
Cartesian join
Which keyword is used to specify that a function will not throw any exceptions in C++?
1 Mark(s)
Your Answer:
nothrow
nothrow
noexcept
noexcept
exception
exception
noexception
noexception
A substance that is broken down into simpler substance by the means of chemical, not physical, is known as:
1 Mark(s)
Your Answer:
atom
atom
compound
compound
molecule
molecule
solution
solution
Enterprise Resource Planning (ERP) is an example of a single user database.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following operators is used for exponentiation in R?
1 Mark(s)
Your Answer:
**
**
^
^
//
//
%^%
%^%
Which of the following is added to link or header element?
1 Mark(s)
Your Answer:
.navbar-default
.navbar-default
.navbar
.navbar
.navbar-btn
.navbar-btn
.navbar-brand
.navbar-brand
A Red wavy line in MS Word indicates that _____?
1 Mark(s)
Your Answer:
Misspelled word/Spelling Error
Misspelled word/Spelling Error
Character mistakes
Character mistakes
Grammatical mistakes
Grammatical mistakes
Spacing mistakes
Spacing mistakes
∂y/∂x=:
1 Mark(s)
Your Answer:
0
0
1
1
∂y⁄∂u⁄∂x⁄∂u
∂y⁄∂u⁄∂x⁄∂u
∂x/∂u/∂y/∂u
∂x/∂u/∂y/∂u
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
Which statement about the 'finally' block in C++ exception handling is true?
1 Mark(s)
Your Answer:
It must always be followed by a 'catch' block
It must always be followed by a 'catch' block
It must always be followed by a 'try' block
It must always be followed by a 'try' block
It is executed regardless of whether an exception is thrown or not
It is executed regardless of whether an exception is thrown or not
It is optional and can be omitted
It is optional and can be omitted
Which of the following keywords is used by the calling function to guard against the exception that is thrown by called function?
1 Mark(s)
Your Answer:
try
try
throw
throw
throws
throws
catch
catch
Which of the following can be operands of arithmetic operators?
1 Mark(s)
Your Answer:
Numeric
Numeric
Boolean
Boolean
Characters
Characters
Both Numeric & Characters
Both Numeric & Characters
SQL has clearly established itself as the standard relational:
1 Mark(s)
Your Answer:
Database process
Database process
Database language
Database language
Database storage
Database storage
Database manager
Database manager
What will be the output of the following Java program? import java.util.*; class Arraylist { public static void main(String args[]) { ArrayList obj = new ArrayList(); obj.add("A"); obj.add("B"); obj.add("C"); obj.add(1, "D"); System.out.println(obj); } }
1 Mark(s)
Your Answer:
[A, B, C, D]
[A, B, C, D]
[A, D, B, C]
[A, D, B, C]
[A, D, C]
[A, D, C]
[A, B, C]
[A, B, C]
Variable name resolution (number of significant characters for the uniqueness of variable) depends on . . . . . . . .
1 Mark(s)
Your Answer:
Compiler and linker implementations
Compiler and linker implementations
Assemblers and loaders implementations
Assemblers and loaders implementations
C language
C language
None of the mentioned
None of the mentioned
Who is father of C Language?
1 Mark(s)
Your Answer:
Bjarne Stroustrup
Bjarne Stroustrup
James A. Gosling
James A. Gosling
Dennis Ritchie
Dennis Ritchie
Dr. E.F. Codd
Dr. E.F. Codd
How can a protected modifier be accessed?
1 Mark(s)
Your Answer:
accessible only within the class
accessible only within the class
accessible only within package
accessible only within package
accessible within package and outside the package but through inheritance only
accessible within package and outside the package but through inheritance only
accessible by all
accessible by all
To run a program this Setup involves an amount of:
1 Mark(s)
Your Answer:
Money
Money
Resources
Resources
Users
Users
Time
Time
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 does Class.forName("myreflection.Foo").getInstance() return?
1 Mark(s)
Your Answer:
An array of Foo objects
An array of Foo objects
class object of Foo
class object of Foo
Calls the getInstance() method of Foo class
Calls the getInstance() method of Foo class
Foo object
Foo object
Which of the following is the operation executed on data stored in registers?
1 Mark(s)
Your Answer:
Byte operation
Byte operation
Bit operation
Bit operation
Macrooperation
Macrooperation
Microoperation
Microoperation
Which of the command is a more drastic option:
1 Mark(s)
Your Answer:
Drop command
Drop command
Eliminate command
Eliminate command
Abort command
Abort command
Delete command
Delete command
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.