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
:
50
:
00
Q:
1
/
55
🤖
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.
Python Programming Mock Test 14
Exam Duration:
00:50:00
Python Programming Mock Test 14
: Question
1
of 55
To add an internal card to a computer, it must have an open:
1 Mark(s)
Your Answer:
bay
bay
bus
bus
expansion slot
expansion slot
USB port
USB port
What is a memory fragment in C?
1 Mark(s)
Your Answer:
Unused memory between allocated blocks
Unused memory between allocated blocks
A type of data structure
A type of data structure
A reserved portion of memory
A reserved portion of memory
A function to allocate memory
A function to allocate memory
What does a reference provide?
1 Mark(s)
Your Answer:
Alternate name for the class
Alternate name for the class
Alternate name for the variable
Alternate name for the variable
Alternate name for the pointer
Alternate name for the pointer
Alternate name for the object
Alternate name for the object
What is the output of the expression: "5" + "2" in Ruby?
1 Mark(s)
Your Answer:
"7"
"7"
7
7
52
52
Error
Error
What will be the value of x in the following Python expression, if the result of that expression is 2? x>>2
1 Mark(s)
Your Answer:
8
8
4
4
2
2
1
1
The second step of fractional distillation is heating the mixture so that components evaporate at their:
1 Mark(s)
Your Answer:
boiling point
boiling point
freezing point
freezing point
neutral point
neutral point
none of them
none of them
Database management systems were first introduced in the 1950s.
1 Mark(s)
Your Answer:
True
True
False
False
What will be the output of the following R code? x <- (“a”, “b”) as.logical(x)
1 Mark(s)
Your Answer:
a b
a b
"a" "b"
"a" "b"
1 1
1 1
Error
Error
Which of the following is the truncation division operator?
1 Mark(s)
Your Answer:
/
/
%
%
//
//
|
|
How many types of framing can do on the data link layer?
1 Mark(s)
Your Answer:
1 type
1 type
2 types
2 types
3 types
3 types
4 types
4 types
What is the default return type of a function in C (pre-C99)?
1 Mark(s)
Your Answer:
int
int
void
void
float
float
char
char
State whether the given statement is true or false. “HTML5 brings to the Web video and audio tracks without needing plugins”.
1 Mark(s)
Your Answer:
True
True
False
False
Number of threads that exists for each of the processes that occurs in the program:
1 Mark(s)
Your Answer:
at most 1
at most 1
atleast 1
atleast 1
only 1
only 1
both at most 1 & atleast 1
both at most 1 & atleast 1
Suppose list1 is [1, 5, 9], what is sum(list1)?
1 Mark(s)
Your Answer:
1
1
9
9
15
15
Error
Error
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 do you execute a stored procedure from Python using the sqlite3 module?
1 Mark(s)
Your Answer:
Using the execute() method
Using the execute() method
Using the call() function
Using the call() function
Using the run() method
Using the run() method
Using the exec_procedure() function
Using the exec_procedure() function
What happens if an exception is raised within a rescue block in Ruby?
1 Mark(s)
Your Answer:
The program enters a loop to retry the operation
The program enters a loop to retry the operation
The program continues execution as normal
The program continues execution as normal
The program terminates with an error message
The program terminates with an error message
The exception is handled by an outer rescue block, if present
The exception is handled by an outer rescue block, if present
In a binary heap, which of the following operations is O(log n) in time complexity?
1 Mark(s)
Your Answer:
Insert
Insert
Find minimum
Find minimum
Delete minimum
Delete minimum
Both Insert and Delete minimum
Both Insert and Delete minimum
Which of the following step is taken after finding an element having value greater than the element being searched?
1 Mark(s)
Your Answer:
binary search takes place in the forward direction
binary search takes place in the forward direction
binary search takes place in a backward direction
binary search takes place in a backward direction
linear search takes place in the forward direction
linear search takes place in the forward direction
linear search takes place in the backward direction
linear search takes place in the backward direction
Which of the following is true? 1. A class can extend more than one class. 2. A class can extend only one class but many interfaces. 3. An interface can extend many interfaces. 4. An interface can implement many interfaces. 5. A class can extend one class and implement many interfaces.
1 Mark(s)
Your Answer:
1 and 2
1 and 2
2 and 4
2 and 4
3 and 5
3 and 5
3 and 4
3 and 4
2 and 5
2 and 5
Which of the given statement is true for Conditional Probability?
1 Mark(s)
Your Answer:
Conditional Probability gives 100% accurate results.
Conditional Probability gives 100% accurate results.
Conditional Probability can be applied to a single event.
Conditional Probability can be applied to a single event.
Conditional Probability has no effect or relevance on independent events.
Conditional Probability has no effect or relevance on independent events.
None of the above.
None of the above.
What is the key difference between binary search and interpolation search?
1 Mark(s)
Your Answer:
Interpolation search requires a sorted array.
Interpolation search requires a sorted array.
Binary search can handle unsorted arrays.
Binary search can handle unsorted arrays.
Interpolation search is always faster.
Interpolation search is always faster.
Binary search is based on divide-and-conquer, while interpolation search estimates positions.
Binary search is based on divide-and-conquer, while interpolation search estimates positions.
The piggybacking is used to improve the bidirectional protocol's:
1 Mark(s)
Your Answer:
performance
performance
timing
timing
efficiency
efficiency
error control
error control
Prior to which version of PHP did constructors took the name of the enclosing class.
1 Mark(s)
Your Answer:
PHP 4
PHP 4
PHP 5
PHP 5
PHP 5.3
PHP 5.3
PHP 5.4
PHP 5.4
In which scenario is the Naive string matching algorithm the least efficient?
1 Mark(s)
Your Answer:
When the pattern and text are very long.
When the pattern and text are very long.
When the pattern is very short.
When the pattern is very short.
When the text is sorted.
When the text is sorted.
When there are many matches in the text.
When there are many matches in the text.
Match the items given in column I with their characteristics given in column II and select the correct option. Column I Column II A. Solution 1. Shows the Tyndall effect, stable B. Colloid 2. Fixed composition, cannot be separated physically C. Suspension 3. Shows the Tyndall effect, unstable D. Pure substance 4. No Tyndall effect, clear
1 Mark(s)
Your Answer:
A) A – 1, B – 2, C – 3, D – 4
A) A – 1, B – 2, C – 3, D – 4
B) A – 3, B – 4, C – 1, D – 2
B) A – 3, B – 4, C – 1, D – 2
C) A – 2, B – 3, C – 4, D – 1
C) A – 2, B – 3, C – 4, D – 1
D) A – 4, B – 1, C – 3, D – 2 Solution 3. Shows the Tyndall effect, unstable B. Colloid 4. No Tyndall effect, clear C. Suspension 1. Shows the Tyndall effect, stable D. Pure substance 2. Fixed composition, cannot be separated physically
D) A – 4, B – 1, C – 3, D – 2 Solution 3. Shows the Tyndall effect, unstable B. Colloid 4. No Tyndall effect, clear C. Suspension 1. Shows the Tyndall effect, stable D. Pure substance 2. Fixed composition, cannot be separated physically
For each materialized view, some database systems permits the:
1 Mark(s)
Your Answer:
View controller
View controller
Database developer
Database developer
Database administrator
Database administrator
View designer
View designer
Derivative of esinx=:
1 Mark(s)
Your Answer:
esinx
esinx
sinx esinx
sinx esinx
cos x esinx
cos x esinx
cosx ecosx
cosx ecosx
The graphical representation of a database's schema is generated through:
1 Mark(s)
Your Answer:
Relational diagram
Relational diagram
Object-based diagram
Object-based diagram
Semistructured diagram
Semistructured diagram
Entity relationship diagram
Entity relationship diagram
The process of defining two or more methods within the same class that have same name but different parameters list is:
1 Mark(s)
Your Answer:
method overloading
method overloading
method overriding
method overriding
encapsulation
encapsulation
inheritance
inheritance
What is the maximum distance with maximum data rate for 802.11g?
1 Mark(s)
Your Answer:
About 65-75 feet
About 65-75 feet
About 90-100 feet
About 90-100 feet
About 150 feet
About 150 feet
Over 200 feet
Over 200 feet
Period of rotation of Mercury w.r.t distant stars is:
1 Mark(s)
Your Answer:
58.7 d
58.7 d
−243 d
−243 d
−-0.451 d
−-0.451 d
0.997 d
0.997 d
A Turing Machine can recognize:
1 Mark(s)
Your Answer:
Regular
Regular
Context Free
Context Free
Context Sensitive
Context Sensitive
Recursively Enumerable
Recursively Enumerable
CBT stands for:
1 Mark(s)
Your Answer:
Core-Based Transmission
Core-Based Transmission
Core-Based Tree
Core-Based Tree
Core-Based Tracer
Core-Based Tracer
Core-Based Target
Core-Based Target
Does a 'TRUNCATE' operation fire ON DELETE triggers?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Depends on DB
Depends on DB
Only if specified
Only if specified
What is a time complexity for finding the longest substring that is repeated in a string?
1 Mark(s)
Your Answer:
O (log n!)
O (log n!)
Ɵ (n!)
Ɵ (n!)
O (n2+ n1)
O (n2+ n1)
Ɵ (n)
Ɵ (n)
The result of the operators ">","=","= =":
1 Mark(s)
Your Answer:
Int
Int
Float
Float
Char
Char
Bool
Bool
Which experiment can prove that yeast is alive and actively growing?
1 Mark(s)
Your Answer:
A) Keeping it in sunlight
A) Keeping it in sunlight
B) Mixing it with a cold sugar solution
B) Mixing it with a cold sugar solution
C) Mixing it with a warm sugar solution and observing gas formation
C) Mixing it with a warm sugar solution and observing gas formation
D) Boiling it in water
D) Boiling it in water
How many macros are defined in the header file stdarg.h?
1 Mark(s)
Your Answer:
one
one
two
two
three
three
four
four
Substance that continually deforms under an applied shear stress is:
1 Mark(s)
Your Answer:
fluid
fluid
gas
gas
solid
solid
silicon
silicon
What will be the result of the following code? public class Test{ static public void main(String args[]){ //line 2 int i, j; for(i=0; i
1 Mark(s)
Your Answer:
1 2 3 1
1 2 3 1
1 2 3 2
1 2 3 2
Repeatedly print 1 2 3 and cause infinite loop.
Repeatedly print 1 2 3 and cause infinite loop.
Compilation fails because of line 2
Compilation fails because of line 2
None of these
None of these
Rate at which energy is transmitted by a sinusoidal wave on a stretched string is called:
1 Mark(s)
Your Answer:
Wave Power
Wave Power
Wave Density
Wave Density
Wave Speed
Wave Speed
Wave Tension
Wave Tension
What data structure is used to manage and query a large dataset with minimal memory overhead and no duplicates?
1 Mark(s)
Your Answer:
Bloom Filter
Bloom Filter
Hash Map
Hash Map
Heap
Heap
Trie
Trie
Which of the following is true about STL map?
1 Mark(s)
Your Answer:
Stores unique keys
Stores unique keys
Key-value pairs
Key-value pairs
Sorted by key
Sorted by key
All of the above
All of the above
The . . . . . . . . codec uses Google's Snappy compression library.
1 Mark(s)
Your Answer:
null
null
snappy
snappy
deflate
deflate
none of the mentioned
none of the mentioned
What is the maximum number of bytes that can be allocated using 'malloc' in C?
1 Mark(s)
Your Answer:
It depends on the system and available memory
It depends on the system and available memory
2^16 bytes
2^16 bytes
2^32 bytes
2^32 bytes
2^64 bytes
2^64 bytes
MTTC falls the the category of____________________?
1 Mark(s)
Your Answer:
correctness
correctness
integrity
integrity
maintainability
maintainability
all of the mentioned
all of the mentioned
How can you make a list that list the items with numbers ? 1. <ul> 2. <list> 3. <ol>
1 Mark(s)
Your Answer:
Option 1
Option 1
Option 2
Option 2
Option 3
Option 3
None of the above
None of the above
If two substances are mixed together physically, they form a:
1 Mark(s)
Your Answer:
solution
solution
compound
compound
mixture
mixture
molecules
molecules
The large molecules in the food that we eat are:
1 Mark(s)
Your Answer:
carbohydrates and fats
carbohydrates and fats
fats and proteins
fats and proteins
carbohydrates, fats and proteins
carbohydrates, fats and proteins
carbohydrates and proteins
carbohydrates and proteins
How is Date stored in database?
1 Mark(s)
Your Answer:
java.sql.Date
java.sql.Date
java.util.Date
java.util.Date
java.sql.DateTime
java.sql.DateTime
java.util.DateTime
java.util.DateTime
What is true about time slicing?
1 Mark(s)
Your Answer:
Time slicing is OS service that allocates CPU time to available runnable thread
Time slicing is OS service that allocates CPU time to available runnable thread
Time slicing is the process to divide the available CPU time to available runnable thread
Time slicing is the process to divide the available CPU time to available runnable thread
Time slicing depends on its implementation in OS
Time slicing depends on its implementation in OS
Time slicing allocates more resources to thread
Time slicing allocates more resources to thread
Which data structure is used to represent a decision table in computer algorithms?
1 Mark(s)
Your Answer:
Linked List
Linked List
Binary Tree
Binary Tree
Heap
Heap
Linked List
Linked List
Data-volume and frequency-of-use statistics are not critical inputs to the physical database design process.
1 Mark(s)
Your Answer:
True
True
False
False
A greenhouse gas that absorbs energy and maintains the earth's temperature is:
1 Mark(s)
Your Answer:
carbon dioxide
carbon dioxide
oxygen
oxygen
nitrogen
nitrogen
argon
argon
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.