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
:
59
:
00
Q:
1
/
65
🤖
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 2
Exam Duration:
00:59:00
Python Programming Mock Test 2
: Question
1
of 65
Multiple protocols are supported by the:
1 Mark(s)
Your Answer:
JDBC manager
JDBC manager
JDBC driver
JDBC driver
JDBC administrator
JDBC administrator
JDBC compiler
JDBC compiler
DOS system file consists of:
1 Mark(s)
Your Answer:
IBMBIO.COM, IBMDOS.COM, COMMAND.COM
IBMBIO.COM, IBMDOS.COM, COMMAND.COM
COMMAND.COM, IBMBIO.COM, FORMAT.COM
COMMAND.COM, IBMBIO.COM, FORMAT.COM
SYS.COM, IBMBIO.COM, IBMDOS.COM
SYS.COM, IBMBIO.COM, IBMDOS.COM
IBM.DOS.COM
IBM.DOS.COM
Differential equation which is formed by the products of the unknown function and its derivatives is allowed and its degree is > 1 is termed as:
1 Mark(s)
Your Answer:
ordinary differential equation
ordinary differential equation
partial differential equation
partial differential equation
linear differential equation
linear differential equation
nonlinear differential equation
nonlinear differential equation
What does the 'else if' statement allow in C++?
1 Mark(s)
Your Answer:
Skips to the next iteration
Skips to the next iteration
Additional condition checks
Additional condition checks
Terminate the program
Terminate the program
None of the above
None of the above
Which of these variables stores the number of hits that are successfully served out of cache?
1 Mark(s)
Your Answer:
hits
hits
hitstocache
hitstocache
hits_to_cache
hits_to_cache
hits.to.cache
hits.to.cache
An action assertion must include which of the following?
1 Mark(s)
Your Answer:
Anchor object
Anchor object
Action
Action
Corresponding object
Corresponding object
All of the above
All of the above
What does HSL stands for?
1 Mark(s)
Your Answer:
Hue Specified Lightness
Hue Specified Lightness
Hue Spot Lightness
Hue Spot Lightness
Hue Saturation Lightness
Hue Saturation Lightness
None of the mentioned
None of the mentioned
In HBase, what is the purpose of the HBase Block Encoding?
1 Mark(s)
Your Answer:
A query language for HBase
A query language for HBase
Compress and encode HFile blocks for efficient storage
Compress and encode HFile blocks for efficient storage
A distributed file system
A distributed file system
None of the above
None of the above
The computer’s processor consists of the following parts___________________?
1 Mark(s)
Your Answer:
CPU and Main Memory
CPU and Main Memory
Hard Disk and Floppy Drive
Hard Disk and Floppy Drive
Main Memory and Storage
Main Memory and Storage
Control Unit and ALU
Control Unit and ALU
Which one of the following commands is used to restore the database to the last committed state?
1 Mark(s)
Your Answer:
Savepoint
Savepoint
Rollback
Rollback
Commit
Commit
Both A & B
Both A & B
A view is updatable, if the query does not have a:
1 Mark(s)
Your Answer:
Having clause
Having clause
Group by clause
Group by clause
Both A and B
Both A and B
Where clause
Where clause
In C#, what happens if no catch block matches the exception type thrown in a try block?
1 Mark(s)
Your Answer:
The program terminates
The program terminates
The finally block is executed
The finally block is executed
The finally block is skipped
The finally block is skipped
The exception is propagated to the calling method
The exception is propagated to the calling method
What is the primary functionality of the RODBC package in R?
1 Mark(s)
Your Answer:
Connecting R to relational databases
Connecting R to relational databases
Web application development
Web application development
Data cleaning and preprocessing
Data cleaning and preprocessing
Time series analysis and forecasting
Time series analysis and forecasting
Which encapsulations can be configured on a serial interface? 1. Ethernet 2. Token Ring 3. HDLC 4. Frame Relay 5. PPP
1 Mark(s)
Your Answer:
1 and 4
1 and 4
2 only
2 only
3, 4 and 5
3, 4 and 5
All of the above
All of the above
In Java, can a class implement multiple interfaces?
1 Mark(s)
Your Answer:
Interfaces cannot be implemented by classes
Interfaces cannot be implemented by classes
Only abstract classes can implement interfaces
Only abstract classes can implement interfaces
No, a class can only implement one interface
No, a class can only implement one interface
Yes, a class can implement multiple interfaces
Yes, a class can implement multiple interfaces
You want to add your favorite command to Quick Access Bar: I. When you find a favorite command, right-click it, and then click Add to Quick Access Toolbar. II. Goto File>Options> Quick Access Toolbar and add selected commands
1 Mark(s)
Your Answer:
Only Option (I)
Only Option (I)
Only Option II)
Only Option II)
Both A and B
Both A and B
None of these
None of these
The inference engine works on ______.
1 Mark(s)
Your Answer:
Forward Chaining
Forward Chaining
Backward Chaining
Backward Chaining
Both a and b
Both a and b
None of the above
None of the above
What will be the output of the following PHP code ? <?php for (1; $i == 1; $i = 2) print "In for loop "; print "After loopn"; ?>
1 Mark(s)
Your Answer:
In for loop
In for loop
After for loop
After for loop
In for loopAfter for loop
In for loopAfter for loop
Infinite loop
Infinite loop
This term is used for moving closer or farther way a paragraph to margin?
1 Mark(s)
Your Answer:
Spacing
Spacing
Indent
Indent
Shading
Shading
None of these
None of these
The set of relations in a database must be specified to the system by means of a:
1 Mark(s)
Your Answer:
Data Declaration language
Data Declaration language
Data Definition language
Data Definition language
Data processing language
Data processing language
Data manipulation language
Data manipulation language
Impact analysis helps us to decide which of the following testing?
1 Mark(s)
Your Answer:
Exit Criteria
Exit Criteria
How much regression testing should be done?
How much regression testing should be done?
Different Tools to perform Regression Testing
Different Tools to perform Regression Testing
How many more test cases need to write?
How many more test cases need to write?
In Java event handling, which interface is used for handling window events like closing a window?
1 Mark(s)
Your Answer:
`WindowHandler`
`WindowHandler`
`WindowListener`
`WindowListener`
`WindowEvent`
`WindowEvent`
None of These
None of These
The process of finding errors in code is called:
1 Mark(s)
Your Answer:
Compiling
Compiling
Debugging
Debugging
Executing
Executing
Running
Running
The microkernel uses the policy of soft affinity in assigning threads to:
1 Mark(s)
Your Answer:
Attributes
Attributes
Processors
Processors
Processes
Processes
Classes
Classes
Most operational systems are based on the use of transient data.
1 Mark(s)
Your Answer:
True
True
False
False
Operating system programs that are manipulated are asked by the:
1 Mark(s)
Your Answer:
programmer
programmer
open source
open source
operating system
operating system
user
user
In the above question would using arrays and swaping of elements in place of xor linked list would have been more efficient?
1 Mark(s)
Your Answer:
no not all
no not all
yes arrays would have been better than xor lists
yes arrays would have been better than xor lists
both would be same in efficiency
both would be same in efficiency
can't say
can't say
A transaction in which either all of the database actions occur or none of them do is called:
1 Mark(s)
Your Answer:
atomic.
atomic.
consistent.
consistent.
isolated.
isolated.
durable.
durable.
What is the output of the following code: Console.WriteLine(5 + 7 * 2);
1 Mark(s)
Your Answer:
24
24
19
19
14
14
17
17
Which hazard arises due to data dependency?
1 Mark(s)
Your Answer:
Structural Hazard
Structural Hazard
Data Hazard
Data Hazard
Control Hazard
Control Hazard
Deadlock
Deadlock
POH stands for:
1 Mark(s)
Your Answer:
Path Overhead
Path Overhead
Polar Overlook
Polar Overlook
Pin Overlook
Pin Overlook
Plot Overhead
Plot Overhead
What is the function of the gas produced during yeast activity in dough?
1 Mark(s)
Your Answer:
A) Prevents spoilage
A) Prevents spoilage
B) Makes it sour
B) Makes it sour
C) Makes it rise and fluffy
C) Makes it rise and fluffy
D) Adds protein
D) Adds protein
Emerging higher performance of superminis were:
1 Mark(s)
Your Answer:
32-bit
32-bit
16-bit
16-bit
12-bit
12-bit
64-bit
64-bit
Which is the type of port?
1 Mark(s)
Your Answer:
Serial
Serial
Parallel
Parallel
AGP
AGP
All of these
All of these
What is the purpose of the platform[] property in a navigator?
1 Mark(s)
Your Answer:
Platform of the script
Platform of the script
Platform where the image map was designed
Platform where the image map was designed
Platform where the browser was compiled
Platform where the browser was compiled
All of the mentioned
All of the mentioned
In method overloading, can methods have the same name and the same return type if their parameter types are different?
1 Mark(s)
Your Answer:
Yes, as long as the methods are final
Yes, as long as the methods are final
Yes, as long as the methods are static
Yes, as long as the methods are static
No, it is not allowed
No, it is not allowed
Yes, it is allowed
Yes, it is allowed
What will be the output of the following Java program? import java.io.*; class streams { public static void main(String[] args) { try { FileOutputStream fos = new FileOutputStream("serial"); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeFloat(3.5); oos.flush(); oos.close(); } catch(Exception e) { System.out.println("Serialization" + e); System.exit(0); } try { FileInputStream fis = new FileInputStream("serial"); ObjectInputStream ois = new ObjectInputStream(fis); System.out.println(ois.available()); } catch (Exception e) { System.out.print("deserialization"); System.exit(0); } } }
1 Mark(s)
Your Answer:
1
1
2
2
3
3
4
4
_______ field in the base header restricts the lifetime of a datagram in IPv6.
1 Mark(s)
Your Answer:
Version
Version
Next-header
Next-header
Hop limit
Hop limit
Neighbor-advertisement
Neighbor-advertisement
The URL property belongs to which of the following object?
1 Mark(s)
Your Answer:
Document
Document
Element
Element
Location
Location
All of the mentioned
All of the mentioned
Which of these microorganisms is correctly matched with its product?
1 Mark(s)
Your Answer:
A) Rhizobium – Alcohol
A) Rhizobium – Alcohol
B) Lactobacillus – Curd
B) Lactobacillus – Curd
C) Yeast – Oxygen
C) Yeast – Oxygen
D) Spirulina – Vinegar
D) Spirulina – Vinegar
What is the CSS Property Equivalent for the attribute <font>?
1 Mark(s)
Your Answer:
font-family
font-family
font-size
font-size
color
color
all of the mentioned
all of the mentioned
Which force stops a moving object like a rolling ball?
1 Mark(s)
Your Answer:
A) Magnetic force
A) Magnetic force
B) Gravitational force
B) Gravitational force
C) Frictional force
C) Frictional force
D) Electrostatic force
D) Electrostatic force
In a B-Tree, which operation can cause a node to split?
1 Mark(s)
Your Answer:
Rebalancing when the height changes.
Rebalancing when the height changes.
Search when a key is found.
Search when a key is found.
Deletion when a node is empty.
Deletion when a node is empty.
Insertion when a node is full.
Insertion when a node is full.
Shorter distances or lengths are generally measured in:
1 Mark(s)
Your Answer:
centimeters
centimeters
millimeter
millimeter
micrometers
micrometers
kilometers
kilometers
If the bandwidth of the link is greater than the bandwidth needed, the bandwidth is:
1 Mark(s)
Your Answer:
preserved
preserved
utilize for other communications
utilize for other communications
wasted
wasted
lower
lower
Which of the following property is used to set order in a table?
1 Mark(s)
Your Answer:
border
border
padding
padding
dotted
dotted
text
text
Interval used to indicate the interval of all integers between a and b is called:
1 Mark(s)
Your Answer:
infinite interval
infinite interval
closed interval
closed interval
integer interval
integer interval
open interval
open interval
CSS stands for:
1 Mark(s)
Your Answer:
Cascading Style Sheets
Cascading Style Sheets
Creative Style System
Creative Style System
Computer Style Sheets
Computer Style Sheets
Colorful Style Sheets
Colorful Style Sheets
What is the purpose of the 'std::barrier' class in C++ multi-threading?
1 Mark(s)
Your Answer:
To synchronize the execution of threads at a specified point
To synchronize the execution of threads at a specified point
To execute a task asynchronously
To execute a task asynchronously
To signal waiting threads
To signal waiting threads
To manage thread priorities
To manage thread priorities
Compilers and interpreters are themselves:______________?
1 Mark(s)
Your Answer:
High-level language
High-level language
Codes
Codes
Programs
Programs
Mnemonics
Mnemonics
Where do we record cash sales in Tally
1 Mark(s)
Your Answer:
Contra
Contra
Receipt
Receipt
Payment
Payment
Journal
Journal
Which two models doesn’t allow defining requirements early in the cycle?
1 Mark(s)
Your Answer:
Waterfall & RAD
Waterfall & RAD
Prototyping & Spiral
Prototyping & Spiral
Prototyping & RAD
Prototyping & RAD
Waterfall & Spiral
Waterfall & Spiral
Undo, Redo & Save are default options of which function?
1 Mark(s)
Your Answer:
Title Bar
Title Bar
Customize Quick Access Toolbar
Customize Quick Access Toolbar
Tabs Bar
Tabs Bar
Status Bar
Status Bar
Which method is not used for filtering in jQuery?
1 Mark(s)
Your Answer:
next()
next()
first()
first()
eq()
eq()
last()
last()
What is the purpose of the tell() method in file handling?
1 Mark(s)
Your Answer:
It returns the current file position
It returns the current file position
It reads the file contents
It reads the file contents
It closes the file
It closes the file
It appends data to the file
It appends data to the file
Which of the following is NOT a comparison operator in Ruby?
1 Mark(s)
Your Answer:
<=>
<=>
===
===
==~
==~
><
><
During the traversing of the stack when you create a locally scoped variable, where does it go after it goes to the location?
1 Mark(s)
Your Answer:
Window
Window
Function
Function
Document
Document
None of the mentioned
None of the mentioned
The level of current passing will affect the bulb's:
1 Mark(s)
Your Answer:
brightness
brightness
life
life
energy
energy
force
force
Which of the following option is true if implementation of Queue is from the linked list?
1 Mark(s)
Your Answer:
In enqueue operation, new nodes are inserted from the beginning and in dequeue operation, nodes are removed from the end.
In enqueue operation, new nodes are inserted from the beginning and in dequeue operation, nodes are removed from the end.
In enqueue operation, new nodes are inserted from the end and in dequeue operation, nodes are deleted from the beginning.
In enqueue operation, new nodes are inserted from the end and in dequeue operation, nodes are deleted from the beginning.
In enqueue operation, new nodes are inserted from the end and in dequeue operation, nodes are deleted from the end.
In enqueue operation, new nodes are inserted from the end and in dequeue operation, nodes are deleted from the end.
Both a and b
Both a and b
The aggregate functions, which mean exactly what you would intuitively expect, is known to be:
1 Mark(s)
Your Answer:
Avg
Avg
min/max
min/max
Sum/count
Sum/count
Some/every
Some/every
ID selector name is preceded by . . . . . . . .
1 Mark(s)
Your Answer:
'.'
'.'
'%'
'%'
'#'
'#'
'@'
'@'
Which of the codes shown below results in a match?
1 Mark(s)
Your Answer:
re.match('George(?=Washington)', 'George Washington')
re.match('George(?=Washington)', 'George Washington')
re.match('George(?=Washington)', 'George')
re.match('George(?=Washington)', 'George')
re.match('George(?=Washington)', 'GeorgeWashington')
re.match('George(?=Washington)', 'GeorgeWashington')
re.match('George(?=Washington)', 'Georgewashington')
re.match('George(?=Washington)', 'Georgewashington')
What will be the output of the following Python code snippet? >>>import collections >>> b=collections.Counter([2,2,3,4,4,4]) >>> b.most_common(1)
1 Mark(s)
Your Answer:
Counter({4: 3, 2: 2, 3: 1})
Counter({4: 3, 2: 2, 3: 1})
{3:1}
{3:1}
{4:3}
{4:3}
[(4, 3)]
[(4, 3)]
To apply an attribute to an Assembly, the correct way of implementation is?
1 Mark(s)
Your Answer:
[AssemblyInfo: AssemblyDescription ("Csharp")]
[AssemblyInfo: AssemblyDescription ("Csharp")]
[assembly: AssemblyDescription("Csharp")]
[assembly: AssemblyDescription("Csharp")]
[AssemblyDescription("Csharp")]
[AssemblyDescription("Csharp")]
(Assembly:AssemblyDescription("Csharp")]
(Assembly:AssemblyDescription("Csharp")]
What will be the following code's output if choice = 'R'? switch(choice) { case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break; }
1 Mark(s)
Your Answer:
RED
RED
RED WHITE BLUE ERROR
RED WHITE BLUE ERROR
RED ERROR
RED ERROR
RED WHITE BLUE
RED WHITE BLUE
ERROR
ERROR
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.