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.
Data Structures Mock Test 5
Exam Duration:
01:09:00
Data Structures Mock Test 5
: Question
1
of 77
What is the primary purpose of a constructor in object-oriented programming?
1 Mark(s)
Your Answer:
To initialize the attributes of an object when it is created
To initialize the attributes of an object when it is created
To define a method
To define a method
To destroy an object
To destroy an object
To define a class
To define a class
What is the maximum size of an IP packet for IPv4 or IPv6?
1 Mark(s)
Your Answer:
65540
65540
65535
65535
65577
65577
67544
67544
Virtual Memory is:
1 Mark(s)
Your Answer:
Illusion of large memory
Illusion of large memory
Physical memory
Physical memory
Cache memory
Cache memory
Graphics memory
Graphics memory
In Ruby, what does the 'if' statement evaluate?
1 Mark(s)
Your Answer:
Expression
Expression
Boolean value
Boolean value
Integer
Integer
String
String
What keyword is used to declare a constant in Java, which is implicitly final and static?
1 Mark(s)
Your Answer:
final
final
const
const
static
static
constant
constant
What is the primary function of the Hadoop MapReduce "Map-side Aggregation" technique?
1 Mark(s)
Your Answer:
Aggregate values on the mapper side
Aggregate values on the mapper side
Combine intermediate key-value pairs on the mapper side
Combine intermediate key-value pairs on the mapper side
Sort and shuffle data
Sort and shuffle data
Distribute data to reducers
Distribute data to reducers
Question: Which among the following problems can be solved efficiently using the Divide and Conquer approach?
1 Mark(s)
Your Answer:
Linear Programming
Linear Programming
Sorting a linked list
Sorting a linked list
Polynomial Multiplication
Polynomial Multiplication
Hashing
Hashing
In Global Service for Mobile (GSM), each band is divided into 124 channels of:
1 Mark(s)
Your Answer:
200 kHz
200 kHz
150 kHz
150 kHz
300 kHz
300 kHz
250 kHz
250 kHz
The statement correct about structures is:
1 Mark(s)
Your Answer:
A struct never declares a default constructor.
A struct never declares a default constructor.
All value types in C# inherently derive from ValueType, which inherits from Object
All value types in C# inherently derive from ValueType, which inherits from Object
A struct never declares a default destructor.
A struct never declares a default destructor.
In C#, classes and structs are semantically same.
In C#, classes and structs are semantically same.
Annotations which are applied to other annotations are called meta annotations.
1 Mark(s)
Your Answer:
True
True
False
False
What is the non handle array representing a row of values?
1 Mark(s)
Your Answer:
$rc
$rc
$rv
$rv
$rows
$rows
$ary
$ary
What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] B = [[3, 3, 3], [4, 4, 4], [5, 5, 5]] zip(A, B)
1 Mark(s)
Your Answer:
Address of the zip object
Address of the zip object
Address of the matrices A and B
Address of the matrices A and B
No output
No output
[3, 6, 9, 16, 20, 24, 35, 40, 45]
[3, 6, 9, 16, 20, 24, 35, 40, 45]
Which of the following operators is used for exponentiation in R?
1 Mark(s)
Your Answer:
**
**
^
^
//
//
%^%
%^%
Which gate is known as the Universal Gate?
1 Mark(s)
Your Answer:
NAND
NAND
XOR
XOR
AND
AND
OR
OR
What protocol is used to find the hardware address of a local device?
1 Mark(s)
Your Answer:
RARP
RARP
ARP
ARP
IP
IP
ICMP
ICMP
What will be the output of the following PHP code ? <?php $hello = "Hello World"; $bye = "Bye"; echo $hello;"$bye"; ?>
1 Mark(s)
Your Answer:
Hello World
Hello World
Bye
Bye
Hello worldBye
Hello worldBye
Error
Error
You are required to give brief of your role duties, which of the following would you use?
1 Mark(s)
Your Answer:
PowerPoint
PowerPoint
Excel
Excel
Word
Word
Notepad
Notepad
What does all media type is used for?
1 Mark(s)
Your Answer:
For use with all devices
For use with all devices
For use with speech synthesizers
For use with speech synthesizers
For use with handheld devices
For use with handheld devices
For use with tactile Braille devices
For use with tactile Braille devices
Note book, laptop,palm,hand-held computers are coming under the category of__________computer?
1 Mark(s)
Your Answer:
Digital computer
Digital computer
Mainframe computer
Mainframe computer
Portable computer
Portable computer
Hybrid computer
Hybrid computer
How can you prevent data skew in a Hadoop job with uneven key distribution?
1 Mark(s)
Your Answer:
Increase the number of reducers
Increase the number of reducers
Decrease the number of reducers
Decrease the number of reducers
Use a custom partitioner
Use a custom partitioner
Use a combiner function
Use a combiner function
Which element is considered the largest source of world's commercial energy consumption?
1 Mark(s)
Your Answer:
Coal
Coal
Oil
Oil
Natural gas
Natural gas
Nuclear
Nuclear
What will be the output of the following C# code conversion? static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.ToChar(b))); Console.ReadLine(); }
1 Mark(s)
Your Answer:
1, 97
1, 97
97, 65
97, 65
65, 97
65, 97
97, 1
97, 1
Internet uses which type of switching?
1 Mark(s)
Your Answer:
Circuit switching
Circuit switching
Telephone switching
Telephone switching
Packet switching
Packet switching
Telex switching Answer
Telex switching Answer
Which shortcut key is used to insert a text in a cell?
1 Mark(s)
Your Answer:
Enter
Enter
F2
F2
F5
F5
Tab
Tab
What is the time complexity of delete function in the 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)
What is the time complexity of inserting an element at the end of an array?
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 method is used to find the number of days between two Date objects in Ruby?
1 Mark(s)
Your Answer:
days_until
days_until
days_difference
days_difference
subtract_date
subtract_date
difference_in_days
difference_in_days
In the Boyer-Moore algorithm, what is the purpose of the bad character rule?
1 Mark(s)
Your Answer:
To preprocess the text.
To preprocess the text.
To sort characters of the pattern.
To sort characters of the pattern.
To check for hash collisions.
To check for hash collisions.
To skip portions of the text that cannot match.
To skip portions of the text that cannot match.
Which of the following planet has 62 moons?
1 Mark(s)
Your Answer:
Saturn
Saturn
Neptune
Neptune
Pluto
Pluto
Mars
Mars
What will happen after compiling and running following code? class A implements Runnable{ public void run(){ System.out.println("run-a"); } } public class Test{ public static void main(String... args){ A a = new A(); Thread t = new Thread(a); t.start(); t.start(); } }
1 Mark(s)
Your Answer:
run-a
run-a
run-a run-a
run-a run-a
Compilation fails with an error at line 6
Compilation fails with an error at line 6
Compilation succeed but Runtime Exception
Compilation succeed but Runtime Exception
None of these
None of these
The language that does not provide the full expressive power of a general-purpose language, is:
1 Mark(s)
Your Answer:
DB2
DB2
SQL
SQL
Oracle
Oracle
JAVA
JAVA
Talc powder when mix in water it:
1 Mark(s)
Your Answer:
never dissolve
never dissolve
dissolved
dissolved
soluble
soluble
mix
mix
Which of these exception is thrown by close() and read() methods?
1 Mark(s)
Your Answer:
IOException
IOException
FileException
FileException
FileNotFoundException
FileNotFoundException
FileInputOutputException
FileInputOutputException
The ________ button toggles capital letter for inputs.
1 Mark(s)
Your Answer:
capslock
capslock
alt
alt
ctrl
ctrl
none of these
none of these
Computers that are favored by engineers and designers who need a high-performance system, are:
1 Mark(s)
Your Answer:
super computers
super computers
play stations
play stations
workstations
workstations
tabulators
tabulators
A data communications system has:
1 Mark(s)
Your Answer:
4 components
4 components
5 components
5 components
6 components
6 components
7 components
7 components
: Which of the following is the correct syntax to define a function for a class?
1 Mark(s)
Your Answer:
class T4Tutorials{public: void display(){cout<<“welcome”;}};
class T4Tutorials{public: void display(){cout<<“welcome”;}};
class T4Tutorials{public: void display();}; void T4Tutorials::display(){cout<<“welcome”;}
class T4Tutorials{public: void display();}; void T4Tutorials::display(){cout<<“welcome”;}
Both are correct
Both are correct
Both are wrong
Both are wrong
If the size of the stack is 10 and we try to add the 11th element in the stack then the condition is known as___
1 Mark(s)
Your Answer:
Underflow
Underflow
Garbage collection
Garbage collection
Overflow
Overflow
None of the above
None of the above
The first mechanical calculating machine was made by ________________________?
1 Mark(s)
Your Answer:
William Oughtred
William Oughtred
Gottfried Leibnitz
Gottfried Leibnitz
Blaise Pascal
Blaise Pascal
Charles Babbage
Charles Babbage
The method in which one channel carries all transmissions simultaneously is:
1 Mark(s)
Your Answer:
TDMA
TDMA
CDMA
CDMA
FDMA
FDMA
CSMA
CSMA
Tab, Caps Lock, Back Space and Enter keys are four specific functions of:
1 Mark(s)
Your Answer:
numeric keys
numeric keys
alphanumeric keys
alphanumeric keys
function keys
function keys
modifier keys
modifier keys
Generation of finer-granularity from coarse-granularity data is:
1 Mark(s)
Your Answer:
Possible
Possible
Not possible
Not possible
Simple
Simple
Complex
Complex
Any factor, trait, or condition that can exist in differing amounts or types is:
1 Mark(s)
Your Answer:
variable
variable
function
function
equation
equation
math equation
math equation
___________is the key we use to run the selected command?
1 Mark(s)
Your Answer:
SHIFT
SHIFT
TAB
TAB
ENTER
ENTER
CTRL
CTRL
A void pointer cannot point to which of these?
1 Mark(s)
Your Answer:
methods in c++
methods in c++
class member in c++
class member in c++
methods & class member in c++
methods & class member in c++
none of the mentioned
none of the mentioned
Which key is used to select the whole document?
1 Mark(s)
Your Answer:
Ctrl + S
Ctrl + S
Ctrl + C
Ctrl + C
Ctrl + P
Ctrl + P
Ctrl + A
Ctrl + A
What is the purpose of a module in Python?
1 Mark(s)
Your Answer:
To define classes
To define classes
To create graphical interfaces
To create graphical interfaces
To organize functions, classes, and variables
To organize functions, classes, and variables
To execute code line by line
To execute code line by line
The quantity of actual material in a region that is not part of crystal lattice is:
1 Mark(s)
Your Answer:
large
large
small
small
negligible
negligible
zero
zero
How do you change the font of a widget's text in Tkinter?
1 Mark(s)
Your Answer:
font.set("NewFont")
font.set("NewFont")
widget.font("NewFont")
widget.font("NewFont")
widget.configure(font="NewFont")
widget.configure(font="NewFont")
widget.set_font("NewFont")
widget.set_font("NewFont")
Scanner with a resolution of 600 dots per inch can split image into:
1 Mark(s)
Your Answer:
600x600 areas
600x600 areas
600x100 areas
600x100 areas
600x1200 areas
600x1200 areas
600x300 areas
600x300 areas
What is the purpose of the count() method for lists?
1 Mark(s)
Your Answer:
Counts the occurrences of a specific element
Counts the occurrences of a specific element
Adds the elements of one list to another
Adds the elements of one list to another
Finds the index of a specific element
Finds the index of a specific element
Reverses the list
Reverses the list
Which of the following property determines how much variation in pitch or tone will be created by the speech synthesize when reading an element?
1 Mark(s)
Your Answer:
voice-pitch
voice-pitch
voice-range
voice-range
voice-stress
voice-stress
none of the mentioned
none of the mentioned
In a Binary Search Tree (BST), what happens when you perform an inorder traversal?
1 Mark(s)
Your Answer:
Nodes are visited in ascending order.
Nodes are visited in ascending order.
Nodes are visited in descending order.
Nodes are visited in descending order.
Nodes are visited in a random order.
Nodes are visited in a random order.
Nodes are visited in the order they were inserted.
Nodes are visited in the order they were inserted.
Perfect circular orbit has eccentricity of:
1 Mark(s)
Your Answer:
zero
zero
one
one
ten
ten
undefined
undefined
What is the purpose of the Take operator in LINQ?
1 Mark(s)
Your Answer:
Returns a specific element from a sequence
Returns a specific element from a sequence
Returns the number of elements in a sequence
Returns the number of elements in a sequence
Returns the last element of a sequence
Returns the last element of a sequence
Returns a specified number of contiguous elements from the start of a sequence
Returns a specified number of contiguous elements from the start of a sequence
Green plants and grass are called:
1 Mark(s)
Your Answer:
producers
producers
consumers
consumers
decomposers
decomposers
greenery
greenery
In Pig, what is the purpose of the GROUP BY statement?
1 Mark(s)
Your Answer:
Sort data based on a specified key
Sort data based on a specified key
Join data from multiple relations
Join data from multiple relations
Load data into a relation
Load data into a relation
Group data based on a specified key
Group data based on a specified key
The programs of computer system can be executed through instructions by:
1 Mark(s)
Your Answer:
Input devices
Input devices
Output devices
Output devices
operating system
operating system
CPU
CPU
Copyright symbol can be included by . . . . . . . .
1 Mark(s)
Your Answer:
<
<
©
©
&
&
>
>
How can you quickly zoom in and out in Photoshop?
1 Mark(s)
Your Answer:
Ctrl + Z
Ctrl + Z
Ctrl + +/- -.
Ctrl + +/- -.
Ctrl + T
Ctrl + T
Ctrl + X
Ctrl + X
Which header file should be included for input and output functions in C?
1 Mark(s)
Your Answer:
<stdlib.h>
<stdlib.h>
<stdio.h>
<stdio.h>
<math.h>
<math.h>
<string.h>
<string.h>
Mechanical devices that make-up the computer are called:
1 Mark(s)
Your Answer:
software
software
hardware
hardware
netware
netware
groupware
groupware
: A process in which source code is translated into machine code is called…
1 Mark(s)
Your Answer:
Linking
Linking
Executing
Executing
Loading
Loading
Compiling
Compiling
Each 'ozone' molecule is made up of three:
1 Mark(s)
Your Answer:
oxygen atoms
oxygen atoms
phosphors atoms
phosphors atoms
carbon dioxide atoms
carbon dioxide atoms
nitrogen atoms
nitrogen atoms
SQL supports forms of user-defined data types, in the form of:
1 Mark(s)
Your Answer:
1 form
1 form
2 forms
2 forms
3 forms
3 forms
4 forms
4 forms
What does the study of an existing system refer to?
1 Mark(s)
Your Answer:
Details of DFD
Details of DFD
Feasibility Study
Feasibility Study
System Analysis
System Analysis
System Planning
System Planning
The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is
1 Mark(s)
Your Answer:
Instance object
Instance object
Constructor object
Constructor object
Destructor object
Destructor object
Prototype object
Prototype object
What is the purpose of the Hadoop Distributed Cache?
1 Mark(s)
Your Answer:
To cache frequently used HDFS data
To cache frequently used HDFS data
To cache frequently used MapReduce code
To cache frequently used MapReduce code
To cache frequently used input data
To cache frequently used input data
To cache intermediate MapReduce results
To cache intermediate MapReduce results
Compilers and interpreters are themselves:______________?
1 Mark(s)
Your Answer:
High-level language
High-level language
Codes
Codes
Programs
Programs
Mnemonics
Mnemonics
An equation containing derivatives of one or more unknown functions with respect to one or more independent variables is said to be a:
1 Mark(s)
Your Answer:
integral equation
integral equation
differential equation
differential equation
algebraic equation
algebraic equation
logical equation
logical equation
Which of the following selects every <a> element whose href attribute value contains the given substring?
1 Mark(s)
Your Answer:
attribute$=value
attribute$=value
attribute*=value
attribute*=value
attribute^=value
attribute^=value
attribute|=value
attribute|=value
What data structure is used for efficiently managing a set of tasks with dependencies?
1 Mark(s)
Your Answer:
Array
Array
Directed Acyclic Graph (DAG)
Directed Acyclic Graph (DAG)
Hash Table
Hash Table
Array
Array
In Hadoop . . . . . . . . go to the Hadoop distribution directory for HDInsight.
1 Mark(s)
Your Answer:
Shell
Shell
Command Line
Command Line
Compaction
Compaction
None of the mentioned
None of the mentioned
In C++, can a function call itself?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Compilation error
Compilation error
Runtime error
Runtime error
Which of the following is not the value for background-repeat property?
1 Mark(s)
Your Answer:
repeat-y
repeat-y
repeat-x
repeat-x
no-repeat
no-repeat
fixed
fixed
In NiFi, what is the role of the "PutDatabaseRecord" processor?
1 Mark(s)
Your Answer:
Join records from multiple tables
Join records from multiple tables
Group records based on a condition
Group records based on a condition
Sort records based on a column
Sort records based on a column
Write records to a database
Write records to a database
In CGI, process starts with each request and will initiate OS level process.
1 Mark(s)
Your Answer:
True
True
False
False
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.