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
:
41
:
00
Q:
1
/
46
🤖
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.
Data Structures Mock Test 15
Exam Duration:
00:41:00
Data Structures Mock Test 15
: Question
1
of 46
What will be the output of the following PHP code ? <?php function mine($num) { $num = 2 + $num; echo $num; } mine(3); ?>
1 Mark(s)
Your Answer:
3
3
$num
$num
5
5
None of the mentioned
None of the mentioned
Win32 application programming interfaces are for
1 Mark(s)
Your Answer:
Windows
Windows
UNIX
UNIX
Linux
Linux
Microsoft
Microsoft
What is the purpose of the Hadoop balancer tool?
1 Mark(s)
Your Answer:
To balance the load across Hadoop nodes
To balance the load across Hadoop nodes
To optimize Hadoop's network performance
To optimize Hadoop's network performance
To allocate more resources to specific nodes
To allocate more resources to specific nodes
To compress data in HDFS
To compress data in HDFS
In Java, can you directly access the run() method of a Thread object?
1 Mark(s)
Your Answer:
Only if the thread is marked as "final"
Only if the thread is marked as "final"
Yes, but it will execute in the current thread, not as a separate thread
Yes, but it will execute in the current thread, not as a separate thread
Only if the thread is marked as "static"
Only if the thread is marked as "static"
None of These
None of These
The number of arguments taken as input which allocating memory dynamically using malloc() is . . . . . . . .
1 Mark(s)
Your Answer:
0
0
1
1
2
2
3
3
Call by value What is a potential risk of using call by reference?
1 Mark(s)
Your Answer:
Memory is duplicated
Memory is duplicated
The function cannot modify the original argument
The function cannot modify the original argument
The function can inadvertently modify the original argument
The function can inadvertently modify the original argument
It uses too much memory
It uses too much memory
Which of the following is used to create a stream that performs both input and output operations?
1 Mark(s)
Your Answer:
ofstream
ofstream
ifstream
ifstream
iostream
iostream
fstream
fstream
In HTML5 how many new semantic elements were introduced?
1 Mark(s)
Your Answer:
4
4
5
5
6
6
8
8
What is false about constructor?
1 Mark(s)
Your Answer:
Constructors cannot be synchronized in Java
Constructors cannot be synchronized in Java
Java does not provide default copy constructor
Java does not provide default copy constructor
Constructor can have a return type
Constructor can have a return type
"this" and "super" can be used in a constructor
"this" and "super" can be used in a constructor
What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy"))
1 Mark(s)
Your Answer:
1
1
True
True
3
3
2
2
MySQL is just as powerful as Oracle and is half the price.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following user type can view audit list
1 Mark(s)
Your Answer:
Tally Vault
Tally Vault
Owner
Owner
Data Entry
Data Entry
Administrator
Administrator
Average speed of an object is equals to:
1 Mark(s)
Your Answer:
total distance covered by object/2
total distance covered by object/2
total distance covered by object/60m
total distance covered by object/60m
total distance covered by object/rate of change of time
total distance covered by object/rate of change of time
2 x total distance covered by object/rate of change of time
2 x total distance covered by object/rate of change of time
What will be the output of the following PHP code ? <?php class Constants { define('MIN_VALUE', '0.0'); define('MAX_VALUE', '1.0'); public static function getMinValue() { return self::MIN_VALUE; } public static function getMaxValue() { return self::MAX_VALUE; } } echo Constants::getMinValue(); echo Constants::getMaxValue(); ?>
1 Mark(s)
Your Answer:
0.01.0
0.01.0
01
01
No output
No output
ERROR
ERROR
What will be the output of the following Java program if input given is 'abcqfghqbcd'? class Input_Output { public static void main(String args[]) throws IOException { char c; BufferedReader obj = new BufferedReader(new InputStreamReader(System.in)); do { c = (char) obj.read(); System.out.print(c); } while(c != 'q'); } }
1 Mark(s)
Your Answer:
abcqfgh
abcqfgh
abc
abc
abcq
abcq
abcqfghq
abcqfghq
What is the result of the following code snippet? window.location === document.location
1 Mark(s)
Your Answer:
False
False
True
True
0
0
1
1
A distributed unit of work allows various statements within a unit of work to refer to multiple remote DBMS locations.
1 Mark(s)
Your Answer:
True
True
False
False
In how many modes can the Closure compiler be run?
1 Mark(s)
Your Answer:
2
2
3
3
4
4
5
5
Which of the following is the first national park in India?
1 Mark(s)
Your Answer:
Gir National park
Gir National park
Kanha National park
Kanha National park
Jim Corbett National park
Jim Corbett National park
Ranthambore National park
Ranthambore National park
Which of the following attribute specifies the URL of the linked resource?
1 Mark(s)
Your Answer:
src
src
link
link
rel
rel
href
href
What does the 'strcat' function in C do?
1 Mark(s)
Your Answer:
Concatenates two strings
Concatenates two strings
Compares two strings
Compares two strings
Copies one string to another
Copies one string to another
Searches for a substring
Searches for a substring
Which one of the following server in DNS usually does not store any information about domains but delegates its authority to other servers, keeping references to those servers?
1 Mark(s)
Your Answer:
main server
main server
sub server
sub server
root server
root server
host server
host server
Process of storing programs and data in a computer memory is called:
1 Mark(s)
Your Answer:
CPU
CPU
data processing
data processing
fixed disk
fixed disk
stored-program concept
stored-program concept
Referential integrity can be violated by the means of:
1 Mark(s)
Your Answer:
Consistency Constraints
Consistency Constraints
Modifications
Modifications
Domain
Domain
Assertions
Assertions
Which are usually variables that are used internally in object methods and also are globally visible variables?
1 Mark(s)
Your Answer:
Object properties
Object properties
Variable properties
Variable properties
Method properties
Method properties
Internal properties
Internal properties
Which data structure is efficient for finding the 'k-th' largest element in a stream?
1 Mark(s)
Your Answer:
Max-Heap
Max-Heap
Min-Heap
Min-Heap
Array
Array
Linked List
Linked List
What keystroke will terminate setup mode?
1 Mark(s)
Your Answer:
Ctrl+Z
Ctrl+Z
Ctrl+^
Ctrl+^
Ctrl+C
Ctrl+C
Ctrl+Shift+^
Ctrl+Shift+^
_______________is the most important/powerful computer in a typical network?
1 Mark(s)
Your Answer:
Desktop
Desktop
Network client
Network client
Network server
Network server
Network station
Network station
The `static` block in Java executes:
1 Mark(s)
Your Answer:
Class load time
Class load time
Object creation time
Object creation time
Method call
Method call
Program end
Program end
Speed of dot-matrix printer is measured in:
1 Mark(s)
Your Answer:
cps
cps
dpi
dpi
ppm
ppm
lmp
lmp
Use the .............. to delete the data inside the table, and not the table itself?
1 Mark(s)
Your Answer:
DROP TABLE
DROP TABLE
DELETE TABLE
DELETE TABLE
TRUNCATE TABLE
TRUNCATE TABLE
REMOVE TABLE
REMOVE TABLE
In Routing Information Protocol (RIP), to send a packet to one of the three networks at the far left, router R1 needs to deliver the packet to:
1 Mark(s)
Your Answer:
R0
R0
R3
R3
R-1
R-1
R2
R2
How do you break out of a loop in Ruby?
1 Mark(s)
Your Answer:
exit()
exit()
break()
break()
continue()
continue()
end()
end()
In MS Word 2010, commands are organized into _____ on the Ribbon.
1 Mark(s)
Your Answer:
Groups
Groups
Tabs
Tabs
Menus
Menus
Toolbars
Toolbars
Which of the following is true about multi-dimensional arrays?
1 Mark(s)
Your Answer:
Memory is not contiguous
Memory is not contiguous
Rows can have different lengths
Rows can have different lengths
They are arrays of arrays
They are arrays of arrays
Cannot store integers
Cannot store integers
What will be the output of the following PHP code ? <?php while() { print "hi"; } ?>
1 Mark(s)
Your Answer:
infinite loop
infinite loop
hi
hi
no output
no output
error
error
There are numerous applications that require computation of similar transitive closures on:
1 Mark(s)
Your Answer:
Templates
Templates
Relations
Relations
Hierarchies
Hierarchies
Temporary tables
Temporary tables
In css what does “color:red” can be called as
1 Mark(s)
Your Answer:
Selector
Selector
Rule
Rule
Declaration
Declaration
None of the above
None of the above
Speed is a:
1 Mark(s)
Your Answer:
vector quantity
vector quantity
scalar quantity
scalar quantity
infinite quantity
infinite quantity
unit vector
unit vector
A class is a concept, abstraction, or thing that makes sense in an application context.
1 Mark(s)
Your Answer:
True
True
False
False
Which header file is required for file handling in C++?
1 Mark(s)
Your Answer:
<iostream>
<iostream>
<fstream>
<fstream>
<file>
<file>
<filestream>
<filestream>
What is the purpose of Hadoop's HDFS Snapshot in the context of security?
1 Mark(s)
Your Answer:
Creating point-in-time copies of HDFS directories
Creating point-in-time copies of HDFS directories
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
What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; int main () { string name ("Jobs"); string family ("Steve"); name += " Apple "; name += family; name += '\n'; cout << name; return 0; }
1 Mark(s)
Your Answer:
Steve Jobs
Steve Jobs
Apple
Apple
Jobs Apple Steve
Jobs Apple Steve
Apple Steve
Apple Steve
The . . . . . . . . executes the Mapper/ Reducer task as a child process in a separate jvm.
1 Mark(s)
Your Answer:
JobTracker
JobTracker
TaskTracker
TaskTracker
TaskScheduler
TaskScheduler
None of the mentioned
None of the mentioned
Which type of binary search tree is imitated for construction of tango tree?
1 Mark(s)
Your Answer:
Complete Binary Search Tree
Complete Binary Search Tree
Perfect Binary Search Tree
Perfect Binary Search Tree
Balanced Binary Search Tree
Balanced Binary Search Tree
Degenerate Binary Search Tree
Degenerate Binary Search Tree
__________ prevents the page from being indexed altogether.
1 Mark(s)
Your Answer:
noarchive
noarchive
nofollow
nofollow
noindex
noindex
novalue
novalue
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.