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 19
Exam Duration:
00:50:00
Python Programming Mock Test 19
: Question
1
of 55
In the context of string matching, what does the term "partial match table" refer to?
1 Mark(s)
Your Answer:
The array used for storing results.
The array used for storing results.
The data structure used in KMP algorithm.
The data structure used in KMP algorithm.
The table used to track character shifts.
The table used to track character shifts.
The array used for storing results.
The array used for storing results.
What type of operating system MS-DOS is?
1 Mark(s)
Your Answer:
Command Line Interface
Command Line Interface
Graphical User Interface
Graphical User Interface
Multitasking
Multitasking
Menu Driven Interface
Menu Driven Interface
The 'ref' keyword can be used with which among the following?
1 Mark(s)
Your Answer:
Static function/subroutine
Static function/subroutine
Static data
Static data
Instance function/subroutine
Instance function/subroutine
All of the mentioned
All of the mentioned
Which part of the alimentary canal receives the bile from the liver?
1 Mark(s)
Your Answer:
Small intestine
Small intestine
Large intestine
Large intestine
Stomach
Stomach
None of the above
None of the above
The logarithmic function y=lnx has inverse:
1 Mark(s)
Your Answer:
y=ex
y=ex
y=ex
y=ex
y=lne
y=lne
y=xe
y=xe
Which of the following words cannot be a variable in python language?
1 Mark(s)
Your Answer:
_val
_val
val
val
try
try
_try_
_try_
In a regular expression, what does the metacharacter `d` represent?
1 Mark(s)
Your Answer:
Any special character
Any special character
Any digit
Any digit
Any whitespace character
Any whitespace character
None of These
None of These
What will be the output of the following C code? char str[20]; strcpy(str, "123456"); res = atoi(str); printf("%s %d\n", str, res);
1 Mark(s)
Your Answer:
123456 0
123456 0
123456 0.0
123456 0.0
123456 123456
123456 123456
123456 123456.0
123456 123456.0
Which is the opposite to the load event in JavaScript?
1 Mark(s)
Your Answer:
dontload
dontload
postload
postload
preload
preload
unload
unload
Which of the following selects all <div> elements and all <p> elements?
1 Mark(s)
Your Answer:
element element
element element
element+element
element+element
element,element
element,element
None of the above
None of the above
Number of degrees of freedom in rotational kinetic energy of monoatomic gas molecule is:
1 Mark(s)
Your Answer:
0
0
2
2
3
3
6
6
Conditions of a for loop are:
1 Mark(s)
Your Answer:
A starting value to initialize the counter variable
A starting value to initialize the counter variable
A condition for continuing the loop, involving the counter variable
A condition for continuing the loop, involving the counter variable
An operation to perform on the counter variable at the end of each loop cycle
An operation to perform on the counter variable at the end of each loop cycle
All of the above
All of the above
Which of the following is NOT a valid ASP.NET control?
1 Mark(s)
Your Answer:
asp:Label
asp:Label
asp:TextBox
asp:TextBox
asp:Button
asp:Button
asp:Div
asp:Div
What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i)
1 Mark(s)
Your Answer:
error
error
1 2 3 4
1 2 3 4
a b c d
a b c d
0 1 2 3
0 1 2 3
Which of the following is true about Microsoft Active Server Pages (ASP)?
1 Mark(s)
Your Answer:
It is stored in .cfm files.
It is stored in .cfm files.
It is executed on the client.
It is executed on the client.
It does not use tags.
It does not use tags.
It allows for coding of custom tags in an HTML file.
It allows for coding of custom tags in an HTML file.
Which keyword is used for accessing the features of a package?
1 Mark(s)
Your Answer:
package
package
import
import
extends
extends
export
export
Which of the following is golden rule for interface design ?
1 Mark(s)
Your Answer:
Place the user in control
Place the user in control
Reduce the user’s memory load
Reduce the user’s memory load
Make the interface consistent
Make the interface consistent
All of the mentioned
All of the mentioned
What is the purpose of a module in Python?
1 Mark(s)
Your Answer:
To define classes
To define classes
To create graphical interfaces
To create graphical interfaces
To organize functions, classes, and variables
To organize functions, classes, and variables
To execute code line by line
To execute code line by line
What is inheritance in C++?
1 Mark(s)
Your Answer:
The process of creating multiple instances of a class
The process of creating multiple instances of a class
The process of hiding the implementation details of a class
The process of hiding the implementation details of a class
The process of deriving a new class from an existing class
The process of deriving a new class from an existing class
The process of defining functions within a class
The process of defining functions within a class
The method of communication in which transmission takes place in both directions, but only one direction at a time is called
1 Mark(s)
Your Answer:
Simplex
Simplex
Four wire circuit
Four wire circuit
Full Duplex
Full Duplex
Half Duplex
Half Duplex
What is the purpose of the ungroup() function in dplyr?
1 Mark(s)
Your Answer:
Retains the grouping of the data frame
Retains the grouping of the data frame
Removes the grouping of the data frame
Removes the grouping of the data frame
Unpacks nested data frames
Unpacks nested data frames
Reorders the rows based on a specific column
Reorders the rows based on a specific column
What will be the output of the following C code? #include<stdio.h> int main() { signed char ch= ‘a’; printf(“%u”,ch); return 0; }
1 Mark(s)
Your Answer:
-65
-65
65
65
-97
-97
97
97
Element of a computer protocol specifies the information structure needed for coordination among machines and for data handling is:
1 Mark(s)
Your Answer:
syntax
syntax
semantic
semantic
format
format
timing
timing
What is the purpose of a feature file in Cucumber testing?
1 Mark(s)
Your Answer:
Contains the actual implementation of the application's features
Contains the actual implementation of the application's features
Specifies the requirements for a software feature
Specifies the requirements for a software feature
Provides a detailed report of test results
Provides a detailed report of test results
Describes the behavior of an application in plain text
Describes the behavior of an application in plain text
What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int i; enum month { JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC }; for (i = MAR; i <= NOV; i++) cout << i; return 0; }
1 Mark(s)
Your Answer:
01234567891011
01234567891011
123456789101112
123456789101112
34567891011
34567891011
123456789
123456789
Decimal values are referred as . . . . . . . . data types in R.
1 Mark(s)
Your Answer:
Numeric
Numeric
Character
Character
Integer
Integer
Lists
Lists
What are the references in C++?
1 Mark(s)
Your Answer:
An alternative name for already existing variables
An alternative name for already existing variables
A pointer to a variable
A pointer to a variable
A new type of variables
A new type of variables
A new type of constant variable
A new type of constant variable
In the relationships window, what does the appearance of symbols, such as 1 and the infinity symbol, at the endpoints of a relationship line mean?
1 Mark(s)
Your Answer:
Referential integrity is enforced
Referential integrity is enforced
Referential integrity isn't enforced
Referential integrity isn't enforced
An inner join is set
An inner join is set
An outer join is set
An outer join is set
What is the main principle behind object-oriented programming?
1 Mark(s)
Your Answer:
Polymorphism
Polymorphism
Encapsulation
Encapsulation
Objects
Objects
Inheritance
Inheritance
ADO.NET provides the ability to create and process in-memory databases called:
1 Mark(s)
Your Answer:
Views
Views
Relations
Relations
Tables
Tables
Datasets
Datasets
Computer line printer is faster than:
1 Mark(s)
Your Answer:
daisy wheel printer
daisy wheel printer
dot matrix printer
dot matrix printer
character printer
character printer
chain printer
chain printer
The gas which is used as cooling agent is:
1 Mark(s)
Your Answer:
carbon dioxide
carbon dioxide
helium
helium
argon
argon
nitrogen
nitrogen
In a relation, the columns are sometimes called "attributes".
1 Mark(s)
Your Answer:
True
True
False
False
What is the output of the following code: my_list = [1, 2, 3, 4, 5] print(my_list[1:4])
1 Mark(s)
Your Answer:
[2, 3, 4]
[2, 3, 4]
[1, 2, 3]
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4]
[2, 3]
[2, 3]
To fetch large objects, the ResultSet interface provides method:
1 Mark(s)
Your Answer:
getBlob()
getBlob()
getClob
getClob
getTlob()
getTlob()
Both A and B
Both A and B
. . . . . . . . part of the MapReduce is responsible for processing one or more chunks of data and producing the output results.
1 Mark(s)
Your Answer:
Maptask
Maptask
Mapper
Mapper
Task execution
Task execution
All of the mentioned
All of the mentioned
Which of the following operators take only integer operands in MS Excel?
1 Mark(s)
Your Answer:
%
%
+
+
/
/
None of these
None of these
What will be the output of the following code: for (int i = 0; i < 3; ++i) { for (int j = 0; j < 2; ++j) { cout << i << j << " "; } }?
1 Mark(s)
Your Answer:
Compilation error
Compilation error
00 10 20 01 11
00 10 20 01 11
00 11 22 33 44
00 11 22 33 44
00 01 10 11 20 21
00 01 10 11 20 21
In tally you get currency symbol option from ________ menu
1 Mark(s)
Your Answer:
Company creation
Company creation
Stock items units
Stock items units
Regional setting
Regional setting
None of the above
None of the above
In the absence of a exit condition in a recursive function, the following error is given . . . . . . . .
1 Mark(s)
Your Answer:
Compile time error
Compile time error
Run time error
Run time error
Logical error
Logical error
No error
No error
Which pattern is used to evaluate abstract syntax tree?
1 Mark(s)
Your Answer:
Visitor pattern
Visitor pattern
Singleton Pattern
Singleton Pattern
Proxy pattern
Proxy pattern
Adapter pattern
Adapter pattern
The process of defining two or more methods within the same class that have same name but different parameters list?
1 Mark(s)
Your Answer:
Method overloading
Method overloading
Method overriding
Method overriding
Encapsulation
Encapsulation
None of the mentioned
None of the mentioned
A functional dependency is always an equation.
1 Mark(s)
Your Answer:
True
True
False
False
Which protocol is used for ping?
1 Mark(s)
Your Answer:
TCP
TCP
UDP
UDP
ICMP
ICMP
IGMP
IGMP
What is the purpose of getting the paramerer fvonly?
1 Mark(s)
Your Answer:
To repeat the view test
To repeat the view test
To get the first view
To get the first view
To debug the code
To debug the code
None of the mentioned
None of the mentioned
Which of the following are the protocols defined by .NET runtime?
1 Mark(s)
Your Answer:
HTTP
HTTP
HTTPS
HTTPS
File
File
All of the mentioned
All of the mentioned
Consider the following code snippet data.sort(function(a,b),b-a);
1 Mark(s)
Your Answer:
Sort in the alphabetical order
Sort in the alphabetical order
Sort in the chronological order
Sort in the chronological order
Sort in reverse alphabetical order
Sort in reverse alphabetical order
Sort in reverse numerical order
Sort in reverse numerical order
Multiplexing is synchronous:
1 Mark(s)
Your Answer:
FDM
FDM
WDM
WDM
TDM
TDM
CDMA
CDMA
Determine output: void main() { int const *p=5; printf("%d", ++(*p)); }
1 Mark(s)
Your Answer:
6
6
5
5
Garbage Value
Garbage Value
Compiler Error
Compiler Error
The __________ rule makes it possible to define different style rules for different media types in the same stylesheet.
1 Mark(s)
Your Answer:
audio/video
audio/video
sink
sink
@media
@media
@canvas
@canvas
What is data in a MySQL database organized into?
1 Mark(s)
Your Answer:
Objects
Objects
Tables
Tables
Networks
Networks
File systems
File systems
What is the return value of strcmp("abc", "abc")?
1 Mark(s)
Your Answer:
0
0
1
1
-1
-1
1
1
In Stream Control Transmission Protocol (SCTP) packet, control chunks come before:
1 Mark(s)
Your Answer:
stream chunks
stream chunks
control chunks
control chunks
data chunks
data chunks
err-control chunk
err-control chunk
A technique used by codes to convert an analog signal into a digital bit stream is known as
1 Mark(s)
Your Answer:
Digital Signal Generator
Digital Signal Generator
Pulse Code Modulation
Pulse Code Modulation
Pulse Signal Modulation
Pulse Signal Modulation
None of these
None of these
The conversion character ‘s’ for data input means that the data item is:?
1 Mark(s)
Your Answer:
an unsigned decimal integer
an unsigned decimal integer
a short integer
a short integer
a hexadecimal integer
a hexadecimal integer
a string followed by a whitespace character Answer
a string followed by a whitespace character Answer
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.