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
:
53
:
00
Q:
1
/
59
🤖
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 12
Exam Duration:
00:53:00
Ruby Mock Test 12
: Question
1
of 59
Which one cannot be used to enter data in a cell in MS Excel?
1 Mark(s)
Your Answer:
Pressing tab key
Pressing tab key
Pressing arrow key
Pressing arrow key
Pressing Esc key
Pressing Esc key
clicking the enter button to the formula bar
clicking the enter button to the formula bar
Computer can run without:
1 Mark(s)
Your Answer:
application software
application software
system software
system software
operating system
operating system
Windows
Windows
The ________________ of a specification language indicates how the language represents system requirements?
1 Mark(s)
Your Answer:
semantic domain
semantic domain
syntactic domain
syntactic domain
sequence
sequence
set
set
What is the value of the following 8-bit integer after all statements are executed? int x = 1; x = x << 7; x = x >> 7;
1 Mark(s)
Your Answer:
1
1
-1
-1
127
127
Implementation defined
Implementation defined
What is the primary function of the MapReduce "Sort" phase?
1 Mark(s)
Your Answer:
Sort and shuffle data
Sort and shuffle data
Combine intermediate key-value pairs on the mapper side
Combine intermediate key-value pairs on the mapper side
Aggregate values on the reducer side
Aggregate values on the reducer side
Distribute data to reducers
Distribute data to reducers
What is the primary advantage of open addressing over chaining in hash tables?
1 Mark(s)
Your Answer:
Better handling of collisions.
Better handling of collisions.
Faster search times in all cases.
Faster search times in all cases.
Reduced memory usage.
Reduced memory usage.
Simpler implementation.
Simpler implementation.
A fixed territory in which authority can exercised is?
1 Mark(s)
Your Answer:
Jurisprudence
Jurisprudence
Juristic
Juristic
Jurisdiction
Jurisdiction
None of these Answer
None of these Answer
Which keyword is used to refer to properties or methods within the class itself?
1 Mark(s)
Your Answer:
private
private
public
public
protected
protected
$this
$this
The subquery that returns only one tuple containing a single attribute, such subqueries are called:
1 Mark(s)
Your Answer:
Scalar subqueries
Scalar subqueries
Vector subqueries
Vector subqueries
Linear subqueries
Linear subqueries
Unity subqueries
Unity subqueries
What does the << operator do when used with a string in Ruby?
1 Mark(s)
Your Answer:
Appends a character to the end
Appends a character to the end
Removes the last character
Removes the last character
Concatenates two strings
Concatenates two strings
Reverses the string
Reverses the string
Which of the following is not a feature of Windows 98?
1 Mark(s)
Your Answer:
It supports Internet Explorer 4.0.1
It supports Internet Explorer 4.0.1
It also supports many peripheral devices USB, DVD
It also supports many peripheral devices USB, DVD
It was the first operating system to use the WDM
It was the first operating system to use the WDM
It provides multiple firewall
It provides multiple firewall
In Java, can an interface extend another interface?
1 Mark(s)
Your Answer:
No, interfaces cannot extend other interfaces
No, interfaces cannot extend other interfaces
Only if both interfaces have the same methods
Only if both interfaces have the same methods
Yes, an interface can extend multiple interfaces
Yes, an interface can extend multiple interfaces
Only if the interface is marked as "private"
Only if the interface is marked as "private"
Diameter of Compact Disk is ________?
1 Mark(s)
Your Answer:
10 cm
10 cm
11 cm
11 cm
12 cm
12 cm
None of these
None of these
Press _______ key to display the print dialogue box, in MS Word.
1 Mark(s)
Your Answer:
Ctrl+B
Ctrl+B
Alt+P
Alt+P
Ctrl+N
Ctrl+N
Ctrl+P
Ctrl+P
In C, array names act like what?
1 Mark(s)
Your Answer:
Integers
Integers
Pointers
Pointers
Functions
Functions
Structs
Structs
FPGA stands for:
1 Mark(s)
Your Answer:
field programmable gate array
field programmable gate array
forward programmable gate array
forward programmable gate array
forward parallel gate array
forward parallel gate array
field parallel gate array
field parallel gate array
Which of these keywords is used to 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
What is the function of void *memset(s, c, n)?
1 Mark(s)
Your Answer:
places character s into first n characters of c, return c
places character s into first n characters of c, return c
places character c into first n characters of s, return s
places character c into first n characters of s, return s
places character s into first n characters of c, return s
places character s into first n characters of c, return s
places character c into first n character of s, return c
places character c into first n character of s, return c
Which of the following is true about JSP implicit objects?
1 Mark(s)
Your Answer:
They are used to execute SQL queries
They are used to execute SQL queries
They are used to define JavaBean properties
They are used to define JavaBean properties
They are predefined objects available in JSP without any declaration
They are predefined objects available in JSP without any declaration
They are defined using ``
They are defined using ``
What is meant by the classes and objects that dependents on each other?
1 Mark(s)
Your Answer:
Tight Coupling
Tight Coupling
Cohesion
Cohesion
Loose Coupling
Loose Coupling
None of the above
None of the above
What will be the output of the following C++ code? #include <typeinfo> #include <iostream> using namespace std; class shape { public: virtual void myvirtualfunc() const {} }; class mytriangle: public shape { public: virtual void myvirtualfunc() const { }; }; int main() { shape shape_instance; shape &ref_shape = shape_instance; try { mytriangle &ref_mytriangle = dynamic_cast(ref_shape); } catch (bad_cast) { cout << "Caught: bad_cast exception\n"; } return 0; }
1 Mark(s)
Your Answer:
Caught standard exception
Caught standard exception
No exception arises
No exception arises
Caught: bad_cast exception
Caught: bad_cast exception
Caught: cast
Caught: cast
Which of these methods can be used to obtain set of all keys in a map?
1 Mark(s)
Your Answer:
getAll()
getAll()
getKeys()
getKeys()
keyall()
keyall()
keySet()
keySet()
The multidimensional data can be categorized by dimension attributes and:
1 Mark(s)
Your Answer:
Measure attributes
Measure attributes
Measure tuples
Measure tuples
Measure instances
Measure instances
Measure relations
Measure relations
Accessing an element in a Linked List by index takes?
1 Mark(s)
Your Answer:
O(1)
O(1)
O(n)
O(n)
O(log n)
O(log n)
O(n^2)
O(n^2)
For int arr[2][3];, what is type of arr?
1 Mark(s)
Your Answer:
int pointer
int pointer
int ()[3]
int ()[3]
int &
int &
int variable
int variable
Each pass through a loop is called a/an
1 Mark(s)
Your Answer:
enumeration
enumeration
iteration
iteration
culmination
culmination
pass through Correct
pass through Correct
Digital signals are represented in:
1 Mark(s)
Your Answer:
sine waves
sine waves
levels
levels
stages
stages
cosine waves
cosine waves
"Ctrl + O" keys are used by user to:
1 Mark(s)
Your Answer:
extract a file
extract a file
open option
open option
edit a file
edit a file
open a file
open a file
Outer join is the same as equi-join, except one of the duplicate columns is eliminated in the result table.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following is NOT a typical property of a good hash function?
1 Mark(s)
Your Answer:
Easy to compute.
Easy to compute.
Distributes keys uniformly across the hash table.
Distributes keys uniformly across the hash table.
Minimizes collisions.
Minimizes collisions.
Produces random and unpredictable results.
Produces random and unpredictable results.
What is the result of the bitwise operation x & (x-1)?
1 Mark(s)
Your Answer:
Sets the last bit
Sets the last bit
Inverts the number
Inverts the number
Clears lowest set bit
Clears lowest set bit
Multiplies by 2
Multiplies by 2
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
In Stream Control Transmission Protocol (SCTP), the acknowledgment number and window size is part of each:
1 Mark(s)
Your Answer:
data chunk
data chunk
protocol chunk
protocol chunk
stream chunk
stream chunk
control chunk
control chunk
Which basic colors are used in computer graphics?
1 Mark(s)
Your Answer:
GOB
GOB
RWG
RWG
RGB
RGB
BGB
BGB
The tags used to tell the browser that how to display the text enclosed (e.g. , ) are called as:
1 Mark(s)
Your Answer:
Physical tags
Physical tags
Logical tags
Logical tags
User defined tags
User defined tags
None
None
Which property of a control in a Windows Forms Application is used to specify its position and size within its container?
1 Mark(s)
Your Answer:
Location
Location
Size
Size
Visible
Visible
Text
Text
What will be the output of the following Java code? class box { int width; int height; int length; int volume; box() { width = 5; height = 5; length = 6; } void volume() { volume = width*height*length; } } class constructor_output { public static void main(String args[]) { box obj = new box(); obj.volume(); System.out.println(obj.volume); } }
1 Mark(s)
Your Answer:
100
100
150
150
200
200
250
250
What will be the output of the following Python code? print('*', "abcdef".center(7), '*')
1 Mark(s)
Your Answer:
* Abcdef *
* Abcdef *
* abcdef *
* abcdef *
*abcdef *
*abcdef *
* abcdef*
* abcdef*
Process of creating exact copy of the existing object is called_______________?
1 Mark(s)
Your Answer:
overloading
overloading
overriding
overriding
cloning
cloning
coping
coping
Which of the following allows us to select the screen positions with the touch of a finger?
1 Mark(s)
Your Answer:
Mouse
Mouse
Trackball
Trackball
Touch panel
Touch panel
None of the above
None of the above
Stored Procedure is:
1 Mark(s)
Your Answer:
Saved SQL code
Saved SQL code
Table
Table
View
View
Trigger
Trigger
The combination of abstraction of the data and code is viewed in________.
1 Mark(s)
Your Answer:
Inheritance
Inheritance
Object
Object
Class
Class
Interfaces
Interfaces
Instructions that are requested by the system are first:
1 Mark(s)
Your Answer:
fetched
fetched
decoded
decoded
executed
executed
deleted
deleted
In C++, can a function be both virtual and static at the same time?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Yes, but only for member functions.
Yes, but only for member functions.
Yes, but only for non-member functions.
Yes, but only for non-member functions.
Which of the following is a disadvantage of an array over a linked list?
1 Mark(s)
Your Answer:
Fixed size
Fixed size
Dynamic size
Dynamic size
Slow access to elements by index
Slow access to elements by index
Easier memory allocation
Easier memory allocation
What will be the output of the following code: my_list = [3, 1, 2] my_list.sort() print(my_list)
1 Mark(s)
Your Answer:
[1, 2, 3]
[1, 2, 3]
[3, 2, 1]
[3, 2, 1]
[2, 3, 1]
[2, 3, 1]
[1, 3, 2]
[1, 3, 2]
What is the output of the following code: def greet(name): print(f"Hello, {name}!") greet("Alice")
1 Mark(s)
Your Answer:
Hello, Alice!
Hello, Alice!
Hello, name!
Hello, name!
name
name
"Hello, {name}!"
"Hello, {name}!"
The computer’s processor consists of the following parts___________________?
1 Mark(s)
Your Answer:
CPU and Main Memory
CPU and Main Memory
Hard Disk and Floppy Drive
Hard Disk and Floppy Drive
Main Memory and Storage
Main Memory and Storage
Control Unit and ALU
Control Unit and ALU
Which part of the microscope helps in magnifying small particles or microorganisms?
1 Mark(s)
Your Answer:
A) Stage
A) Stage
B) Mirror
B) Mirror
C) Eyepiece lens
C) Eyepiece lens
D) Base
D) Base
What should you do if your script is having problem recognizing file endings from a text file saved on a platform different from the one you’re reading it on?
1 Mark(s)
Your Answer:
Change the auto_detect_line_endings INI setting
Change the auto_detect_line_endings INI setting
Use a regular expression to detect the last letter of a line
Use a regular expression to detect the last letter of a line
Use fpos()
Use fpos()
Use ftok()
Use ftok()
Read the file one character at a time
Read the file one character at a time
Which of the following is true concerning systems information in an RDBMS?
1 Mark(s)
Your Answer:
RDBMS store database definition information in system-created tables.
RDBMS store database definition information in system-created tables.
This information can be accessed using SQL.
This information can be accessed using SQL.
This information often cannot be updated by a user.
This information often cannot be updated by a user.
All of the above.
All of the above.
The incorrect one is:
1 Mark(s)
Your Answer:
A recursive method must have a base case
A recursive method must have a base case
Recursion always uses stack
Recursion always uses stack
Recursion is always managed by C# Runtime environment
Recursion is always managed by C# Runtime environment
Recursive methods are faster that programmer written loop to call the function repeatedly using a st
Recursive methods are faster that programmer written loop to call the function repeatedly using a st
How does Spirulina support environmental sustainability?
1 Mark(s)
Your Answer:
A) Fixes nitrogen in roots
A) Fixes nitrogen in roots
B) Produces alcohol
B) Produces alcohol
C) Produces oxygen and grows in less space
C) Produces oxygen and grows in less space
D) Breaks down waste in landfills
D) Breaks down waste in landfills
The First page of the website is termed:?
1 Mark(s)
Your Answer:
Homepage
Homepage
Index
Index
Java Script
Java Script
Bookmark Answer
Bookmark Answer
Usual waveform of alternating current in most electric power circuits is:
1 Mark(s)
Your Answer:
cosine wave
cosine wave
sine wave
sine wave
cot wave
cot wave
tangential wave
tangential wave
To extend the connectivity of the processor bus we use:
1 Mark(s)
Your Answer:
PCI bus
PCI bus
SCSI bus
SCSI bus
controllers
controllers
multiple bus
multiple bus
The statement printf(“%3.6f”, j); prints the value of j correct to:?
1 Mark(s)
Your Answer:
two places
two places
four places
four places
six places
six places
gives an error message Answer
gives an error message Answer
The Internet Protocol (IP) packet that carries an Internet Group Management Protocol (IGMP) packet has a value of:
1 Mark(s)
Your Answer:
0
0
1
1
2
2
-1
-1
Which node is the parent node of Node 6?
1 Mark(s)
Your Answer:
1
1
5
5
2
2
3
3
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.