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
:
43
:
00
Q:
1
/
48
🤖
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.
Operating Systems Mock Test 16
Exam Duration:
00:43:00
Operating Systems Mock Test 16
: Question
1
of 48
State the complexity of algorithm given below. int function(vector<int> arr) int len=arr.length(); if(len==0) return; temp=arr[len-1]; arr.pop_back(); return temp;
1 Mark(s)
Your Answer:
o(n)
o(n)
O(logn)
O(logn)
O(1)
O(1)
O(n logn)
O(n logn)
Which exception is thrown by read() method?
1 Mark(s)
Your Answer:
IOException
IOException
InterruptedException
InterruptedException
SystemException
SystemException
SystemInputException
SystemInputException
. . . . . . . . is used to decommission more than one RegionServer at a time by creating sub-znodes.
1 Mark(s)
Your Answer:
/hbase/master
/hbase/master
/hbase/draining
/hbase/draining
/hbase/passive
/hbase/passive
None of the mentioned
None of the mentioned
What will be the output of the following PHP code ? <?php $x = 5; $y = 10; $z = "$x + $y"; echo "$z"; ?>
1 Mark(s)
Your Answer:
15
15
10 + 5
10 + 5
$z
$z
$x + $y
$x + $y
The delegate declaration consists of:
1 Mark(s)
Your Answer:
return type
return type
parameter list
parameter list
delegate keyword
delegate keyword
All of the above
All of the above
Which of the following protocols uses both TCP and UDP?
1 Mark(s)
Your Answer:
FTP
FTP
SMTP
SMTP
Telnet
Telnet
DNS
DNS
What is the role of Hadoop's HDFS snapshot feature in terms of security?
1 Mark(s)
Your Answer:
Enhancing data replication in HDFS
Enhancing data replication in HDFS
Improving the performance of MapReduce jobs
Improving the performance of MapReduce jobs
Implementing role-based access control
Implementing role-based access control
Creating point-in-time copies of HDFS directories
Creating point-in-time copies of HDFS directories
Electric motor speed will be increase with the increase in:
1 Mark(s)
Your Answer:
heat
heat
energy
energy
potential
potential
electric current
electric current
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
___ reads characters printed in a special magnetic ink into the computer?
1 Mark(s)
Your Answer:
MICR System
MICR System
Magnetic Stripe Card
Magnetic Stripe Card
Smart Card
Smart Card
None of these Answer
None of these Answer
In the functions re.search.start(group) and re.search.end(group), if the argument groups not specified, it defaults to . . . . . . . .
1 Mark(s)
Your Answer:
Zero
Zero
None
None
One
One
Error
Error
Which of the following functions will return the symmetric difference between two sets, x and y?
1 Mark(s)
Your Answer:
x | y
x | y
x ^ y
x ^ y
x & y
x & y
x - y
x - y
Which of the following is not compulsory to create while entry in Accounts with Inventory
1 Mark(s)
Your Answer:
Stock Groups
Stock Groups
Stock Items
Stock Items
Stock Categories
Stock Categories
Units of Measure
Units of Measure
How can you add a comment in JavaScript?
1 Mark(s)
Your Answer:
// Comment
// Comment
' Comment
' Comment
# Comment
# Comment
What is the attribute of java bean to specify scope of bean to have single instance per Spring IOC?
1 Mark(s)
Your Answer:
prototype
prototype
singleton
singleton
request
request
session
session
Which of the following is also known as the developer of the world's first cellular system?
1 Mark(s)
Your Answer:
Bellcore and Motorola
Bellcore and Motorola
Nippon Telephone and Telegraph (NTT)
Nippon Telephone and Telegraph (NTT)
Qualcomm
Qualcomm
None of the above
None of the above
Great benefits have brought to mankind by:
1 Mark(s)
Your Answer:
science
science
technology
technology
both a and b
both a and b
astronomy
astronomy
What will be the output of the following Java program? class area { int width; int length; int height; area() { width = 5; length = 6; height = 1; } void volume() { volume = width * height * length; } } class cons_method { public static void main(String args[]) { area obj = new area(); obj.volume(); System.out.println(obj.volume); } }
1 Mark(s)
Your Answer:
0
0
1
1
25
25
30
30
What will be the output of the following C# code? static void Main(string[] args) { { var dayCode = "MTWFS"; var daysArray = new List<string>(); var list = new Dictionary<string, string> { {"M", "Monday"}, {"T", "Tuesday"}, {"W", "Wednesday"}, {"R", "Thursday"}, {"F", "Friday"}, {"S", "Saturday"}, {"U", "Sunday"} }; for (int i = 0,max = dayCode.Length; i < max; i++) { var tmp = dayCode[i].ToString(); if (list.ContainsKey(tmp)) { daysArray.Add(list[tmp]); } } Console.WriteLine(string.Join("\n ", daysArray)); }
1 Mark(s)
Your Answer:
Monday, Tuesday, Wednesday, Friday, Saturday, Sunday
Monday, Tuesday, Wednesday, Friday, Saturday, Sunday
Monday Tuesday Wednesday Friday Sunday
Monday Tuesday Wednesday Friday Sunday
Monday Tuesday Wednesday Friday Saturday
Monday Tuesday Wednesday Friday Saturday
Monday, Tuesday, Wednesday, Friday, Saturday
Monday, Tuesday, Wednesday, Friday, Saturday
In a computer, RAM stands for:
1 Mark(s)
Your Answer:
readily available memory
readily available memory
read and more memory
read and more memory
random access memory
random access memory
remember all memory
remember all memory
What does the "params" keyword allow in C#?
1 Mark(s)
Your Answer:
Variable number of method arguments
Variable number of method arguments
Passing multiple arguments
Passing multiple arguments
Passing array of arguments
Passing array of arguments
Passing reference to arguments
Passing reference to arguments
Any recursive view must be defined as the union of subqueries of number:
1 Mark(s)
Your Answer:
Two
Two
Three
Three
Four
Four
Five
Five
Question: Which of the following is not a very typical scenario for Divide and Conquer?
1 Mark(s)
Your Answer:
The shortest path in a given graph
The shortest path in a given graph
Matrix multiplication
Matrix multiplication
Calculating Fibonacci numbers
Calculating Fibonacci numbers
Solving the traveling salesman problem.
Solving the traveling salesman problem.
What is the purpose of the 'static' keyword in a C++ function?
1 Mark(s)
Your Answer:
Declares the function as a member of a class
Declares the function as a member of a class
Prevents the function from being called recursively
Prevents the function from being called recursively
Defines the function to be inline
Defines the function to be inline
Retains the variable's value between function calls
Retains the variable's value between function calls
Spark architecture is . . . . . . . . times as fast as Hadoop disk-based Apache Mahout and even scales better than Vowpal Wabbit.
1 Mark(s)
Your Answer:
10
10
20
20
50
50
100
100
In voice over IP, Term SIP stands for:
1 Mark(s)
Your Answer:
Session Initiation protocol
Session Initiation protocol
Session Initiation Port
Session Initiation Port
Session Initiation Path
Session Initiation Path
Session Initiation Packet
Session Initiation Packet
How do you convert a string containing an integer to an integer data type?
1 Mark(s)
Your Answer:
int("5")
int("5")
integer("5")
integer("5")
to_int("5")
to_int("5")
convert("5", int)
convert("5", int)
What is a "predicate method" in Ruby?
1 Mark(s)
Your Answer:
A method that returns the result of a comparison between two objects
A method that returns the result of a comparison between two objects
A method that takes a block as an argument
A method that takes a block as an argument
A method that raises an exception when called with invalid arguments
A method that raises an exception when called with invalid arguments
A method that returns a boolean value indicating a condition
A method that returns a boolean value indicating a condition
Which of the following is not another name of white box testing?
1 Mark(s)
Your Answer:
Structural testing
Structural testing
Behavioral testing
Behavioral testing
Glass box testing
Glass box testing
None of the mentioned
None of the mentioned
What will be the output of the following C code? #include <stdio.h> printf("%d", sizeof(strlen("HELLOWORLD")));
1 Mark(s)
Your Answer:
Output, 4
Output, 4
Output, 10
Output, 10
Output, 16
Output, 16
Error, sizeof cannot evaluate size of a function
Error, sizeof cannot evaluate size of a function
What is the purpose of the place() method in Tkinter?
1 Mark(s)
Your Answer:
To set the position of a widget using absolute coordinates
To set the position of a widget using absolute coordinates
To arrange widgets horizontally
To arrange widgets horizontally
To handle user input
To handle user input
To create message boxes
To create message boxes
Ada Lovelace was the first programmer woman in computer history, she also known as ________.
1 Mark(s)
Your Answer:
Mother of Calculation
Mother of Calculation
Mother of Monitor
Mother of Monitor
Mother of Computer
Mother of Computer
None
None
What is a keyboard used for ?
1 Mark(s)
Your Answer:
Input text and numbers and send commands to the computer
Input text and numbers and send commands to the computer
To create new keys to use with your computer
To create new keys to use with your computer
To open the computer up
To open the computer up
To create pictures and images and send them to your computer
To create pictures and images and send them to your computer
Which of the following Cleanroom process teams develops set of statistical test to exercise software after development ?
1 Mark(s)
Your Answer:
Specification team
Specification team
Development team
Development team
Certification team
Certification team
All of the mentioned
All of the mentioned
Which protocol assigns IP address to the client connected in the internet?
1 Mark(s)
Your Answer:
DHPP
DHPP
DHHP
DHHP
DHCP
DHCP
None of these
None of these
What is the core component of Hadoop responsible for distributed storage?
1 Mark(s)
Your Answer:
YARN
YARN
HDFS
HDFS
MapReduce
MapReduce
Hive
Hive
The conversion of variables from Type A to Type B in only certain circumstances with complicated rules and additional processing is known as:
1 Mark(s)
Your Answer:
Implicit conversion
Implicit conversion
Explicit conversion
Explicit conversion
Type conversion
Type conversion
both b and c
both b and c
Ruby can be embedded into Hypertext Markup Language(HTML).
1 Mark(s)
Your Answer:
True
True
False
False
'Fern' is related to which species?
1 Mark(s)
Your Answer:
Monera
Monera
Cila
Cila
Pteridophyta
Pteridophyta
Bacteria
Bacteria
Short cut Ctrl + R is used to
1 Mark(s)
Your Answer:
Re-Open the last closed document
Re-Open the last closed document
Re-Print the last printed page
Re-Print the last printed page
Re-Apply the last paragraph formatting
Re-Apply the last paragraph formatting
Right align the selected Paragraph
Right align the selected Paragraph
Choose the correct XHTML for width attribute and its value.
1 Mark(s)
Your Answer:
width=80
width=80
width=”80″
width=”80″
WIDTH=”80″
WIDTH=”80″
WIDTH=80
WIDTH=80
Which of the following is an ordered collection of elements of the same type?
1 Mark(s)
Your Answer:
Set
Set
Bag
Bag
List
List
Dictionary
Dictionary
. . . . . . . . function takes various parameters like formula, data, subset, labels, etc.
1 Mark(s)
Your Answer:
Pears
Pears
Pairs
Pairs
Tears
Tears
Cars
Cars
What is the recommended line length limit for Ruby code according to most style guides?
1 Mark(s)
Your Answer:
No fixed limit
No fixed limit
120 characters
120 characters
80 characters
80 characters
100 characters
100 characters
Best case of the exponential search will have time complexity of?
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)
The major part of the extinction of species occurs in which of the following bio-rich areas?
1 Mark(s)
Your Answer:
Tropical forests
Tropical forests
Wetlands
Wetlands
Coral reefs
Coral reefs
All of the above
All of the above
SolrJ now has first class support for . . . . . . . . API.
1 Mark(s)
Your Answer:
Compactions
Compactions
Collections
Collections
Distribution
Distribution
All of the mentioned
All of the mentioned
In R, which package is specifically designed for working with time series data?
1 Mark(s)
Your Answer:
forecast
forecast
timeSeries
timeSeries
tsdata
tsdata
chron
chron
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.