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
:
47
:
00
Q:
1
/
52
🤖
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 2
Exam Duration:
00:47:00
Ruby Mock Test 2
: Question
1
of 52
The period of a signal is 100 ms. What is its frequency in kilohertz?
1 Mark(s)
Your Answer:
100 Hz
100 Hz
1 kHz
1 kHz
10 Hz
10 Hz
0.02 Hz
0.02 Hz
Why the bridge can use the spanning-tree algorithm?
1 Mark(s)
Your Answer:
to create a loopless topology
to create a loopless topology
filter frame
filter frame
to regenerate a signal
to regenerate a signal
discarding frame
discarding frame
In Ruby, what is a superclass?
1 Mark(s)
Your Answer:
The class from which a class inherits
The class from which a class inherits
The class that inherits from another class
The class that inherits from another class
The class that contains all other classes
The class that contains all other classes
The class that has no superclass
The class that has no superclass
What will be the output of the following C code? #include <stdio.h> struct student { char *c; struct student *point; }; void main() { struct student s; struct student m; m.point = s; (m.point)->c = "hey"; printf("%s", s.c); }
1 Mark(s)
Your Answer:
Nothing
Nothing
Compile time error
Compile time error
hey
hey
Varies
Varies
What does the qqnorm() function in R do?
1 Mark(s)
Your Answer:
Plots a quantile-quantile plot for normality assessment
Plots a quantile-quantile plot for normality assessment
Generates a random sample from a normal distribution
Generates a random sample from a normal distribution
Creates a normal probability plot
Creates a normal probability plot
Quantifies the normal distribution of a variable
Quantifies the normal distribution of a variable
Employees in an office is human's:
1 Mark(s)
Your Answer:
object
object
entity
entity
data type
data type
object
object
MD5 produces a hash of:
1 Mark(s)
Your Answer:
128 bits
128 bits
160 bits
160 bits
256 bits
256 bits
512 bits
512 bits
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
When was the MS Windows operating system introduced?
1 Mark(s)
Your Answer:
1975
1975
1985
1985
1990
1990
2000 Answer
2000 Answer
Which method is used to separate pebbles and stones from sand?
1 Mark(s)
Your Answer:
A) Handpicking
A) Handpicking
B) Winnowing
B) Winnowing
C) Sieving
C) Sieving
D) Any of these
D) Any of these
What will be the output of the following Python code? 'The {} side {1} {2}'.format('bright', 'of', 'life')
1 Mark(s)
Your Answer:
Error
Error
'The bright side of life'
'The bright side of life'
'The {bright} side {of} {life}'
'The {bright} side {of} {life}'
No output
No output
Min heap can be used to implement selection sort.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following special type of trie is used for fast searching of the full texts?
1 Mark(s)
Your Answer:
Ctrie
Ctrie
Hash tree
Hash tree
Suffix tree
Suffix tree
T tree
T tree
The ratio of the intensity of broadband and narrow band gives a measure of:
1 Mark(s)
Your Answer:
crystalline ratio
crystalline ratio
non crystalline ration
non crystalline ration
both a and b
both a and b
limited/non limited frequency
limited/non limited frequency
What does the start_of_week method do for a Date object in Ruby?
1 Mark(s)
Your Answer:
Returns the day of the week for the Date object
Returns the day of the week for the Date object
Returns the middle day of the week for the Date object
Returns the middle day of the week for the Date object
Returns the last day of the week for the Date object
Returns the last day of the week for the Date object
Returns the first day of the week for the Date object
Returns the first day of the week for the Date object
What is the correct syntax to declare a structure with a tag name in C++?
1 Mark(s)
Your Answer:
structName { /* members */ };
structName { /* members */ };
struct { /* members */ } structName;
struct { /* members */ } structName;
structName typedef { /* members */ };
structName typedef { /* members */ };
struct structName { /* members */ };
struct structName { /* members */ };
What is the output of the code: x = 1 while x
1 Mark(s)
Your Answer:
1 2 3 4
1 2 3 4
1 1 1 1
1 1 1 1
2 3 4 5
2 3 4 5
2 2 2 2
2 2 2 2
Which of the following property defines the width of each column in a multicolumn text flow?
1 Mark(s)
Your Answer:
width
width
columns
columns
filter
filter
column-width
column-width
What will be the output of the following Java program? import java.io.*; class Chararrayinput { public static void main(String[] args) { String obj = "abcdef"; int length = obj.length(); char c[] = new char[length]; obj.getChars(0, length, c, 0); CharArrayReader input1 = new CharArrayReader(c); CharArrayReader input2 = new CharArrayReader(c, 0, 3); int i; try { while((i = input2.read()) != -1) { System.out.print((char)i); } } catch (IOException e) { e.printStackTrace(); } } }
1 Mark(s)
Your Answer:
abc
abc
abcd
abcd
abcde
abcde
abcdef
abcdef
How does Hadoop support encryption in transit for data transmitted between nodes in a cluster?
1 Mark(s)
Your Answer:
Running Hadoop in an open network mode
Running Hadoop in an open network mode
Increasing the block size in HDFS
Increasing the block size in HDFS
Disabling encryption for Hadoop nodes
Disabling encryption for Hadoop nodes
Enabling SSL/TLS for communication
Enabling SSL/TLS for communication
Consider the expression T & F ∧ T. What is the number of ways in which the expression can be parenthesized so that the output is T (true)?
1 Mark(s)
Your Answer:
0
0
1
1
2
2
3
3
Can a class be declared with a protected modifier.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following operations is used to restore balance in an AVL tree after insertion?
1 Mark(s)
Your Answer:
Merging
Merging
Splaying
Splaying
Rotations
Rotations
Hashing
Hashing
Which of the following are disadvantages of using NAT? 1. Translation introduces switching path delays. 2. Conserves legally registered addresses. 3. Causes loss of end-to-end IP traceability. 4. Increases flexibility when connecting to the Internet. 5. Certain applications will not function with NAT enabled. 6. Reduces address overlap occurrence.
1 Mark(s)
Your Answer:
1, 3 and 5
1, 3 and 5
3 and 4
3 and 4
2, 4 and 5
2, 4 and 5
1 and 3
1 and 3
Shifting to the left is accomplished by:
1 Mark(s)
Your Answer:
addition
addition
subtraction
subtraction
multiplication
multiplication
division
division
Which data structure is used for implementing a FIFO branch and bound strategy?
1 Mark(s)
Your Answer:
stack
stack
queue
queue
array
array
linked list
linked list
Which of the following is the best way to create a duplicate slide?
1 Mark(s)
Your Answer:
Click the slide and select it using Ctrl + A, then copy it and paste it into new slide.
Click the slide and select it using Ctrl + A, then copy it and paste it into new slide.
Redo everything on new slide
Redo everything on new slide
Choose duplicate slide from insert slide
Choose duplicate slide from insert slide
None of the above
None of the above
Feature of Windows 98 which enables users to integrate internet resources directly on the Windows desktop is:
1 Mark(s)
Your Answer:
plug and play
plug and play
internet explorer
internet explorer
START button
START button
active desktop
active desktop
What is it called when we make a mistake in the script?
1 Mark(s)
Your Answer:
Error
Error
Bug
Bug
Mistake
Mistake
All of the mentioned
All of the mentioned
A large memory can further be installed, known as:
1 Mark(s)
Your Answer:
conventional
conventional
primary memory
primary memory
expanded memory
expanded memory
ROM
ROM
Which of the following statements about exception handling in C++ is correct?
1 Mark(s)
Your Answer:
It is an alternative to error codes
It is an alternative to error codes
It is faster and more efficient than error codes
It is faster and more efficient than error codes
It is used only for compile-time errors
It is used only for compile-time errors
It cannot handle runtime errors
It cannot handle runtime errors
In Ms Excel, which of the following special function keys allow the content in cell?
1 Mark(s)
Your Answer:
Shift
Shift
Esc
Esc
Tab
Tab
Space
Space
What is the time complexity of search function in a hash table using a doubly linked list?
1 Mark(s)
Your Answer:
O(1)
O(1)
O(n)
O(n)
O(log n)
O(log n)
O(n log n)
O(n log n)
Which keyword allows exception handling?
1 Mark(s)
Your Answer:
jump
jump
throw
throw
catch
catch
error
error
Which of the following methods cannot be used to enter data in a cell
1 Mark(s)
Your Answer:
Pressing an arrow key
Pressing an arrow key
Pressing the Tab key
Pressing the Tab key
Pressing the Esc key
Pressing the Esc key
Clicking on the formula bar
Clicking on the formula bar
The _____ option is used to show a specific row or column on every printed page.
1 Mark(s)
Your Answer:
print layout
print layout
print title
print title
print view
print view
none
none
Secondary Memory is also called:?
1 Mark(s)
Your Answer:
Random Access Memory
Random Access Memory
Internal Memory
Internal Memory
External Memory
External Memory
None of these Answer
None of these Answer
A computer device which sends the message is termed as:
1 Mark(s)
Your Answer:
sending device
sending device
source transmitter
source transmitter
both A and B
both A and B
communication device
communication device
The operating system is the most common type of ...... Software
1 Mark(s)
Your Answer:
Communication
Communication
Application
Application
System
System
Word processing software
Word processing software
Mean density of Earth is:
1 Mark(s)
Your Answer:
2320 kg/m3
2320 kg/m3
1410 kg/m3
1410 kg/m3
5520 kg/m3
5520 kg/m3
3340 kg/m3
3340 kg/m3
What is the purpose of the "return" statement in a method in Java?
1 Mark(s)
Your Answer:
To specify the method's access modifier
To specify the method's access modifier
To indicate that the method should return a value
To indicate that the method should return a value
To stop the execution of the program
To stop the execution of the program
To indicate the method is static
To indicate the method is static
Mouse, keyboard, disk drives and printers are basic elements of:
1 Mark(s)
Your Answer:
circuit design-user environment
circuit design-user environment
automobile-user environment
automobile-user environment
economical environment
economical environment
computer-user environment
computer-user environment
In Point to Point Protocol, the framing techniques done according to the:
1 Mark(s)
Your Answer:
Bit oriented Protocol
Bit oriented Protocol
Byte oriented Protocol
Byte oriented Protocol
High-level Data Link Protocol
High-level Data Link Protocol
Link Control Protocol
Link Control Protocol
What will be the output of the following PHP code ? <?php $x = 10; $y = 20; if ($x > $y + $y != 3) print "hi" ; else print "how are u"; ?>
1 Mark(s)
Your Answer:
how are u
how are u
hi
hi
error
error
no output
no output
Which of the following transition-timing-function property specifies a transition effect with a slow start?
1 Mark(s)
Your Answer:
ease
ease
ease-in
ease-in
ease-in-out
ease-in-out
none of the mentioned
none of the mentioned
Which of the following is not a tool used by search engines for searching?
1 Mark(s)
Your Answer:
URL
URL
Search Algorithm
Search Algorithm
Indexer
Indexer
Crawle
Crawle
In C++, the operator used to access members via a pointer is:
1 Mark(s)
Your Answer:
Dot (.)
Dot (.)
Arrow (->)
Arrow (->)
Star (*)
Star (*)
Ampersand (&)
Ampersand (&)
What is the purpose of using snake_case for method and variable names in Ruby?
1 Mark(s)
Your Answer:
To make the code more challenging to read
To make the code more challenging to read
To indicate private methods and variables
To indicate private methods and variables
To emphasize the importance of the code
To emphasize the importance of the code
To improve readability and maintain consistency
To improve readability and maintain consistency
Types of computer impact printer are:
1 Mark(s)
Your Answer:
dot matrix printers
dot matrix printers
daisy wheel printers
daisy wheel printers
line printers
line printers
all of these
all of these
A Chatbot is an example of:
1 Mark(s)
Your Answer:
AI
AI
OS
OS
Compiler
Compiler
Database
Database
The algorithm given is for deleting an element in an unrolled linked list. What should be the correct statement for the blank given below? Find an element in node a a.data.delete(element) a.elementNum-- while a.elementNum < a.data.size / 2 put element from a.next.data in a.data a.next.elementNum-- a.elementNum++ if a.next.elementNum < a.next.data.size / 2 _______________________ _______________________
1 Mark(s)
Your Answer:
merge nodes a and a.next delete node a.next
merge nodes a and a.next delete node a.next
delete node a merge nodes a.prev and a.next
delete node a merge nodes a.prev and a.next
a.elementNum-- a.elementNum++
a.elementNum-- a.elementNum++
a.next.elementNum-- a.next.elementNum++
a.next.elementNum-- a.next.elementNum++
Which of the following is the correct way to create a string in Python?
1 Mark(s)
Your Answer:
"Hello, World!"
"Hello, World!"
'Hello, World!'
'Hello, World!'
"Hello, World!'
"Hello, World!'
'Hello, World!"
'Hello, World!"
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.