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
:
10
:
00
Q:
1
/
78
🤖
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 12
Exam Duration:
01:10:00
Algorithms Mock Test 12
: Question
1
of 78
X = X * 3; will:
1 Mark(s)
Your Answer:
create new variable and set value
create new variable and set value
change the value of X
change the value of X
calculate power of x by 3
calculate power of x by 3
give an error
give an error
Computer software designed for the use of sale to general public is called:
1 Mark(s)
Your Answer:
package software
package software
application software
application software
system software
system software
customized software
customized software
In the Longest Mask Matching (LMM), three entries are 127, 126, 124, the first entry should be:
1 Mark(s)
Your Answer:
124
124
126
126
127
127
127 and 124
127 and 124
Which of the following is not necessary for standalone computer? RAM , LAN Card ,Operating System , None of these
1 Mark(s)
Your Answer:
RAM
RAM
LAN Card
LAN Card
Operating System
Operating System
None of these
None of these
Which of the following will not return a value?
1 Mark(s)
Your Answer:
null
null
void
void
empty
empty
free
free
What is the result of the expression *ptr = 42 in C, where ptr is a pointer to an int?
1 Mark(s)
Your Answer:
Set the value pointed to by ptr to 42
Set the value pointed to by ptr to 42
Set the address pointed to by ptr to 42
Set the address pointed to by ptr to 42
Set the size of ptr to 42
Set the size of ptr to 42
Set ptr to a null value
Set ptr to a null value
Which of the following is not included in the certification approach ?
1 Mark(s)
Your Answer:
Creation of usage scenarios
Creation of usage scenarios
Specific usage file
Specific usage file
Generation of test cases from the servers end.
Generation of test cases from the servers end.
Reliability
Reliability
The ______ function in Excel returns the highest value in a set of data that you specify.
1 Mark(s)
Your Answer:
LRG
LRG
AVG
AVG
MAX
MAX
None of these
None of these
A very rare flower requiring a special condition of humidity and warmth for it to blossom, is called:
1 Mark(s)
Your Answer:
rafflesia
rafflesia
violet
violet
rose
rose
daisy
daisy
What will be the output of the following Java code? import java.util.*; public class genericstack <E> { Stack <E> stk = new Stack <E>(); public void push(E obj) { stk.push(obj); } public E pop() { E obj = stk.pop(); return obj; } } class Output { public static void main(String args[]) { genericstack <String> gs = new genericstack<String>(); gs.push("Hello"); System.out.println(gs.pop()); } }
1 Mark(s)
Your Answer:
H
H
Hello
Hello
Runtime Error
Runtime Error
Compilation Error
Compilation Error
The _______property is used to set the color of the text.
1 Mark(s)
Your Answer:
pallet
pallet
colour
colour
color
color
text-decoration
text-decoration
What is the default value of a double variable in Java if it's not explicitly initialized?
1 Mark(s)
Your Answer:
0
0
1
1
-1
-1
Null
Null
Scope of variable is related to definition of variable as: i. Region of code within which variable value is valid and hence can be accessed. ii. No, relation with region where variable is declared its value is valid in entire scope.
1 Mark(s)
Your Answer:
i
i
ii
ii
i, ii
i, ii
None of the mentioned
None of the mentioned
Codes consisting of lines of varying widths or lengths that are computer-readable are known as__________?
1 Mark(s)
Your Answer:
an ASCII code
an ASCII code
a magnetic tape
a magnetic tape
an OCR scanner
an OCR scanner
a bar code
a bar code
What type of data structure is best for implementing binary search?
1 Mark(s)
Your Answer:
Linked List
Linked List
Hash Table
Hash Table
Tree
Tree
Array
Array
In C++, which type of inheritance involves inheriting from multiple base classes, but only inheriting one level deep from each base class?
1 Mark(s)
Your Answer:
Hierarchical inheritance
Hierarchical inheritance
Multilevel inheritance
Multilevel inheritance
Single inheritance
Single inheritance
None of the above
None of the above
What will be the output of the following Python code? >>> a={5,6,7,8} >>> b={7,5,6,8} >>> a==b
1 Mark(s)
Your Answer:
True
True
False
False
If a table has been normalized so that all determinants are candidate keys, then that table is in:
1 Mark(s)
Your Answer:
1NF.
1NF.
2NF.
2NF.
3NF.
3NF.
BCNF.
BCNF.
What is the purpose of the before hook in RSpec?
1 Mark(s)
Your Answer:
Executes code after all examples
Executes code after all examples
Executes code before all examples
Executes code before all examples
Executes code after each example
Executes code after each example
Executes code before each example
Executes code before each example
Chloride ion has number of protons:
1 Mark(s)
Your Answer:
17
17
18
18
24
24
34
34
What is the result of the following code snippet? try { throw new ArithmeticException(); } catch (Exception e) { System.out.println("Exception!"); } catch (ArithmeticException e) { System.out.println("Arithmetic Exception!"); }
1 Mark(s)
Your Answer:
Arithmetic Exception!
Arithmetic Exception!
Compilation error
Compilation error
Runtime exception
Runtime exception
ArithmeticException
ArithmeticException
What is not the use of "this" keyword in Java?
1 Mark(s)
Your Answer:
Passing itself to another method
Passing itself to another method
Calling another constructor in constructor chaining
Calling another constructor in constructor chaining
Referring to the instance variable when local variable has the same name
Referring to the instance variable when local variable has the same name
Passing itself to method of the same class
Passing itself to method of the same class
Smallest font size in MS-word is____________?
1 Mark(s)
Your Answer:
6
6
8
8
10
10
12
12
Which is the first program run on a computer when the computer boots up?
1 Mark(s)
Your Answer:
System software
System software
Operating system
Operating system
System operations
System operations
None
None
In MS-Word, words, lines or paragraphs can be selected by using_____?
1 Mark(s)
Your Answer:
Shift
Shift
Alt
Alt
Ctrl
Ctrl
F5
F5
What the does random.seed(3) return?
1 Mark(s)
Your Answer:
True
True
None
None
3
3
1
1
What does HTTP stands for in the context of WWW?
1 Mark(s)
Your Answer:
Hypertext Transfer Protocol
Hypertext Transfer Protocol
Hypertext Transfer Protection
Hypertext Transfer Protection
Hyper Transfer Protocol
Hyper Transfer Protocol
None of these
None of these
What is the purpose of Hadoop's HDFS Access Control Lists (ACLs) in securing data access?
1 Mark(s)
Your Answer:
Optimizes data replication in HDFS
Optimizes data replication in HDFS
Enforces data compression in HDFS
Enforces data compression in HDFS
Accelerates MapReduce job execution
Accelerates MapReduce job execution
Provides fine-grained access control
Provides fine-grained access control
To combines the concepts of the strict source route and the loose source route options of IPv4 we use:
1 Mark(s)
Your Answer:
source extension
source extension
source headers
source headers
source routing
source routing
source host
source host
Which of these methods is a part of Abstract Window Toolkit (AWT) ?
1 Mark(s)
Your Answer:
display()
display()
paint()
paint()
drawString()
drawString()
transient()
transient()
The design guidelines and priorities for read-only databases are different because read-only databases are never updated.
1 Mark(s)
Your Answer:
True
True
False
False
How can we filter lines based on content?
1 Mark(s)
Your Answer:
lines.filter()
lines.filter()
filter(lines)
filter(lines)
lines.contains(filter)
lines.contains(filter)
lines.select()
lines.select()
A flow of data needs resources such as a buffer, bandwidth and:
1 Mark(s)
Your Answer:
CPU time
CPU time
timer
timer
control flow
control flow
cpu control
cpu control
The minimum bandwidth of Manchester and differential Manchester is:
1 Mark(s)
Your Answer:
2 times that of NRZ
2 times that of NRZ
2 times that of NRZ-L
2 times that of NRZ-L
2 times that of NRZ-I
2 times that of NRZ-I
2 times that of RZ
2 times that of RZ
Statistical analysis requires groups of multiple:
1 Mark(s)
Your Answer:
Tuples
Tuples
Attributes
Attributes
Relations
Relations
Instances
Instances
What are the three options available in Insert > Picture menu?
1 Mark(s)
Your Answer:
Clipart, Pictures, Shapes
Clipart, Pictures, Shapes
Clipart, From File, Shapes
Clipart, From File, Shapes
Clipart, From Files, AutoShapes
Clipart, From Files, AutoShapes
Clipart, Pictures, AutoShapes
Clipart, Pictures, AutoShapes
Which of the following options is not true about the Binary Search tree?
1 Mark(s)
Your Answer:
The value of the left child should be less than the root node
The value of the left child should be less than the root node
The value of the right child should be greater than the root node.
The value of the right child should be greater than the root node.
The left and right sub trees should also be a binary search tree
The left and right sub trees should also be a binary search tree
None of the above
None of the above
What is the space complexity of the in-order traversal in the recursive fashion? (d is the tree depth and n is the number of nodes)
1 Mark(s)
Your Answer:
O(1)
O(1)
O(nlogd)
O(nlogd)
O(logd)
O(logd)
O(d)
O(d)
Which of the following commands will allow you to set your Telnet password on a Cisco router?
1 Mark(s)
Your Answer:
line telnet 0 4
line telnet 0 4
line aux 0 4
line aux 0 4
line vty 0 4
line vty 0 4
line con 0
line con 0
Which of the following style properties do you use to specify italic text in MS Word?
1 Mark(s)
Your Answer:
Font-italic
Font-italic
Font-style
Font-style
Text-style
Text-style
None of these
None of these
If you know all the possible values that an attribute can have, you can enumerate those values in ODL.
1 Mark(s)
Your Answer:
True
True
False
False
What is the time complexity of adding an edge in an adjacency list representation of a graph?
1 Mark(s)
Your Answer:
O(V)
O(V)
O(E)
O(E)
O(1)
O(1)
O(V2)
O(V2)
What is the name of C3H8?
1 Mark(s)
Your Answer:
Butane
Butane
Propene
Propene
Ethane
Ethane
Propane
Propane
Minimum and maximum font size in MS Word is _____?
1 Mark(s)
Your Answer:
8-72
8-72
6-60
6-60
12-50
12-50
8-96
8-96
Which field type will you select when creating a new table if you require to enter long text in that field?
1 Mark(s)
Your Answer:
Text
Text
Memo
Memo
Currency
Currency
Hyperlink
Hyperlink
The benefit of streamlined body is that, it helps animal to move freely without:
1 Mark(s)
Your Answer:
oxygen
oxygen
friction
friction
sinking
sinking
bursting
bursting
In rollback work, the database state is:
1 Mark(s)
Your Answer:
Modified
Modified
Constant
Constant
Restored
Restored
Mismanaged
Mismanaged
In message integrity, the message digest needs to be kept:
1 Mark(s)
Your Answer:
secret
secret
low
low
high
high
constant 0
constant 0
Creating a read-only database is a task that is ________ assigned to beginning database professionals.
1 Mark(s)
Your Answer:
always
always
commonly
commonly
seldom
seldom
never
never
Which gate checks for equality?
1 Mark(s)
Your Answer:
XOR
XOR
XNOR
XNOR
NAND
NAND
NOR
NOR
Which of the following keyboard shortcuts is used to activate a browser tab to the right of the current tab in a Chrome browser?
1 Mark(s)
Your Answer:
Ctrl + Page up
Ctrl + Page up
Ctrl + Right arrow
Ctrl + Right arrow
Alt + Left arrow
Alt + Left arrow
Ctrl + Page down
Ctrl + Page down
Which of the following is correct about this pointer in C++?
1 Mark(s)
Your Answer:
this pointer is passed as a hidden argument in all the functions of a class
this pointer is passed as a hidden argument in all the functions of a class
this pointer is passed as a hidden argument in all non-static functions of a class
this pointer is passed as a hidden argument in all non-static functions of a class
this pointer is passed as a hidden argument in all static functions of a class
this pointer is passed as a hidden argument in all static functions of a class
this pointer is passed as a hidden argument in all static variables of a class
this pointer is passed as a hidden argument in all static variables of a class
What will be the output of the following Python code? class test: def __init__(self,a="Hello World"): self.a=a def display(self): print(self.a) obj=test() obj.display()
1 Mark(s)
Your Answer:
The program has an error because constructor can't have default arguments
The program has an error because constructor can't have default arguments
Nothing is displayed
Nothing is displayed
"Hello World" is displayed
"Hello World" is displayed
The program has an error display function doesn't have parameters
The program has an error display function doesn't have parameters
What is the purpose of the GetInvocationList() method associated with delegates in C#?
1 Mark(s)
Your Answer:
Removes a delegate from the current delegate
Removes a delegate from the current delegate
Adds a new delegate to the current delegate
Adds a new delegate to the current delegate
Invokes all the delegates bound to the current delegate
Invokes all the delegates bound to the current delegate
Retrieves an array of delegates bound to the current delegate
Retrieves an array of delegates bound to the current delegate
What will be the output of the following Java program? import java.util.*; class Collection_Algos { public static void main(String args[]) { LinkedList list = new LinkedList(); list.add(new Integer(2)); list.add(new Integer(8)); list.add(new Integer(5)); list.add(new Integer(1)); Iterator i = list.iterator(); Collections.reverse(list); Collections.sort(list); while(i.hasNext()) System.out.print(i.next() + " "); } }
1 Mark(s)
Your Answer:
2 8 5 1
2 8 5 1
1 5 8 2
1 5 8 2
1 2 5 8
1 2 5 8
2 1 8 5
2 1 8 5
Which of these operator is used to generate an instance of an exception than can be thrown by using throw?
1 Mark(s)
Your Answer:
new
new
malloc
malloc
alloc
alloc
thrown
thrown
The star topology is used in:
1 Mark(s)
Your Answer:
LAN
LAN
WAN
WAN
MAN
MAN
internetwork
internetwork
What is the name of the property that indicates the output of linear operation (i.e., the sum of two inputs) similar to that of operation first being performed on individual inputs and then summing up the respective outcomes?
1 Mark(s)
Your Answer:
Heterogeneity
Heterogeneity
Homogeneity
Homogeneity
Additivity
Additivity
None of the above
None of the above
What is the purpose of the event onAirEvent?
1 Mark(s)
Your Answer:
Content is played
Content is played
Content is transfered
Content is transfered
Both Content is played and transfered
Both Content is played and transfered
None of the mentioned
None of the mentioned
Larger scale molecular information can be obtained from:
1 Mark(s)
Your Answer:
elastic scattering
elastic scattering
scattering
scattering
moderate scattering
moderate scattering
light scattering
light scattering
Topological Sort works on:
1 Mark(s)
Your Answer:
DAG
DAG
Cyclic Graph
Cyclic Graph
Undirected Graph
Undirected Graph
Tree
Tree
Which of the following are true regarding OSPF areas? 1. You must have separate loopback interfaces configured in each area. 2. The numbers you can assign an area go up to 65,535. 3. The backbone area is also called area 0. 4. If your design is hierarchical, then you don't need multiple areas. 5. All areas must connect to area 0.
1 Mark(s)
Your Answer:
1 only
1 only
1 and 2 only
1 and 2 only
3 and 4 only
3 and 4 only
3, 4 and 5
3, 4 and 5
How do you define a constructor in Ruby?
1 Mark(s)
Your Answer:
def initialize
def initialize
def constructor
def constructor
def init
def init
def constructor()
def constructor()
What is the role of the Hive Hadoop Compatibility feature?
1 Mark(s)
Your Answer:
Perform data analytics in Hadoop
Perform data analytics in Hadoop
Manage computation resources
Manage computation resources
Allow Hive to run on Hadoop 1.x and Hadoop 2.x clusters
Allow Hive to run on Hadoop 1.x and Hadoop 2.x clusters
Execute MapReduce jobs
Execute MapReduce jobs
In classful addressing, the smaller networks are called:
1 Mark(s)
Your Answer:
supernet
supernet
linear net
linear net
subnet
subnet
multinet
multinet
A null value indicates an absent value that:
1 Mark(s)
Your Answer:
may exist but unknown
may exist but unknown
known but doesn't exist
known but doesn't exist
doesn't exist and not known
doesn't exist and not known
Both A and B
Both A and B
what is the result of the following piece of code: public class Person{ public void talk(){ System.out.print("I am a Person"); } } public class Student extends Person{ public void talk(){ System.out.print("I am a Student"); } } public class Test{ public static void main(String args[]){ Person p = new Student(); p.talk(); } }
1 Mark(s)
Your Answer:
I am a Person
I am a Person
I am a Student
I am a Student
I am a Person I am a Student
I am a Person I am a Student
I am a Student I am a Person
I am a Student I am a Person
Which of the following is true about the Move-To-Front Method for rearranging nodes?
1 Mark(s)
Your Answer:
node with highest access count is moved to head of the list
node with highest access count is moved to head of the list
requires extra storage
requires extra storage
may over-reward infrequently accessed nodes
may over-reward infrequently accessed nodes
requires a counter for each node
requires a counter for each node
What is the size of a float variable in Java?
1 Mark(s)
Your Answer:
4 bytes
4 bytes
8 bytes
8 bytes
2 bytes
2 bytes
16 bytes
16 bytes
Using ODL, you can define which of the following?
1 Mark(s)
Your Answer:
Attribute
Attribute
Structure
Structure
Operation
Operation
All of the above
All of the above
In ER diagram, Ellipse/Oval represents:
1 Mark(s)
Your Answer:
Entity
Entity
Attribute
Attribute
Relationship
Relationship
Action
Action
Which of the following is a combinational logic circuit that has 2n input lines and a single output line?
1 Mark(s)
Your Answer:
Multiplexer
Multiplexer
Demultiplexer
Demultiplexer
Encoder
Encoder
Decoder
Decoder
Which of the following is used for reading in saved workspaces?
1 Mark(s)
Your Answer:
unserialize
unserialize
load
load
get
get
set
set
In which we clone the object and their constituent parts_______________?
1 Mark(s)
Your Answer:
Deep cloning
Deep cloning
Shallow cloning
Shallow cloning
Both of above
Both of above
None of above
None of above
Burnt sparklers and burnt books pages are examples of:
1 Mark(s)
Your Answer:
reversible
reversible
irreversible
irreversible
same
same
constant
constant
Two classes of services have been defined for:
1 Mark(s)
Your Answer:
integrated services
integrated services
quality data services
quality data services
technical services
technical services
protocol services
protocol services
What is the name of the function that is used to convert multibyte character to wide character?
1 Mark(s)
Your Answer:
mblen()
mblen()
mbtowc()
mbtowc()
mbstowcs()
mbstowcs()
wcstombs()
wcstombs()
System software which does the job of merging the records from two files into one is:
1 Mark(s)
Your Answer:
security software
security software
utility program
utility program
networking software
networking software
documentation system
documentation system
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.