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
:
09
:
00
Q:
1
/
77
🤖
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.
Algorithms Mock Test 11
Exam Duration:
01:09:00
Algorithms Mock Test 11
: Question
1
of 77
Output?int a=5, b=2; cout << a%b;
1 Mark(s)
Your Answer:
1
1
2
2
0
0
3
3
What is the purpose of the 'strlen()' function in C++?
1 Mark(s)
Your Answer:
Concatenates two strings
Concatenates two strings
Compares two strings
Compares two strings
Returns the length of a null-terminated string
Returns the length of a null-terminated string
Copies a string to another string
Copies a string to another string
Do ternary heap have better memory cache behavior than binary heap.
1 Mark(s)
Your Answer:
True
True
False
False
What is the purpose of the Enumerator class in Ruby?
1 Mark(s)
Your Answer:
It provides a way to enumerate over the elements of an array
It provides a way to enumerate over the elements of an array
It allows you to create custom iterators for any enumerable object
It allows you to create custom iterators for any enumerable object
It allows you to define custom iteration behavior for any enumerable object
It allows you to define custom iteration behavior for any enumerable object
None of the above
None of the above
"Ctrl + B" shortcut is used by user to:
1 Mark(s)
Your Answer:
selected text to be blow
selected text to be blow
selected text border
selected text border
selected text to be bold
selected text to be bold
selected text to be broad
selected text to be broad
Which of the following selectors selects any tag with an id attribute set?
1 Mark(s)
Your Answer:
E#id
E#id
.class
.class
#id
#id
*
*
What is extension of MS PowerPoint presentation of file in 2007 and later?
1 Mark(s)
Your Answer:
.pp
.pp
.xls
.xls
.pptx
.pptx
None of these
None of these
What is the syntax for calling a virtual function from a derived class constructor in C++?
1 Mark(s)
Your Answer:
virtual_function()
virtual_function()
Base::virtual_function()
Base::virtual_function()
this->virtual_function()
this->virtual_function()
Derived::virtual_function()
Derived::virtual_function()
What happens when the pH in the blood reduces?
1 Mark(s)
Your Answer:
Blood supply to the brain reduces
Blood supply to the brain reduces
Affinity of hemoglobin with oxygen decreases
Affinity of hemoglobin with oxygen decreases
Rate of heartbeat reduces
Rate of heartbeat reduces
None of the above
None of the above
What will be the output of the following Java program? class output { public static void main(String args[]) { String s1 = "one"; String s2 = s1 + " two"; System.out.println(s2); } }
1 Mark(s)
Your Answer:
one
one
two
two
one two
one two
compilation error
compilation error
PHP files have a default file extension of_______.
1 Mark(s)
Your Answer:
.html
.html
.xml
.xml
.php
.php
.ph
.ph
Mosses and ferns are mostly found in damp and ________ environment:
1 Mark(s)
Your Answer:
high light
high light
darkness
darkness
low light
low light
no light
no light
An ordered factor is used to represent an . . . . . . . .
1 Mark(s)
Your Answer:
Ordinal variable
Ordinal variable
Simple variable
Simple variable
Coordinal variable
Coordinal variable
Biordinal variable
Biordinal variable
What is the administrative distance of OSPF?
1 Mark(s)
Your Answer:
90
90
100
100
110
110
120
120
What will be the output? class MyClass{ public String test(){ try{ System.out.print("One"); return ""; } finally{ System.out.print("Two"); } } } public class Test{ public static void main(String args[]){ MyClass m = new MyClass(); m.test(); } }
1 Mark(s)
Your Answer:
One
One
Two
Two
One Two
One Two
Compilation Error
Compilation Error
None of these
None of these
In a network with dozens of switches, how many root bridges would you have?
1 Mark(s)
Your Answer:
1
1
2
2
5
5
12
12
To Zoom an Excel worksheet we can use _______?
1 Mark(s)
Your Answer:
The mouse pointer in Print Preview
The mouse pointer in Print Preview
The zoom button on the Print Preview toolbar
The zoom button on the Print Preview toolbar
The zoom command on the view menu
The zoom command on the view menu
All of these
All of these
Which is NOT one of the most common types of SQL CHECK constraints?
1 Mark(s)
Your Answer:
System date
System date
Range checks
Range checks
Lists of values
Lists of values
Comparing one column value to another within the same table
Comparing one column value to another within the same table
Consider the brute force implementation of the rod cutting problem in which all the possible cuts are found and the maximum value is calculated. What is the time complexity of this brute force implementation?
1 Mark(s)
Your Answer:
O(n2)
O(n2)
O(n3)
O(n3)
O(nlogn)
O(nlogn)
O(2n)
O(2n)
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using namespace std; int main(int argc, char const *argv[]) { int a = 5; int *p = &a; int *(&q) = p; cout<<q; return 0; }
1 Mark(s)
Your Answer:
5
5
Address of pointer a
Address of pointer a
Address of pointer p
Address of pointer p
Error
Error
Name the method/methods used to read byte streams from the file?
1 Mark(s)
Your Answer:
ReadByte()
ReadByte()
Read
Read
Readkey()
Readkey()
None of the mentioned
None of the mentioned
In ∂/∂x (uvw), where u, v and w are constants, is equals to:
1 Mark(s)
Your Answer:
uv∂w⁄∂x+uw∂v⁄∂x+vw∂u⁄∂x
uv∂w⁄∂x+uw∂v⁄∂x+vw∂u⁄∂x
uw ∂u⁄∂x+vw ∂v⁄∂x
uw ∂u⁄∂x+vw ∂v⁄∂x
uvw∂/∂x+∂u/∂x (uvw)
uvw∂/∂x+∂u/∂x (uvw)
uvw∂/∂x
uvw∂/∂x
What are the basic rectangular building blocks of a spreadsheet?
1 Mark(s)
Your Answer:
Cells
Cells
Zoom slider
Zoom slider
Help button
Help button
None of these
None of these
Which of the following commands connect access list 110 inbound to interface ethernet0?
1 Mark(s)
Your Answer:
Router(config)# ip access-group 110 in
Router(config)# ip access-group 110 in
Router(config)# ip access-list 110 in
Router(config)# ip access-list 110 in
Router(config-if)# ip access-group 110 in
Router(config-if)# ip access-group 110 in
Router(config-if)# ip access-list 110 in
Router(config-if)# ip access-list 110 in
Other material/s which is/are sensitive at ordinary temperature like hydrogen is/are:
1 Mark(s)
Your Answer:
cellulose
cellulose
cellulose and nylon
cellulose and nylon
nylon and cotton
nylon and cotton
polyethylene
polyethylene
An entity name should be which of the following?
1 Mark(s)
Your Answer:
A singular noun
A singular noun
Specific to the organization
Specific to the organization
Concise
Concise
All of the above
All of the above
Which of the following is not the class of NoSQL?
1 Mark(s)
Your Answer:
Document stores
Document stores
Multidimension stores
Multidimension stores
Key-value stores
Key-value stores
Memcache
Memcache
Which is one of way to query a document for an element or elements?
1 Mark(s)
Your Answer:
With a specified id attribute
With a specified id attribute
Matching the specified CSS selector
Matching the specified CSS selector
With the specified tag name
With the specified tag name
All of the mentioned
All of the mentioned
What is the range of values for an 'unsigned long int' data type in C++?
1 Mark(s)
Your Answer:
0 to 65535
0 to 65535
-32768 to 32767
-32768 to 32767
0 to 4294967295
0 to 4294967295
-2147483648 to 2147483647
-2147483648 to 2147483647
What will be the time complexity of query operation if all the candidates are evenly spaced so that each bin has constant no. of candidates? (k = number of bins query rectangle intersects)
1 Mark(s)
Your Answer:
O(1)
O(1)
O(k)
O(k)
O(k2)
O(k2)
O(log k)
O(log k)
What is the role of the TaskTracker in Hadoop?
1 Mark(s)
Your Answer:
Manage computation resources
Manage computation resources
Execute MapReduce jobs
Execute MapReduce jobs
Manages HDFS metadata
Manages HDFS metadata
Manages ZooKeeper configurations
Manages ZooKeeper configurations
What is the purpose of the pass statement in a loop?
1 Mark(s)
Your Answer:
It acts as a placeholder
It acts as a placeholder
It breaks the loop
It breaks the loop
It starts a loop
It starts a loop
It continues the loop
It continues the loop
How do you find the index of the last occurrence of a substring in a string in Java?
1 Mark(s)
Your Answer:
str.findLast(substring)
str.findLast(substring)
str.lastIndexOf(substring)
str.lastIndexOf(substring)
str.lastIndexOfChar(substring)
str.lastIndexOfChar(substring)
str.indexOf(substring)
str.indexOf(substring)
In a computer, correct column address is:
1 Mark(s)
Your Answer:
AA
AA
25
25
3B
3B
C5
C5
Eccentricity of Saturn is:
1 Mark(s)
Your Answer:
0.0556
0.0556
0.0934
0.0934
0.0472
0.0472
0.0485
0.0485
RGB stands for:
1 Mark(s)
Your Answer:
Red, Green, Blue
Red, Green, Blue
Red, Green, Black
Red, Green, Black
Red, Gray, Black
Red, Gray, Black
None
None
Suppose there is a list such that: l=[2,3,4]. If we want to print this list in reverse order, which of the following methods should be used?
1 Mark(s)
Your Answer:
reverse(l)
reverse(l)
list(reverse[(l)])
list(reverse[(l)])
reversed(l)
reversed(l)
list(reversed(l))
list(reversed(l))
What is the output of the following code: my_tuple = (1, 2, 3) print(my_tuple[1])
1 Mark(s)
Your Answer:
1
1
2
2
3
3
Error
Error
A well-known helper plug-in for HTML is?
1 Mark(s)
Your Answer:
J-Query
J-Query
PHP
PHP
JavaScript
JavaScript
Java Applet
Java Applet
When air holes of a Bunsen burner are closed they give:
1 Mark(s)
Your Answer:
luminous flame
luminous flame
non luminous flame
non luminous flame
aluminous flame
aluminous flame
dull flame
dull flame
Where is the R.java file located?
1 Mark(s)
Your Answer:
src
src
gen
gen
Both A and B
Both A and B
None of these
None of these
Which of the following is used for Statistical analysis in R language?
1 Mark(s)
Your Answer:
RStudio
RStudio
Studio
Studio
Heck
Heck
KStudio
KStudio
Which of the following bitwise operations will you use to set a particular bit to 1?
1 Mark(s)
Your Answer:
OR
OR
AND
AND
XOR
XOR
NOR
NOR
What is the range of short data type in Java?
1 Mark(s)
Your Answer:
-128 to 127
-128 to 127
-32768 to 32767
-32768 to 32767
-2147483648 to 2147483647
-2147483648 to 2147483647
None of the mentioned
None of the mentioned
What will be the output of the following code fragment? void main() { printf("%x",-1
1 Mark(s)
Your Answer:
fff0
fff0
fff1
fff1
fff2
fff2
fff3
fff3
fff4
fff4
Which of the following properties is essential for the efficient implementation of Dijkstra's algorithm?
1 Mark(s)
Your Answer:
An adjacency matrix for fast access.
An adjacency matrix for fast access.
A stack to keep track of visited nodes.
A stack to keep track of visited nodes.
A hash table for node storage.
A hash table for node storage.
A priority queue or min-heap to extract the minimum distance.
A priority queue or min-heap to extract the minimum distance.
Which of the following is not a valid C++ standard library container?
1 Mark(s)
Your Answer:
queue
queue
deque
deque
ArrayList
ArrayList
vector
vector
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 = &s; printf("%d", sizeof(student)); }
1 Mark(s)
Your Answer:
Compile time error
Compile time error
8
8
5
5
16
16
What makes Earth’s position in the solar system ideal for supporting life?
1 Mark(s)
Your Answer:
A) It is the closest planet to the Sun.
A) It is the closest planet to the Sun.
B) It lies in the habitable zone, allowing liquid water.
B) It lies in the habitable zone, allowing liquid water.
C) It has the strongest magnetic field in the solar system.
C) It has the strongest magnetic field in the solar system.
D) It has no atmosphere.
D) It has no atmosphere.
Which metrhods are utilized to control the access to an object in multi threaded programming ?
1 Mark(s)
Your Answer:
Synchronized methods
Synchronized methods
Asynchronized methods
Asynchronized methods
Serialized methods
Serialized methods
None of above
None of above
In R, what is the primary functionality of the caret package?
1 Mark(s)
Your Answer:
Machine learning model training and evaluation
Machine learning model training and evaluation
Data cleaning and preprocessing
Data cleaning and preprocessing
Bayesian data analysis
Bayesian data analysis
Visualization of decision trees
Visualization of decision trees
What is the purpose of the function Sys.Date() in R?
1 Mark(s)
Your Answer:
Display current date and time
Display current date and time
Extract system information
Extract system information
Retrieve the current date
Retrieve the current date
Convert date to character
Convert date to character
Which fields are contained within an IEEE Ethernet frame header? 1. Source and destination MAC address 2. Source and destination network address 3. Source and destination MAC address and source and destination network address 4. FCS field
1 Mark(s)
Your Answer:
1 and 4
1 and 4
2 only
2 only
2 and 3 only
2 and 3 only
3 only
3 only
The capacity of a 3.5-inch floppy disk was _____.?
1 Mark(s)
Your Answer:
1.40 GB
1.40 GB
1.44 GB
1.44 GB
1.40 MB
1.40 MB
1.44 MB Answer
1.44 MB Answer
Which of the following property is used to determine which drag operation was desired?
1 Mark(s)
Your Answer:
dragend
dragend
getData
getData
dropEffect
dropEffect
captureData
captureData
Oracle, the world's most popular DBMS, is powerful and robust, running on many different operating systems.
1 Mark(s)
Your Answer:
True
True
False
False
In the email campaign, __________ delivers the advertisements into the group of targeted customers.
1 Mark(s)
Your Answer:
Spoofing
Spoofing
Indirect email marketing
Indirect email marketing
Direct email marketing
Direct email marketing
Spamming
Spamming
A member function can always access the data in __________ , (in C++).
1 Mark(s)
Your Answer:
the object of which it is a member
the object of which it is a member
the public part of its class
the public part of its class
the private part of its class
the private part of its class
Question: Which of the algorithms uses the Divide and Conquer approach?
1 Mark(s)
Your Answer:
Bubble Sort
Bubble Sort
Linear Search
Linear Search
Merge Sort
Merge Sort
Insertion Sort
Insertion Sort
The current date is returned by the method:
1 Mark(s)
Your Answer:
system.date
system.date
current.date
current.date
machine.date
machine.date
today.date
today.date
How many kinds of parameters are there in C++?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
5
5
Material when given tension straightens out and return on releasing tension, it is called as:
1 Mark(s)
Your Answer:
random state
random state
rubbery state
rubbery state
predictable state
predictable state
unpredictable state
unpredictable state
In order to lock/unlock an object use the:
1 Mark(s)
Your Answer:
lock and unlock methods
lock and unlock methods
enter and exit methods
enter and exit methods
close and open methods
close and open methods
close and allow methods
close and allow methods
In Oozie, what is the role of the Oozie Workflow XML file?
1 Mark(s)
Your Answer:
A storage format in Hadoop
A storage format in Hadoop
A query language for Hadoop
A query language for Hadoop
A distributed file system
A distributed file system
Define the structure and execution flow of a workflow
Define the structure and execution flow of a workflow
What is the time complexity of exponential search for a large dataset?
1 Mark(s)
Your Answer:
O(log n)
O(log n)
O(√n)
O(√n)
O(n)
O(n)
O(n log n)
O(n log n)
Vector product of two vectors A and B is written as:
1 Mark(s)
Your Answer:
AB
AB
A.B
A.B
AxB
AxB
AoB
AoB
Which of the following are input devices?
1 Mark(s)
Your Answer:
Keyboard
Keyboard
Mouse
Mouse
Card reader
Card reader
All of these
All of these
Why this pointer is used?
1 Mark(s)
Your Answer:
To access the members of a class which have the same name as local variables in that scope
To access the members of a class which have the same name as local variables in that scope
To access all the data stored under that class
To access all the data stored under that class
To access objects of other class
To access objects of other class
To access objects of other variables
To access objects of other variables
Which switch is a multistage switch with micro switches at each stage that route the packets based on the output port represented as a binary string?
1 Mark(s)
Your Answer:
Banyan switch
Banyan switch
Crossbar switch
Crossbar switch
Multistage crossbar
Multistage crossbar
Packet switch
Packet switch
When a process is copied into the main memory from the secondary memory, what is this operation called?
1 Mark(s)
Your Answer:
Swapping
Swapping
Paging
Paging
Segmentation
Segmentation
Demand paging
Demand paging
The default method while submitting a form is:
1 Mark(s)
Your Answer:
Put method
Put method
Post method
Post method
Set method
Set method
Get method
Get method
Which type of binary tree is specifically designed to store key-value pairs and supports efficient search, insertion, and deletion operations?
1 Mark(s)
Your Answer:
AVL Tree
AVL Tree
Red-Black Tree
Red-Black Tree
B-Tree
B-Tree
Splay Tree
Splay Tree
In a queue, what operation is used to view the element at the front without removing it?
1 Mark(s)
Your Answer:
Peek
Peek
Dequeue
Dequeue
Enqueue
Enqueue
Insert
Insert
Physical constant that is the quantum of action, central in quantum mechanics, is called:
1 Mark(s)
Your Answer:
permittivity Constant
permittivity Constant
Permeability Constant
Permeability Constant
Planck Constant
Planck Constant
Stefan-Boltzmann Constant
Stefan-Boltzmann Constant
Methods that have same name, but different Parameter list and different definition known as_________________?
1 Mark(s)
Your Answer:
Overriding
Overriding
Overloading
Overloading
Constructor
Constructor
none of these
none of these
Which apps are included in Office Suite?
1 Mark(s)
Your Answer:
Word
Word
Excel
Excel
PowerPoint
PowerPoint
All of the Above Answer
All of the Above Answer
The CGI.pm module for website development is a part of . . . . . . . .
1 Mark(s)
Your Answer:
Perl
Perl
Java
Java
Python
Python
C++
C++
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.