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
:
08
:
00
Q:
1
/
75
🤖
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 10
Exam Duration:
01:08:00
Python Programming Mock Test 10
: Question
1
of 75
In a structure, what are the members also known as?
1 Mark(s)
Your Answer:
Variables
Variables
Properties
Properties
Objects
Objects
Elements
Elements
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 will be the output of the following C code? #include <stdio.h> #define hello( n ) printf( "a" #n "= %d", a##n ) int a3=3; int main() { #ifdef a3 hello(3); #else printf("sorry"); #endif }
1 Mark(s)
Your Answer:
a3=3
a3=3
error
error
a=3
a=3
sorry
sorry
Which of the following is the advantage of BigDecimal over double?
1 Mark(s)
Your Answer:
Syntax
Syntax
Memory usage
Memory usage
Garbage creation
Garbage creation
Precision
Precision
An Oracle System Change Number (SCN):
1 Mark(s)
Your Answer:
is a value that is incremented whenever a dirty read occurs.
is a value that is incremented whenever a dirty read occurs.
is incremented whenever a deadlock occurs.
is incremented whenever a deadlock occurs.
is a value that keeps track of explicit locks.
is a value that keeps track of explicit locks.
is a value that is incremented whenever database changes are made.
is a value that is incremented whenever database changes are made.
In which type of computer, data are represented as discrete signals?
1 Mark(s)
Your Answer:
Analog computer
Analog computer
Digital computer
Digital computer
both
both
Hybrid Computer
Hybrid Computer
What is the purpose of the file_get_contents()?
1 Mark(s)
Your Answer:
To get the errors and exceptions
To get the errors and exceptions
To get the client’s response
To get the client’s response
To get the server’s response
To get the server’s response
None of the mentioned
None of the mentioned
To find the names of instructors with salary amounts between $90,000 and $100,000, we can use the operator:
1 Mark(s)
Your Answer:
AS
AS
Between
Between
Not Between
Not Between
Like
Like
This Your text tag is used to define a:
1 Mark(s)
Your Answer:
Link
Link
Class
Class
CSS sheet
CSS sheet
Both A and B
Both A and B
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
If you need to remove only the formatting done in a range (numbers and formula typed there should not be removed), you must
1 Mark(s)
Your Answer:
From Edit menu choose Clear and then Formats
From Edit menu choose Clear and then Formats
From Edit menu choose Delete
From Edit menu choose Delete
Click on Remove Formatting tool on Standard Toolbar
Click on Remove Formatting tool on Standard Toolbar
Double click the Format Painter and then press Esc key in keyboard
Double click the Format Painter and then press Esc key in keyboard
What will be the output of the following C code? #define HELLO(a) #a main() { printf(HELLO(good morning)); }
1 Mark(s)
Your Answer:
good morning
good morning
HELLO good morning
HELLO good morning
good morning
good morning
error
error
How does a priority queue differ from a queue when handling tasks?
1 Mark(s)
Your Answer:
It processes tasks based on priority
It processes tasks based on priority
It processes tasks based on arrival time
It processes tasks based on arrival time
It processes tasks in reverse order
It processes tasks in reverse order
It processes tasks in random order
It processes tasks in random order
What is the output for the below code? public class Test{ public static void main(String[] args){ byte b = 6; b+=8; System.out.println(b); b = b+7; System.out.println(b); } }
1 Mark(s)
Your Answer:
14 21
14 21
14 13
14 13
Compilation fails with an error at line 6
Compilation fails with an error at line 6
Compilation fails with an error at line 4
Compilation fails with an error at line 4
None of these
None of these
How to get a particular value using the tagged name?
1 Mark(s)
Your Answer:
getElementbyID()
getElementbyID()
getElementsbyName()
getElementsbyName()
getElementsbyTagName()
getElementsbyTagName()
getTagName()
getTagName()
The router sends a prune message to the upstream router so that it can exclude the corresponding:
1 Mark(s)
Your Answer:
source
source
protocol
protocol
interface
interface
information
information
MySQL is freely available and is open source.
1 Mark(s)
Your Answer:
True
True
False
False
How can you update the values of formula cells if Auto Calculate mode of Excel is disabled?
1 Mark(s)
Your Answer:
F8
F8
F9
F9
F10
F10
F11
F11
An example of habitat is:
1 Mark(s)
Your Answer:
pond
pond
air
air
atmosphere
atmosphere
troposphere
troposphere
Which one of the following is an example of Operating System?
1 Mark(s)
Your Answer:
Microsoft Word
Microsoft Word
Microsoft Excel
Microsoft Excel
Microsoft Access
Microsoft Access
Microsoft Windows
Microsoft Windows
Which level of abstraction describes how data is stored?
1 Mark(s)
Your Answer:
Physical Level
Physical Level
Logical Level
Logical Level
View Level
View Level
Conceptual Level
Conceptual Level
. . . . . . . . is another implementation of the MapRunnable interface that runs mappers concurrently in a configurable number of threads.
1 Mark(s)
Your Answer:
MultithreadedRunner
MultithreadedRunner
MultithreadedMap
MultithreadedMap
MultithreadedMapRunner
MultithreadedMapRunner
SinglethreadedMapRunner
SinglethreadedMapRunner
Components which communicates with each other by calling one another's member functions are:
1 Mark(s)
Your Answer:
objects
objects
members
members
bits
bits
errors
errors
You have a class A network address 10.0.0.0 with 40 subnets, but are required to add 60 new subnets very soon. You would like to still allow for the largest possible number of host IDs per subnet. Which subnet mask should you assign?
1 Mark(s)
Your Answer:
255.240.0.0
255.240.0.0
255.248.0.0
255.248.0.0
255.252.0.0
255.252.0.0
255.254.0.0
255.254.0.0
255.255.255.255
255.255.255.255
Which of the following operating system reads and reacts in actual time?
1 Mark(s)
Your Answer:
Quick Response System
Quick Response System
Real Time System
Real Time System
Time Sharing System
Time Sharing System
Batch Processing System
Batch Processing System
Metadata does not define . . . . . . . .
1 Mark(s)
Your Answer:
character set
character set
links
links
scripts
scripts
color
color
Which of the following operators is used to access the address of a variable in C++?
1 Mark(s)
Your Answer:
&
&
*
*
-
-
+
+
DNS stands for:
1 Mark(s)
Your Answer:
Domain Name System
Domain Name System
Data Network Service
Data Network Service
Digital Name Service
Digital Name Service
Domain Network System
Domain Network System
In Access press to Move to the previous page of the wizard
1 Mark(s)
Your Answer:
TAB
TAB
ALT+N
ALT+N
ALT+B
ALT+B
ALT+F
ALT+F
Which of the following is a correlated subquery?
1 Mark(s)
Your Answer:
Uses the result of an inner query to determine the processing of an outer query.
Uses the result of an inner query to determine the processing of an outer query.
Uses the result of an outer query to determine the processing of an inner query.
Uses the result of an outer query to determine the processing of an inner query.
Uses the result of an inner query to determine the processing of an inner query.
Uses the result of an inner query to determine the processing of an inner query.
Uses the result of an outer query to determine the processing of an outer query.
Uses the result of an outer query to determine the processing of an outer query.
Link based measures rely on _____________ structure of a web graph to obtain related pages?
1 Mark(s)
Your Answer:
Embedded
Embedded
Hyperlink
Hyperlink
Dynamic
Dynamic
All of the mentioned
All of the mentioned
Map output larger than . . . . . . . . percent of the memory allocated to copying map outputs.
1 Mark(s)
Your Answer:
10
10
15
15
25
25
35
35
Coefficient of thermal expansion of invar alloy is:
1 Mark(s)
Your Answer:
1.2x10-6/C°
1.2x10-6/C°
0.7x10-6/C°
0.7x10-6/C°
0.5x10-6/C°
0.5x10-6/C°
51x10-6/C°
51x10-6/C°
"request" is instance of which one of the following classes?
1 Mark(s)
Your Answer:
Request
Request
HttpRequest
HttpRequest
HttpServletRequest
HttpServletRequest
ServletRequest
ServletRequest
The XSLT processor copies the elements of the stylesheet until it finds a command in the format:
1 Mark(s)
Your Answer:
SELECT ... FROM ... WHERE
SELECT ... FROM ... WHERE
{item, action}
{item, action}
{for-each select}
{for-each select}
...
...
What will be the output of the following Python code? count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i in count: tot=tot+count[i] print(len(count)+tot)
1 Mark(s)
Your Answer:
25
25
17
17
16
16
Tuples can't be made keys of a dictionary
Tuples can't be made keys of a dictionary
What will be the output of the following Python code snippet? d1 = {"john":40, "peter":45} d2 = {"john":466, "peter":45} d1 == d2
1 Mark(s)
Your Answer:
True
True
False
False
None
None
Error
Error
The keyboard Shortcut key to decrease font size by one point is _____?
1 Mark(s)
Your Answer:
Ctrl + Shift + <
Ctrl + Shift + <
Ctrl + Shift + v
Ctrl + Shift + v
Ctrl + Alt + >
Ctrl + Alt + >
CTRL + [
CTRL + [
A period of 100 ms in microseconds would be equals to:
1 Mark(s)
Your Answer:
103 µs
103 µs
105 µs
105 µs
107 µs
107 µs
109 µs
109 µs
Choose a framework that corresponds to Issue Based Information System (IBIS) ?
1 Mark(s)
Your Answer:
Idea -> Question -> Argument
Idea -> Question -> Argument
Question -> Idea -> Argument
Question -> Idea -> Argument
Issue -> Position -> Justification
Issue -> Position -> Justification
Both Question -> Idea -> Argument and Issue -> Position -> Justification
Both Question -> Idea -> Argument and Issue -> Position -> Justification
In R, which package is commonly used for creating and customizing interactive maps?
1 Mark(s)
Your Answer:
maps
maps
leaflet
leaflet
geospatialR
geospatialR
plotly
plotly
In the body of a method, C# uses the variable to refer to the current object whose method is being invoked, that variable is:
1 Mark(s)
Your Answer:
call
call
this
this
do
do
getch
getch
By applying an ___________ a style can be applied to just a single tag.
1 Mark(s)
Your Answer:
class rule
class rule
element rule
element rule
id rule
id rule
none of the mentioned
none of the mentioned
What is the purpose of the re.IGNORECASE flag in Python?
1 Mark(s)
Your Answer:
It makes the pattern matching case-insensitive
It makes the pattern matching case-insensitive
It compiles a regular expression
It compiles a regular expression
It specifies a starting position
It specifies a starting position
It ignores invalid characters
It ignores invalid characters
Which of the following does not belong to the family of solar system?
1 Mark(s)
Your Answer:
A) Planet
A) Planet
B) Galaxy
B) Galaxy
C) Meteors
C) Meteors
D) Comet
D) Comet
What is the purpose of the super() function in object-oriented programming?
1 Mark(s)
Your Answer:
It is used to call a method from the parent class
It is used to call a method from the parent class
It creates a new class
It creates a new class
It destroys an object
It destroys an object
It inherits a class
It inherits a class
Damping is caused by circuit's:
1 Mark(s)
Your Answer:
resistance
resistance
capacitance
capacitance
inductance
inductance
transistance
transistance
The connecting device which operates at the physical and data link layer is called:
1 Mark(s)
Your Answer:
repeater
repeater
bridge
bridge
router
router
gateway
gateway
What will be the output of the following Java code? import java.io.*; class streams { public static void main(String[] args) { try { FileOutputStream fos = new FileOutputStream("serial"); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeInt(5); oos.flush(); oos.close(); } catch(Exception e) { System.out.println("Serialization" + e); System.exit(0); } try { int z; FileInputStream fis = new FileInputStream("serial"); ObjectInputStream ois = new ObjectInputStream(fis); z = ois.readInt(); ois.close(); System.out.println(x); } catch (Exception e) { System.out.print("deserialization"); System.exit(0); } } }
1 Mark(s)
Your Answer:
5
5
void
void
serialization
serialization
deserialization
deserialization
Press the following keys in Access to Save a database object
1 Mark(s)
Your Answer:
CTRL+P
CTRL+P
P or CTRL+P
P or CTRL+P
CTRL+S or SHIFT+F12
CTRL+S or SHIFT+F12
F12
F12
A _______________ executes the loop task first, then tests a condition and repeats the task until the condition fails ?
1 Mark(s)
Your Answer:
repeat until
repeat until
condition
condition
do while tests
do while tests
if then-else
if then-else
The analysis performed to uncover the interesting statistical correlation between associated -attributes value pairs are known as the _______.
1 Mark(s)
Your Answer:
Mining of association
Mining of association
Mining of correlation
Mining of correlation
Mining of clusters
Mining of clusters
All of the above
All of the above
You have the following code in a file called Test.java class Base{ public static void main(String[] args){ System.out.println("Hello"); } } public class Test extends Base{} What will happen if you try to compile and run this?
1 Mark(s)
Your Answer:
It will fail to compile.
It will fail to compile.
Runtime error
Runtime error
Compiles and runs with no output.
Compiles and runs with no output.
Compiles and runs printing
Compiles and runs printing
The pickle module defines . . . . . . . . exceptions and exports . . . . . . . . classes.
1 Mark(s)
Your Answer:
2, 3
2, 3
3, 4
3, 4
3, 2
3, 2
4, 3
4, 3
What will be the output of the following PHP code? <?php $fruits = array ("mango", "apple", "peach", "pear"); $fruits = asort ($fruits); printr ($fruits); ?>
1 Mark(s)
Your Answer:
Array ( [1] => apple [0] => mango [2] => peach [3] => pear )
Array ( [1] => apple [0] => mango [2] => peach [3] => pear )
Array ( [0] => apple [1] => mango [2] => peach [3] => pear )
Array ( [0] => apple [1] => mango [2] => peach [3] => pear )
Error
Error
Array ( [1] => apple [0] => mango [3] => peach [2] => pear )
Array ( [1] => apple [0] => mango [3] => peach [2] => pear )
Which method is used to find the first occurrence of a pattern in a string in Ruby?
1 Mark(s)
Your Answer:
String#search
String#search
String#find
String#find
String#find_pattern
String#find_pattern
String#match
String#match
What is the purpose of the "async" and "await" keywords in C#?
1 Mark(s)
Your Answer:
To define a new thread
To define a new thread
To handle exceptions
To handle exceptions
To perform asynchronous operations
To perform asynchronous operations
To declare a class
To declare a class
How can you check if two strings are equal in C?
1 Mark(s)
Your Answer:
Use the == operator
Use the == operator
Use the strcmp function
Use the strcmp function
Use the equals function
Use the equals function
Use the = operator
Use the = operator
A transformer is a static electrical device that transfers electrical energy between two or more circuits through:
1 Mark(s)
Your Answer:
electromagnetic capacitance
electromagnetic capacitance
mechanical resistance
mechanical resistance
electromagnetic inductance
electromagnetic inductance
electromagnetic resistance
electromagnetic resistance
Which of the following statements is correct for variable names in Python language?
1 Mark(s)
Your Answer:
All variable names must begin with an underscore.
All variable names must begin with an underscore.
Unlimited length
Unlimited length
The variable name length is a maximum of 2.
The variable name length is a maximum of 2.
All of the above
All of the above
Which of the following is correct about operator precedence?
1 Mark(s)
Your Answer:
* has higher precedence than +
* has higher precedence than +
+ has higher precedence than *
+ has higher precedence than *
== has higher precedence than *
== has higher precedence than *
= has higher precedence than ==
= has higher precedence than ==
Which one of the following is the primarily used output device?
1 Mark(s)
Your Answer:
Video monitor
Video monitor
Scanner
Scanner
Speaker
Speaker
Printer
Printer
What is the primary difference between a `Queue` and a `Deque` in the Java Collections Framework?
1 Mark(s)
Your Answer:
A `Queue` represents a single-ended queue, while a `Deque` represents a double-ended queue
A `Queue` represents a single-ended queue, while a `Deque` represents a double-ended queue
A `Queue` allows duplicate elements, while a `Deque` does not
A `Queue` allows duplicate elements, while a `Deque` does not
A `Deque` is synchronized, while a `Queue` is not
A `Deque` is synchronized, while a `Queue` is not
A `Queue` is indexed, while a `Deque` is not
A `Queue` is indexed, while a `Deque` is not
An application-level protocol in which a few manager stations control a set of agents, known as:
1 Mark(s)
Your Answer:
HTML
HTML
TCP
TCP
SNMP
SNMP
SNMP/IP
SNMP/IP
In Java event handling, which method is used to handle focus gained events?
1 Mark(s)
Your Answer:
`focusEvent()`
`focusEvent()`
`onFocusGained()`
`onFocusGained()`
`focusGained()`
`focusGained()`
`handleFocus()`
`handleFocus()`
In amoeba, digestion of food occurs in -
1 Mark(s)
Your Answer:
Cytoplasm
Cytoplasm
Nucleus
Nucleus
Food vacuole
Food vacuole
None of the above
None of the above
What is the role of the Oozie Coordinator EL functions in a coordinator workflow?
1 Mark(s)
Your Answer:
A distributed file system
A distributed file system
A query language for Hadoop
A query language for Hadoop
Provide functions for evaluating expressions and conditions
Provide functions for evaluating expressions and conditions
A storage format in Hadoop
A storage format in Hadoop
Which term identify a specific computer in web and the main page of the entire site ?
1 Mark(s)
Your Answer:
URL
URL
IP
IP
Windows explorer
Windows explorer
None
None
Which of the following authentication is best suited for a corporate network ?
1 Mark(s)
Your Answer:
User
User
Table
Table
Form
Form
Windows
Windows
What is the purpose of the AsQueryable operator in LINQ?
1 Mark(s)
Your Answer:
Converts a sequence to an IQueryable
Converts a sequence to an IQueryable
Converts a sequence to an IEnumerable
Converts a sequence to an IEnumerable
Converts a sequence to a List
Converts a sequence to a List
Converts a sequence to an Array
Converts a sequence to an Array
Phase angle of resistor is:
1 Mark(s)
Your Answer:
0 rad
0 rad
−π/2 rad
−π/2 rad
π/2 rad
π/2 rad
2π rad
2π rad
Which keyword is used to refer baseclass constructor to subclass constructor?
1 Mark(s)
Your Answer:
This
This
Static
Static
Base
Base
Extend
Extend
Eccentricity of Mercury is:
1 Mark(s)
Your Answer:
0.206
0.206
0.0068
0.0068
0.0167
0.0167
0.0934
0.0934
While transmission of packets over the Internet, when all the packets have been delivered, the connection is:
1 Mark(s)
Your Answer:
static
static
established
established
terminated
terminated
on-pause
on-pause
The top level of the hierarchy of contemporary database systems consists of:
1 Mark(s)
Your Answer:
Catalogs
Catalogs
Schemas
Schemas
Views
Views
Structures
Structures
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.