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 16
Exam Duration:
00:50:00
Python Programming Mock Test 16
: Question
1
of 55
What will be the output of the following PHP code? <?php $a1 = array("a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow"); $a2 = array("e"=>"red", "f"=>"green", "g"=>"blue"); $result = array_diff($a1, $a2); print_r($result); ?>
1 Mark(s)
Your Answer:
Array ( [d] => yellow )
Array ( [d] => yellow )
Array ( [c] => blue )
Array ( [c] => blue )
Array ( [a] => red )
Array ( [a] => red )
Array ( [e] => yellow )
Array ( [e] => yellow )
Which of the following is true about session management in Java Servlets?
1 Mark(s)
Your Answer:
Sessions are managed using SQL queries
Sessions are managed using SQL queries
Sessions are not supported in Java Servlets
Sessions are not supported in Java Servlets
Sessions can be maintained using cookies or URL rewriting
Sessions can be maintained using cookies or URL rewriting
Sessions can only be managed using cookies
Sessions can only be managed using cookies
What is the data type of the variable in C#?
1 Mark(s)
Your Answer:
int
int
string
string
double
double
char
char
Which of the following commands displays the configurable parameters and statistics of all interfaces on a router?
1 Mark(s)
Your Answer:
show running-config
show running-config
show startup-config
show startup-config
show interfaces
show interfaces
show versions
show versions
Computer hardware can't perform any task without:
1 Mark(s)
Your Answer:
processing
processing
software
software
DOS
DOS
operating system
operating system
What is the typical time complexity of accessing an element in a Binary Search Tree (BST) in the best case?
1 Mark(s)
Your Answer:
O(1)
O(1)
O(log n)
O(log n)
O(n)
O(n)
O(n log n)
O(n log n)
What is returned by math.isfinite(float('nan'))?
1 Mark(s)
Your Answer:
True
True
False
False
None
None
error
error
The correct method to pass a parameter to an attribute is?
1 Mark(s)
Your Answer:
By name
By name
By address
By address
By value
By value
By reference
By reference
Speed of water at 0°C is:
1 Mark(s)
Your Answer:
965 m/s
965 m/s
1482 m/s
1482 m/s
1402 m/s
1402 m/s
1522 m/s
1522 m/s
A data communication system's effectiveness depends on fundamental characteristics of:
1 Mark(s)
Your Answer:
2 types
2 types
3 types
3 types
4 types
4 types
5 types
5 types
Which of the following are automatically loaded and operates as a part of browser?
1 Mark(s)
Your Answer:
Add-ons
Add-ons
Plug-ins
Plug-ins
Utilities
Utilities
Widgets
Widgets
Microsoft Office is an example of----------------?
1 Mark(s)
Your Answer:
Horizontal market software
Horizontal market software
Open source software
Open source software
Vertical market software
Vertical market software
Closed source software
Closed source software
In Java, which data type is used to store numbers with decimal points?
1 Mark(s)
Your Answer:
double
double
int
int
float
float
decimal
decimal
How many types of Website are there?
1 Mark(s)
Your Answer:
Four
Four
Two
Two
One
One
Three
Three
What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A{ mutable int a; public: A(){ cout<<"Default constructor called\n"; } A(const A& a){ cout<<"Copy Constructor called\n"; } }; int main(int argc, char const *argv[]) { A obj; A a1 = obj; A a2(obj); }
1 Mark(s)
Your Answer:
Default constructor called Copy Constructor called
Default constructor called Copy Constructor called
Default constructor called Copy Constructor called Copy Constructor called
Default constructor called Copy Constructor called Copy Constructor called
Default constructor called Default constructor called Copy Constructor called
Default constructor called Default constructor called Copy Constructor called
Copy Constructor called Default constructor called Copy Constructor called
Copy Constructor called Default constructor called Copy Constructor called
What will be the output of the following Python code? values = [[3, 4, 5, 1], [33, 6, 1, 2]] v = values[0][0] for row in range(0, len(values)): for column in range(0, len(values[row])): if v
1 Mark(s)
Your Answer:
3
3
5
5
6
6
33
33
The highest precedence is of:
1 Mark(s)
Your Answer:
(++,-- )used as prefixes
(++,-- )used as prefixes
(++,--) used as suffixes
(++,--) used as suffixes
(+,-)
(+,-)
(=, *=, /=, %=, +=, -=)
(=, *=, /=, %=, +=, -=)
In which data structure would you use a hash table?
1 Mark(s)
Your Answer:
For sorted data storage
For sorted data storage
For maintaining hierarchical relationships
For maintaining hierarchical relationships
For implementing a priority queue
For implementing a priority queue
For fast data retrieval and storage
For fast data retrieval and storage
What term describes a background that appears as a grainy, non-smooth surface?
1 Mark(s)
Your Answer:
Texture
Texture
Velvet
Velvet
Pattern
Pattern
Gradient
Gradient
Data type integer is declared by syntax:
1 Mark(s)
Your Answer:
int
int
integer
integer
INt
INt
INT
INT
Micro-blogging can be defined as __________.
1 Mark(s)
Your Answer:
Mobile related blogs
Mobile related blogs
Blogs posted by companies instead of an individual
Blogs posted by companies instead of an individual
Blogs encompassing limited individual posts, which are typically limited by character count.
Blogs encompassing limited individual posts, which are typically limited by character count.
None of the above
None of the above
Computer word size is a multiple of:
1 Mark(s)
Your Answer:
16 bits
16 bits
4 bits
4 bits
1024 bits
1024 bits
10 bits
10 bits
What feature makes C++ so powerful?
1 Mark(s)
Your Answer:
Easy implementation
Easy implementation
Reusing the old code
Reusing the old code
Easy memory management
Easy memory management
All of the above
All of the above
Which of the following specifies the width of an outline?
1 Mark(s)
Your Answer:
outline-size
outline-size
outline-width
outline-width
outline-height
outline-height
both a and b
both a and b
A simple parity-check code can detect:
1 Mark(s)
Your Answer:
odd number of errors
odd number of errors
even number of errors
even number of errors
positive number of errors
positive number of errors
negative number of errors
negative number of errors
In computer, customized and package softwares are type of:
1 Mark(s)
Your Answer:
application softwares
application softwares
system softwares
system softwares
utility programs
utility programs
operating systems
operating systems
In derivative equation, 'F(x,y,y', ...,yn)=0' first derivative is represented as:
1 Mark(s)
Your Answer:
y'=∂y/∂x
y'=∂y/∂x
y'=∂x/∂y
y'=∂x/∂y
y'=∂y x ∂x
y'=∂y x ∂x
y'=∂/∂x
y'=∂/∂x
In HTML, a color can be specified using a hexadecimal value in the form of:
1 Mark(s)
Your Answer:
#000000
#000000
#0 - #255
#0 - #255
#RRGGBB
#RRGGBB
None
None
Which one of the following is not a maintenance model ?
1 Mark(s)
Your Answer:
Waterfall model
Waterfall model
Reuse-oriented model
Reuse-oriented model
Iterative enhancement model
Iterative enhancement model
Quick fix model
Quick fix model
Which of the following ISO level is more closely related to the physical communications facilities?
1 Mark(s)
Your Answer:
Application
Application
Session
Session
Networking
Networking
Data Link
Data Link
__________maintain (s) database of webpages containing information on variety of topics.
1 Mark(s)
Your Answer:
Newsgroup
Newsgroup
News server
News server
Search Engines
Search Engines
World wide web
World wide web
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
All compounds are molecules but not all molecules are:
1 Mark(s)
Your Answer:
atoms
atoms
electrons
electrons
molecules
molecules
compounds
compounds
What is the purpose of database transactions?
1 Mark(s)
Your Answer:
To improve database performance
To improve database performance
To create new databases
To create new databases
To manage data integrity and consistency
To manage data integrity and consistency
To encrypt database files
To encrypt database files
What is the highest index of an array with 10 elements in Java?
1 Mark(s)
Your Answer:
9
9
10
10
0
0
1
1
What does the "bang" (!) operator do when appended to a method name in Ruby?
1 Mark(s)
Your Answer:
It indicates that the method returns a new object instead of modifying the receiver
It indicates that the method returns a new object instead of modifying the receiver
It raises an exception if the method fails
It raises an exception if the method fails
It indicates that the method mutates the receiver object
It indicates that the method mutates the receiver object
It performs a bitwise operation on the receiver object
It performs a bitwise operation on the receiver object
Which of the following is a valid range reference?
1 Mark(s)
Your Answer:
C3/E5
C3/E5
C3+E5
C3+E5
C3:E5
C3:E5
None of these
None of these
What is the primary role of the HBase Compaction Scheduler?
1 Mark(s)
Your Answer:
Execute MapReduce jobs
Execute MapReduce jobs
Manage computation resources
Manage computation resources
Perform data analytics in Hadoop
Perform data analytics in Hadoop
Schedule and coordinate compaction tasks in HBase
Schedule and coordinate compaction tasks in HBase
In the TSP problem of n cities, the time taken for traversing all cities, without having prior knowledge of the length of the minimum tour will be_______.
1 Mark(s)
Your Answer:
O(n)
O(n)
O(n2)
O(n2)
O(n!)
O(n!)
O(n/2)
O(n/2)
Which of these statement is incorrect?
1 Mark(s)
Your Answer:
Every class must contain a main() method
Every class must contain a main() method
Applets do not require a main() method at all
Applets do not require a main() method at all
There can be only one main() method in a program
There can be only one main() method in a program
main() method must be made public
main() method must be made public
Commit command is used to:
1 Mark(s)
Your Answer:
Undo
Undo
Save permanently
Save permanently
Start transaction
Start transaction
Delete
Delete
What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
1 Mark(s)
Your Answer:
Program will compile and execute successfully and prints
Program will compile and execute successfully and prints
Compilation error as class can not be declared as abstract.
Compilation error as class can not be declared as abstract.
Program compiles but leads to runtime exception.
Program compiles but leads to runtime exception.
Compilation error occurs as the abstract class TestAbstract contains a non-abstract method.
Compilation error occurs as the abstract class TestAbstract contains a non-abstract method.
None of these
None of these
In Access, which data type is used for "quantity"?
1 Mark(s)
Your Answer:
Number
Number
Currency
Currency
Text
Text
None
None
The web UI provides information about . . . . . . . . job statistics of the Hama cluster.
1 Mark(s)
Your Answer:
MPP
MPP
BSP
BSP
USP
USP
ISP
ISP
What kind of exception is being thrown if Wait(), Pulse() or PulseAll() is called from code that is not within synchronized code?
1 Mark(s)
Your Answer:
System I/O Exception
System I/O Exception
DivideByZero Exception
DivideByZero Exception
SynchronizationLockException
SynchronizationLockException
All of the mentioned
All of the mentioned
F5 is used for ______?
1 Mark(s)
Your Answer:
Refresh program
Refresh program
Universal help
Universal help
To help
To help
None of these
None of these
A software component____________________?
1 Mark(s)
Your Answer:
Implements some functionality
Implements some functionality
Has explicit dependencies through provides and required interfaces
Has explicit dependencies through provides and required interfaces
Communicates through its interfaces only
Communicates through its interfaces only
All of the mentioned
All of the mentioned
Two for one twisting machine have gauges:
1 Mark(s)
Your Answer:
200 mm
200 mm
240 mm
240 mm
300 mm
300 mm
all of above
all of above
In R, what is the role of the ifelse() function?
1 Mark(s)
Your Answer:
To check a single condition and execute different code based on the result
To check a single condition and execute different code based on the result
To iterate over elements of a vector and apply a condition
To iterate over elements of a vector and apply a condition
To generate random numbers based on a condition
To generate random numbers based on a condition
To switch between different conditions and values
To switch between different conditions and values
Semimajor axis of planet Mercury is:
1 Mark(s)
Your Answer:
5.79x1010 m
5.79x1010 m
10.8x1010 m
10.8x1010 m
15.0x1010 m
15.0x1010 m
22.8x1010 m
22.8x1010 m
Which of the following jQuery method is used to merge the content of two or more objects into the first object?
1 Mark(s)
Your Answer:
jQuery extend() method
jQuery extend() method
jQuery eq() method
jQuery eq() method
jQuery data() method
jQuery data() method
jQuery param() method
jQuery param() method
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
In MS Word, the function of the "Header & Footer" tool is to ______?
1 Mark(s)
Your Answer:
Display repeating text across pages
Display repeating text across pages
Insert comments
Insert comments
Add references
Add references
None of these
None of these
Time complexity to build a Heap:
1 Mark(s)
Your Answer:
O(n)
O(n)
O(n log n)
O(n log n)
O(log n)
O(log n)
O(1)
O(1)
In a computer spreadsheet, command used to merge number of selected cells into one cell is called:
1 Mark(s)
Your Answer:
merge
merge
split
split
merge and center
merge and center
one unit
one unit
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.