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
:
12
:
00
Q:
1
/
80
🤖
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.
C++ Programming Mock Test 9
Exam Duration:
01:12:00
C++ Programming Mock Test 9
: Question
1
of 80
Whenever a conductor are placed in a varying magnetic field EMF are induced which is called:
1 Mark(s)
Your Answer:
encapsulated EMF
encapsulated EMF
induced EMF
induced EMF
transnational EMF
transnational EMF
rotational EMF
rotational EMF
Pointing and drop devices includes:
1 Mark(s)
Your Answer:
mouse
mouse
scanner
scanner
printer
printer
CD-ROM
CD-ROM
What is the role of Apache NiFi's "FlowFile" in data flow management?
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
Represents a unit of data being moved
Represents a unit of data being moved
A distributed file system
A distributed file system
During LC oscillation, if q is charge and C is capacitance then electrical energy of capacitor is:
1 Mark(s)
Your Answer:
1/2 (1/C)q2
1/2 (1/C)q2
1/2 Cq2
1/2 Cq2
1/2 Cq3
1/2 Cq3
Cq
Cq
Laboratory vacuum has density of:
1 Mark(s)
Your Answer:
1x1018 kg/m3
1x1018 kg/m3
1x1017 kg/m3
1x1017 kg/m3
1x10-17 kg/m3
1x10-17 kg/m3
1x10-18 kg/m3
1x10-18 kg/m3
Which of the following property defines the offset from an element’s border and its outline?
1 Mark(s)
Your Answer:
outline-border
outline-border
outline-offset
outline-offset
outline-radius
outline-radius
none of the mentioned
none of the mentioned
What is the maximum number of statements recommended in an inline function?
1 Mark(s)
Your Answer:
1
1
2–5
2–5
10
10
No strict limit
No strict limit
Density of Venus is:
1 Mark(s)
Your Answer:
3933 kg/m3
3933 kg/m3
5427 kg/m3
5427 kg/m3
5243 kg/m3
5243 kg/m3
687 kg/m3
687 kg/m3
What will be the output of the following Python code snippet? for i in '': print (i)
1 Mark(s)
Your Answer:
None
None
(nothing is printed)
(nothing is printed)
error
error
none of the mentioned
none of the mentioned
Following algorithms are based on the divide-and-conquer programming approach Except?
1 Mark(s)
Your Answer:
Heap Sort
Heap Sort
Merge Sort
Merge Sort
Quick Sort
Quick Sort
Binary Search Answer
Binary Search Answer
Which of the following CSS3 property specifies where to navigate when using the arrow-down navigation key?
1 Mark(s)
Your Answer:
down
down
nav-down
nav-down
arrow-down
arrow-down
none of the mentioned
none of the mentioned
Comb sort is a stable sorting algorithm.
1 Mark(s)
Your Answer:
True
True
False
False
Virtual Local Area Networks (VLANs) provide:
1 Mark(s)
Your Answer:
time-efficiency and security
time-efficiency and security
reduce network traffic
reduce network traffic
both a and b
both a and b
none of the above
none of the above
What refers to the value associated with a specific attribute of an object and to any actions or side ?
1 Mark(s)
Your Answer:
Object
Object
State
State
Interface
Interface
None of the mentioned
None of the mentioned
What will be the output of the following C# code snippet? class sum { public int x; public int y; public int add (int a, int b) { x = a + b; y = x + b; return 0; } } class Program { static void Main(string[] args) { sum obj1 = new sum(); sum obj2 = new sum(); int a = 2; obj1.add(a, a + 1); obj2.add(5, a); Console.WriteLine(obj1.x + " " + obj2.y); Console.ReadLine(); } }
1 Mark(s)
Your Answer:
6, 9
6, 9
5, 9
5, 9
9, 10
9, 10
3, 2
3, 2
The wall of the cell that surrounds the cytoplasm is known as:
1 Mark(s)
Your Answer:
cell membrane
cell membrane
cell wall
cell wall
cytoplasm
cytoplasm
vacuole
vacuole
Buttons present on the most conventional kind of mouse are:
1 Mark(s)
Your Answer:
2
2
3
3
4
4
5
5
The ability to maintain a constant movement without falling is known as:
1 Mark(s)
Your Answer:
equilibrium
equilibrium
balance
balance
static
static
movement
movement
. . . . . . . . can be used to generate stats over the results of arbitrary numeric functions.
1 Mark(s)
Your Answer:
stats.field
stats.field
sta.field
sta.field
stats.value
stats.value
none of the mentioned
none of the mentioned
What is the purpose of the Zip operator in LINQ?
1 Mark(s)
Your Answer:
Returns the number of elements in a sequence
Returns the number of elements in a sequence
Converts a sequence to a List
Converts a sequence to a List
Merges two sequences by using the elements of both sequences
Merges two sequences by using the elements of both sequences
Converts a sequence to an Array
Converts a sequence to an Array
First Computer for home use was introduced in 1981 by which company?
1 Mark(s)
Your Answer:
IBM
IBM
Apple
Apple
Intel
Intel
Dell
Dell
What happens if you increase the value of a node in a max-heap?
1 Mark(s)
Your Answer:
The heap property is restored by moving the node down.
The heap property is restored by moving the node down.
The node is removed, and a new node is added.
The node is removed, and a new node is added.
The heap property is restored by moving the node up.
The heap property is restored by moving the node up.
The heap becomes unbalanced.
The heap becomes unbalanced.
Rm file.txt command of the operating system program is used to:
1 Mark(s)
Your Answer:
delete/remove file
delete/remove file
load file
load file
store file
store file
restore file
restore file
What is the time complexity of the Boyer-Moore string matching algorithm in the best case?
1 Mark(s)
Your Answer:
O(m + n)
O(m + n)
O(n)
O(n)
O(m/n)
O(m/n)
O(m log n)
O(m log n)
What type of file is YUI Compressor?
1 Mark(s)
Your Answer:
Binary file
Binary file
JAR file
JAR file
Text file
Text file
Assembly file
Assembly file
What will be the output for the below code? public class Test{ public static void main(String[] args){ byte i = 128; System.out.println(i); } }
1 Mark(s)
Your Answer:
128
128
0
0
Compilation fails with an error at line 3
Compilation fails with an error at line 3
Compilation fails with an error at line 4
Compilation fails with an error at line 4
None of these
None of these
Determine Output: void main() { int i = -1; +i; printf("i = %d, +i = %d", i, +i); }
1 Mark(s)
Your Answer:
i = -1, +i = 1
i = -1, +i = 1
i = 1, +i = 1
i = 1, +i = 1
i = -1, +i = -1
i = -1, +i = -1
None of These
None of These
Among the following, which shows the Multiple inheritances?
1 Mark(s)
Your Answer:
X,Y->Z
X,Y->Z
X->Y->Z
X->Y->Z
X->Y;X->Z
X->Y;X->Z
None of the above
None of the above
We send a voice signal from a microphone to a recorder, the transmission is:
1 Mark(s)
Your Answer:
base band transmission
base band transmission
broad band transmission
broad band transmission
authenticated
authenticated
broadcast
broadcast
A compressed audio/video file can be downloaded as a:
1 Mark(s)
Your Answer:
image
image
video
video
frame
frame
text file
text file
Which of the following property defines the style for the left border of an element?
1 Mark(s)
Your Answer:
border-style
border-style
border-left-style
border-left-style
border-left-width
border-left-width
border-right
border-right
DFA is an abbreviation of.
1 Mark(s)
Your Answer:
Non Deterministic Finite set Automata
Non Deterministic Finite set Automata
Deterministic Finite Automata
Deterministic Finite Automata
Non Deterministic Finite Automata
Non Deterministic Finite Automata
Deterministic Finite set Automata
Deterministic Finite set Automata
What will be the output of the following Python code snippet? print([if i%2==0: i; else: i+1; for i in range(4)])
1 Mark(s)
Your Answer:
[0, 2, 2, 4]
[0, 2, 2, 4]
[1, 1, 3, 3]
[1, 1, 3, 3]
error
error
none of the mentioned
none of the mentioned
Command used to ask the browser to send you the most updated version of the page you’re viewing is called:?
1 Mark(s)
Your Answer:
View Updated
View Updated
Browser
Browser
Refresh
Refresh
None of these Answer
None of these Answer
Consider the following data. The pre order traversal of a binary tree is A, B, E, C, D. The in order traversal of the same binary tree is B, E, A, D, C. The level order sequence for the binary tree is . . . . . . . .
1 Mark(s)
Your Answer:
A, C, D, B, E
A, C, D, B, E
A, B, C, D, E
A, B, C, D, E
A, B, C, E, D
A, B, C, E, D
D, B, E, A, C
D, B, E, A, C
An error is also known as:
1 Mark(s)
Your Answer:
Bug
Bug
Debug
Debug
Cursor
Cursor
Icon
Icon
None of these
None of these
Which of these benefits can be achieved when software is restructured ?
1 Mark(s)
Your Answer:
Higher quality programs
Higher quality programs
Reduced maintenance effort
Reduced maintenance effort
Software easier to test
Software easier to test
All of the mentioned
All of the mentioned
Except for one metal i.e. Mercury, rest of the metals are solids at:
1 Mark(s)
Your Answer:
oven
oven
room temperature
room temperature
freezing point
freezing point
sunshine
sunshine
What is the default value of an integer array in Java?
1 Mark(s)
Your Answer:
0
0
null
null
-1
-1
undefined
undefined
Which generation of computers used Vacuum Tubes?
1 Mark(s)
Your Answer:
First
First
Second
Second
Third
Third
Fourth
Fourth
The repeated iteration of statements is referred as:
1 Mark(s)
Your Answer:
looping
looping
iterative statements
iterative statements
nested statements
nested statements
both a and b
both a and b
Ctrl + V is used for:
1 Mark(s)
Your Answer:
Copy
Copy
Cut
Cut
Paste
Paste
Save
Save
Interrupt addresses are stored in:
1 Mark(s)
Your Answer:
array
array
stack
stack
indexes
indexes
queue
queue
What will be the output of the following C# code snippet? class MyClass { int[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}; public IEnumerator GetEnumerator() { for (int i = 0; i < 20; i++) { if (a[i] % 2 == 0) yield return (int)(a[i]); } } } class Program { static void Main(string[] args) { MyClass mc = new MyClass(); foreach (int i in mc) Console.Write(i + " "); Console.WriteLine(); Console.ReadLine(); } }
1 Mark(s)
Your Answer:
prints nothing code run successfully
prints nothing code run successfully
run time error
run time error
code runs successfully prints even number between 1 to 20
code runs successfully prints even number between 1 to 20
compile time error
compile time error
Which of the following is used for voucher entry
1 Mark(s)
Your Answer:
Ledger Account
Ledger Account
Groups
Groups
Sub-Groups
Sub-Groups
Depends on number of companies
Depends on number of companies
Some handheld computers contains features of tiny built-in keyboards or microphone that allows:
1 Mark(s)
Your Answer:
text input
text input
data input
data input
print input
print input
voice input
voice input
What will be the output of the following Python code? >>> a={"a":1,"b":2,"c":3} >>> b=dict(zip(a.values(),a.keys())) >>> b
1 Mark(s)
Your Answer:
{'a': 1, 'b': 2, 'c': 3}
{'a': 1, 'b': 2, 'c': 3}
An exception is thrown
An exception is thrown
{'a': 'b': 'c': }
{'a': 'b': 'c': }
{1: 'a', 2: 'b', 3: 'c'}
{1: 'a', 2: 'b', 3: 'c'}
What is the purpose of the Hadoop CombineFileInputFormat?
1 Mark(s)
Your Answer:
Combine intermediate key-value pairs on the mapper side
Combine intermediate key-value pairs on the mapper side
Distribute data to reducers
Distribute data to reducers
Aggregate values on the reducer side
Aggregate values on the reducer side
Sort and shuffle data
Sort and shuffle data
What will be the output of the following C code? #define sqr(x) x*x main() { int a1; a1=25/sqr(5); printf("%d",a1); }
1 Mark(s)
Your Answer:
25
25
1
1
5
5
error
error
What will be the output of the following C++ code? #include <iostream> #include <functional> #include <numeric> using namespace std; int myfunction (int x, int y) { return x + 2 * y; } struct myclass { int operator()(int x, int y) { return x + 3 * y; } } myobject; int main () { int init = 100; int numbers[] = {10, 20, 30}; cout << accumulate(numbers, numbers + 3, init); cout << endl; }
1 Mark(s)
Your Answer:
100
100
140
140
160
160
180
180
How do you open a file named data.txt in read mode in Python?
1 Mark(s)
Your Answer:
file = open('data.txt', 'r')
file = open('data.txt', 'r')
file = open('data.txt', 'read')
file = open('data.txt', 'read')
file = open('data.txt', 'read mode')
file = open('data.txt', 'read mode')
file = open('data.txt')
file = open('data.txt')
In URL encoding replaces non-ASCII characters with . . . . . . . .
1 Mark(s)
Your Answer:
"*"
"*"
"&"
"&"
"%"
"%"
"+"
"+"
In Process to Process delivery, at the transport layer, we need a transport layer:
1 Mark(s)
Your Answer:
ip
ip
link
link
address
address
header
header
Chromatography is generally used by:
1 Mark(s)
Your Answer:
chemists
chemists
farmers
farmers
magician
magician
Nurses
Nurses
Which one of the following lines need to be uncommented or added in the php.ini file so as to enable mysqli extension?
1 Mark(s)
Your Answer:
extension=php_mysqli.dll
extension=php_mysqli.dll
extension=mysql.dll
extension=mysql.dll
extension=php_mysqli.dl
extension=php_mysqli.dl
extension=mysqli.dl
extension=mysqli.dl
What is the role of the import statement in Python?
1 Mark(s)
Your Answer:
To declare variables
To declare variables
To define classes
To define classes
To import external modules
To import external modules
To output text to the console
To output text to the console
Control in design of an information system is used to________________?
1 Mark(s)
Your Answer:
ensure that the system processes data as it was designed to and that the results are reliable
ensure that the system processes data as it was designed to and that the results are reliable
protect data from accidental or intentional loss
protect data from accidental or intentional loss
inspect the system and check that it is built as per specifications
inspect the system and check that it is built as per specifications
ensure privacy of data processed by it
ensure privacy of data processed by it
What is the time complexity of successful linear search?
1 Mark(s)
Your Answer:
O(n log n)
O(n log n)
O(1)
O(1)
O(log n)
O(log n)
O(n)
O(n)
Perpendicular distance from the axis of rotation to the line of action of the force is called:
1 Mark(s)
Your Answer:
lever arm
lever arm
fixed arm
fixed arm
momentum
momentum
impulse
impulse
To change SI units by factors of ten into smaller or bigger units they uses:
1 Mark(s)
Your Answer:
prefixes
prefixes
suffixes
suffixes
symbols
symbols
ratios
ratios
In HBase, what is the purpose of the HBase Multi-Table feature?
1 Mark(s)
Your Answer:
Support the creation and management of multiple HBase tables
Support the creation and management of multiple HBase tables
A storage format in Hadoop
A storage format in Hadoop
A query language for HBase
A query language for HBase
A distributed file system
A distributed file system
Which function displays row data into column or column data into row?
1 Mark(s)
Your Answer:
Hyperlink
Hyperlink
Index
Index
Transpose
Transpose
Rows
Rows
Which one of the following techniques used to spread the bandwidth?
1 Mark(s)
Your Answer:
DSSS
DSSS
FHSS
FHSS
modulation
modulation
spreading
spreading
Point out the wrong statement.
1 Mark(s)
Your Answer:
unmanaged storage is reliable
unmanaged storage is reliable
managed storage is relatively cheap to use
managed storage is relatively cheap to use
most of the user-based applications that work with cloud storage are of unmanaged type
most of the user-based applications that work with cloud storage are of unmanaged type
none of the mentioned
none of the mentioned
Digital signal service is created by Time-division Multiplexing (TDM) through a hierarchy of digital signals and is implemented by:
1 Mark(s)
Your Answer:
radio stations
radio stations
telephone companies
telephone companies
television broadcasting companies
television broadcasting companies
internet
internet
What is the time complexity of binary search on a sorted array?
1 Mark(s)
Your Answer:
O(n log n)
O(n log n)
O(n)
O(n)
O(n2)
O(n2)
O(log n)
O(log n)
The JDBC Connection interface allows the automatic behavior to be turned on or off, by the method:
1 Mark(s)
Your Answer:
setAuto()
setAuto()
setNoAuto()
setNoAuto()
setAutoCommit()
setAutoCommit()
setCommit()
setCommit()
What is the purpose of the static member variable in C++?
1 Mark(s)
Your Answer:
To initialize objects of a class
To initialize objects of a class
To define objects within a class
To define objects within a class
To release resources acquired by the object
To release resources acquired by the object
To maintain common data for all objects
To maintain common data for all objects
What happens when a subclass tries to override a static method from the superclass in Java?
1 Mark(s)
Your Answer:
It overrides the method successfully
It overrides the method successfully
The static method is hidden
The static method is hidden
It results in a compilation error
It results in a compilation error
The static method becomes final
The static method becomes final
Command used to ask the browser to send latest version of page? Refresh
1 Mark(s)
Your Answer:
Browser
Browser
View Update
View Update
Refresh
Refresh
None
None
In which one of the following, the virtual machine simulates hardware, through which it can be independent of the underlying system hardware?
1 Mark(s)
Your Answer:
Para-virtualization
Para-virtualization
Full virtualization
Full virtualization
Emulation
Emulation
None of the above
None of the above
Which storage class is the default for local variables?
1 Mark(s)
Your Answer:
auto
auto
static
static
extern
extern
register
register
Which command is used to print the active document or selected items?
1 Mark(s)
Your Answer:
Ctrl + F
Ctrl + F
Ctrl + P
Ctrl + P
Shift + F
Shift + F
Shift + P
Shift + P
The relationship between a character in the plaintext to a character is:
1 Mark(s)
Your Answer:
many-to-one relationship
many-to-one relationship
one-to-many relationship
one-to-many relationship
many-to-many relationship
many-to-many relationship
one-to-one relationship
one-to-one relationship
23.2 kJ/Kg is the heat of fusion of:
1 Mark(s)
Your Answer:
Lead
Lead
Water
Water
Mercury
Mercury
Copper
Copper
Output of following program? Assume that the size of int is 4 bytes and size of double is 8 bytes, and there is no alignment done by the compiler. C #include<iostream> #include<stdlib.h> using namespace std; template<class T, class U, class V=double> class A { T x; U y; V z; static int count; }; int main() { A<int, int> a; A<double, double> b; cout << sizeof(a) << endl; cout << sizeof(b) << endl; return 0; }
1 Mark(s)
Your Answer:
8 16
8 16
20 28
20 28
Compiler Error: template parameters cannot have default values.
Compiler Error: template parameters cannot have default values.
Which of the following refers to the sequence of pattern that occurs frequently?
1 Mark(s)
Your Answer:
Frequent sub-sequence
Frequent sub-sequence
Frequent sub-structure
Frequent sub-structure
Frequent sub-items
Frequent sub-items
All of the above
All of the above
Which of the following is a disadvantage of using separate chaining using linked lists?
1 Mark(s)
Your Answer:
It requires many pointers
It requires many pointers
It requires linked lists
It requires linked lists
It uses array
It uses array
It does not resolve collision
It does not resolve collision
Which of the following statements about constructor initialization lists in C++ is correct?
1 Mark(s)
Your Answer:
They cannot be used in constructors with default arguments
They cannot be used in constructors with default arguments
They can only be used in copy constructors
They can only be used in copy constructors
They can only be used for primitive data types
They can only be used for primitive data types
They must be used for initializing all members of a class
They must be used for initializing all members of a class
Complex Number Sum in Excel using?
1 Mark(s)
Your Answer:
SUM()
SUM()
IMSUM()
IMSUM()
COMPLEX()
COMPLEX()
CONCAT()
CONCAT()
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.