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
:
41
:
00
Q:
1
/
46
🤖
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 5
Exam Duration:
00:41:00
Python Programming Mock Test 5
: Question
1
of 46
Loss in precision occurs for typecasting from. . . . . . . .
1 Mark(s)
Your Answer:
char to short
char to short
float to double
float to double
long to float
long to float
float to int
float to int
How many vertices must a graph have in order to have the potential to be Hamiltonian?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
4
4
Which is better in terms of performance for iterating an array?
1 Mark(s)
Your Answer:
for(int i=0; i<100; i++)
for(int i=0; i<100; i++)
for(int i=99; i>=0; i-)
for(int i=99; i>=0; i-)
for(int i=100; i<0; i++)
for(int i=100; i<0; i++)
for(int i=99; i>0; i++)
for(int i=99; i>0; i++)
. . . . . . . . read only parameter that returns the width and height of the current device surface in inches.
1 Mark(s)
Your Answer:
Din
Din
Fin
Fin
Gin
Gin
Kin
Kin
Mineral water is mixture of many:
1 Mark(s)
Your Answer:
minerals
minerals
metals
metals
gases
gases
compounds
compounds
To deal with the insertion clause, there are approaches of type:
1 Mark(s)
Your Answer:
2 types
2 types
3 types
3 types
4 types
4 types
5 types
5 types
Which of these expressions will return true if the input integer v is a power of two?
1 Mark(s)
Your Answer:
(v | (v + 1)) == 0;
(v | (v + 1)) == 0;
(~v & (v – 1)) == 0;
(~v & (v – 1)) == 0;
(v | (v – 1)) == 0;
(v | (v – 1)) == 0;
(v & (v – 1)) == 0;
(v & (v – 1)) == 0;
During process interaction concurrent processes come into conflict with each other when they are:
1 Mark(s)
Your Answer:
Executed
Executed
Completed
Completed
Decoded
Decoded
Aborted
Aborted
What is the purpose of the Module#attr_reader, Module#attr_writer, and Module#attr_accessor methods in Ruby?
1 Mark(s)
Your Answer:
They define getter, setter, and both getter and setter methods for instance variables respectively
They define getter, setter, and both getter and setter methods for instance variables respectively
They define methods for reading, writing, and both reading and writing instance variables respectively
They define methods for reading, writing, and both reading and writing instance variables respectively
They define methods for reading instance variables, writing class variables, and both respectively
They define methods for reading instance variables, writing class variables, and both respectively
They define methods for reading, writing, and both reading and writing class variables respectively
They define methods for reading, writing, and both reading and writing class variables respectively
A Chatbot is an example of:
1 Mark(s)
Your Answer:
AI
AI
OS
OS
Compiler
Compiler
Database
Database
What will be the output of the following Python code? re.split(r'(n\d)=', 'n1=3.1, n2=5, n3=4.565')
1 Mark(s)
Your Answer:
Error
Error
[", 'n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']
[", 'n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']
['n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']
['n1', '3.1, ', 'n2', '5, ', 'n3', '4.565']
['3.1, ', '5, ', '4.565']
['3.1, ', '5, ', '4.565']
Molar specific speed of Nitrogen gas is:
1 Mark(s)
Your Answer:
202.7 J/mol.K
202.7 J/mol.K
20.7 J/mol.K
20.7 J/mol.K
12.6 J/mol.K
12.6 J/mol.K
125 J/mol.K
125 J/mol.K
Why is classifying materials in science important?
1 Mark(s)
Your Answer:
A) To waste time
A) To waste time
B) To make them taste better
B) To make them taste better
C) To better understand their properties
C) To better understand their properties
D) To change their colour
D) To change their colour
What is the purpose of the 'volatile' keyword when used with a function in C?
1 Mark(s)
Your Answer:
To make the function execute faster
To make the function execute faster
To specify that the function is unpredictable
To specify that the function is unpredictable
To optimize the function
To optimize the function
To indicate that the function may change external variables
To indicate that the function may change external variables
PHP runs on different platforms (Windows, Linux, Unix, etc.)
1 Mark(s)
Your Answer:
True
True
False
False
The geometric approach is used in error detection and correction process, that defines:
1 Mark(s)
Your Answer:
Code-word
Code-word
Redundant bits
Redundant bits
Territory
Territory
Block-code
Block-code
DIFFERENCE BETWEEN KEYWORDS 'VAR' AND 'DYNAMIC'?
1 Mark(s)
Your Answer:
'Var' is introduced in C# (3.0) and 'Dynamic' is introduced in C# (4.0)
'Var' is introduced in C# (3.0) and 'Dynamic' is introduced in C# (4.0)
'Var' is a type of variable where declaration is done at compile time by compiler while 'Dynamic' declaration is achieved at runtime by compiler
'Var' is a type of variable where declaration is done at compile time by compiler while 'Dynamic' declaration is achieved at runtime by compiler
For 'Var' Error is caught at compile time and for 'Dynamic' Error is caught at runtime
For 'Var' Error is caught at compile time and for 'Dynamic' Error is caught at runtime
All of the mentioned
All of the mentioned
Which one of the following refers to the user's part of the Cloud Computing system?
1 Mark(s)
Your Answer:
back End
back End
Management
Management
Infrastructure
Infrastructure
Front End
Front End
What will be the output of the following Python expression if x=15 and y=12? x & y
1 Mark(s)
Your Answer:
b1101
b1101
0b1101
0b1101
12
12
1101
1101
Which of the following is not a template library?
1 Mark(s)
Your Answer:
Mustache
Mustache
Underscore JS library
Underscore JS library
Live.js
Live.js
Handlebars
Handlebars
What does the len() function do when applied to a set or tuple?
1 Mark(s)
Your Answer:
Returns the number of elements in the set or tuple
Returns the number of elements in the set or tuple
Converts the set or tuple to lowercase
Converts the set or tuple to lowercase
Converts the set or tuple to uppercase
Converts the set or tuple to uppercase
Removes the last element
Removes the last element
A data mart is designed to optimize the performance for well-defined and predicable uses.
1 Mark(s)
Your Answer:
True
True
False
False
Making illegal copies of computer copyrighted software is called:
1 Mark(s)
Your Answer:
software piracy
software piracy
collaboration
collaboration
browsing
browsing
electronic distribution
electronic distribution
Maximum number of characters or symbols that can be represented by Unicode is:
1 Mark(s)
Your Answer:
24
24
26
26
216
216
232
232
What is the length of IP address?
1 Mark(s)
Your Answer:
28 bits
28 bits
32 bits
32 bits
34 bits
34 bits
36 bits Answer
36 bits Answer
Which of the following is used to list out the storage policies?
1 Mark(s)
Your Answer:
hdfs storagepolicies
hdfs storagepolicies
hdfs storage
hdfs storage
hd storagepolicies
hd storagepolicies
all of the mentioned
all of the mentioned
Which of following is not a valid name for a C variable?
1 Mark(s)
Your Answer:
Examveda
Examveda
Exam_veda
Exam_veda
Exam veda
Exam veda
Both A and B
Both A and B
None of these
None of these
What will the output be?void test(int *p) { *p = *p + 1; }int main() { int x = 10; test(&x); cout << x; }
1 Mark(s)
Your Answer:
10
10
11
11
9
9
Error
Error
Which of the following matches nonword character using regular expression in java?
1 Mark(s)
Your Answer:
\w
\w
\W
\W
\s
\s
\S
\S
With the UNION clause, each query involved must output the same number of columns, and they must be UNION compatible.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the following technique is used to obtain a certain range of bits required to quantize each pixel?
1 Mark(s)
Your Answer:
Contouring
Contouring
Bit-plane slicing
Bit-plane slicing
Grey-level slicing
Grey-level slicing
Contrast stretching
Contrast stretching
What is the number of unlabeled simple directed graph that can be made with 1 or 2 vertices?
1 Mark(s)
Your Answer:
2
2
4
4
5
5
9
9
Which menu appears after starting Tally for the first time
1 Mark(s)
Your Answer:
Gateway of Tally
Gateway of Tally
Company Info
Company Info
Display
Display
None of these
None of these
What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 0; int z; z = (y++, y); printf("%d\n", z); return 0; }
1 Mark(s)
Your Answer:
0
0
1
1
Undefined behaviour
Undefined behaviour
Compilation error
Compilation error
Gold, silver, copper and aluminum are:
1 Mark(s)
Your Answer:
metals
metals
non metals
non metals
alkalis
alkalis
metalloids
metalloids
A relation between a set of inputs and a set of permissible outputs with the property that each input is related to exactly one output is:
1 Mark(s)
Your Answer:
variable
variable
function
function
equation
equation
math equation
math equation
The tokens are passed through a Lucene . . . . . . . . to produce NGrams of the desired length.
1 Mark(s)
Your Answer:
ShngleFil
ShngleFil
ShingleFilter
ShingleFilter
SingleFilter
SingleFilter
Collfilter
Collfilter
In Oozie, what does the term "bundle application coordinator" mean?
1 Mark(s)
Your Answer:
A distributed file system
A distributed file system
A query language for Hadoop
A query language for Hadoop
A storage format in Hadoop
A storage format in Hadoop
A coordinator for managing a bundle of workflows
A coordinator for managing a bundle of workflows
In subtraction of modulo-2 arithmetic, 0-1 is equal to:
1 Mark(s)
Your Answer:
0
0
-1
-1
1
1
infinity
infinity
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
Which property of a control determines whether it can be seen and interacted with by the user in a Windows Forms Application?
1 Mark(s)
Your Answer:
Displayed
Displayed
Visible
Visible
Active
Active
None of the above
None of the above
What is the result of the expression: sizeof(char) in C++?
1 Mark(s)
Your Answer:
Implementation-defined
Implementation-defined
Error: sizeof cannot be applied
Error: sizeof cannot be applied
Size of char in bits
Size of char in bits
Size of char in bytes
Size of char in bytes
Which of the following is needed by Maintenance staff?
1 Mark(s)
Your Answer:
A specific type of equipment
A specific type of equipment
Maintenance record for each and every equipment item
Maintenance record for each and every equipment item
Check in/check out equipment for maintenance
Check in/check out equipment for maintenance
All of the mentioned
All of the mentioned
The beating of pulse is due to:
1 Mark(s)
Your Answer:
energy
energy
flow of blood
flow of blood
flow of water
flow of water
oxygen
oxygen
We can divide audio and video services into:
1 Mark(s)
Your Answer:
1 broad categories
1 broad categories
2 broad categories
2 broad categories
3 broad categories
3 broad categories
4 broad categories
4 broad categories
A linear data structure in which insertion and deletion operations can be performed from both the ends is___
1 Mark(s)
Your Answer:
Queue
Queue
Deque
Deque
Priority queue
Priority queue
Circular queue
Circular queue
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.