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
:
36
:
00
Q:
1
/
40
🤖
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.
Data Structures Mock Test 14
Exam Duration:
00:36:00
Data Structures Mock Test 14
: Question
1
of 40
Consider the expression T | F ∧ T. In how many ways can the expression be parenthesized so that the output is F (false)?
1 Mark(s)
Your Answer:
0
0
1
1
2
2
3
3
Which of the following is a NoSQL database?
1 Mark(s)
Your Answer:
MySQL
MySQL
PostgreSQL
PostgreSQL
MongoDB
MongoDB
Oracle
Oracle
What is the method used to access instance variables in Ruby?
1 Mark(s)
Your Answer:
Using accessor methods
Using accessor methods
Using instance methods
Using instance methods
Using class methods
Using class methods
Using global variables
Using global variables
Which of the following is the correct depiction of optimization strategy?
1 Mark(s)
Your Answer:
Orange Hat Techniques
Orange Hat Techniques
Grey Hat Techniques
Grey Hat Techniques
Shady Hat Techniques
Shady Hat Techniques
Blue Hat Techniques
Blue Hat Techniques
Which one has the most potential for minification?
1 Mark(s)
Your Answer:
JavaScript
JavaScript
CSS
CSS
HTML
HTML
PHP
PHP
Peeling off the fibre to expose new external surface for replication gives:
1 Mark(s)
Your Answer:
replicate details
replicate details
internal details
internal details
minimal details
minimal details
angle details
angle details
Which of the following memory is volatile
1 Mark(s)
Your Answer:
RAM
RAM
ROM
ROM
EPROM
EPROM
PROM
PROM
What is Re-throwing an exception means in C++?
1 Mark(s)
Your Answer:
An exception that is thrown again as it is not handled by that catching block
An exception that is thrown again as it is not handled by that catching block
An exception that is caught twice
An exception that is caught twice
An exception that is not handled in one caught hence thrown again
An exception that is not handled in one caught hence thrown again
All of the mentioned
All of the mentioned
The types that "byte" can safely be converted to are:
1 Mark(s)
Your Answer:
ushort,short
ushort,short
bool
bool
float,decimal
float,decimal
a and c
a and c
When does WebPageTest become necessary?
1 Mark(s)
Your Answer:
To run any common website
To run any common website
To run private websites
To run private websites
To run QA testing
To run QA testing
All of the mentioned
All of the mentioned
Which of the following advanced OOP features is/are not supported by PHP? 1. Method overloading 2. Multiple Inheritance 3. Namespaces 4. Object Cloning
1 Mark(s)
Your Answer:
All of the mentioned
All of the mentioned
None of the mentioned
None of the mentioned
1 and 2
1 and 2
3 and 4
3 and 4
The paging system can be used for _______
1 Mark(s)
Your Answer:
Sending numeric messages
Sending numeric messages
Audio Calls
Audio Calls
Sending alphanumeric messages
Sending alphanumeric messages
All of the above
All of the above
What is the time complexity of extracting the minimum element from a min-heap?
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)
NFA stands for:
1 Mark(s)
Your Answer:
Non-deterministic FA
Non-deterministic FA
New Finite Automata
New Finite Automata
Network Finite Access
Network Finite Access
Node Finite Automata
Node Finite Automata
In C++, can you declare a constructor as virtual?
1 Mark(s)
Your Answer:
Yes
Yes
No
No
Only if it has parameters
Only if it has parameters
Only if it is a copy constructor
Only if it is a copy constructor
What is the purpose of the "left rotation" operation in a Binary Search Tree (BST)?
1 Mark(s)
Your Answer:
To maintain balance and keep the tree balanced.
To maintain balance and keep the tree balanced.
To move a node to the right subtree.
To move a node to the right subtree.
To convert a BST into a binary heap.
To convert a BST into a binary heap.
To find the maximum value node.
To find the maximum value node.
In a regular expression, what does the metacharacter `b` represent?
1 Mark(s)
Your Answer:
A digit
A digit
Any character
Any character
Any special character
Any special character
A word boundary
A word boundary
Which of these methods of class are used to remove the leading and backward whitespaces?
1 Mark(s)
Your Answer:
startsWith()
startsWith()
trim()
trim()
Trim()
Trim()
doTrim()
doTrim()
Which is the method used to save chart as a ps file?
1 Mark(s)
Your Answer:
ps()
ps()
postscript()
postscript()
script()
script()
post(script)
post(script)
Which of the following statements is true about the C++ programming language?
1 Mark(s)
Your Answer:
C++ is an object-oriented programming language
C++ is an object-oriented programming language
C++ is a procedural programming language
C++ is a procedural programming language
C++ is a functional programming language
C++ is a functional programming language
C++ is both procedural and object-oriented language
C++ is both procedural and object-oriented language
Which component of Hadoop is responsible for resource management?
1 Mark(s)
Your Answer:
ResourceManager
ResourceManager
NameNode
NameNode
DataNode
DataNode
Secondary NameNode
Secondary NameNode
Which of the following lines of code will not show a match?
1 Mark(s)
Your Answer:
>>> re.match('ab*', 'a')
>>> re.match('ab*', 'a')
>>> re.match('ab*', 'ab')
>>> re.match('ab*', 'ab')
>>> re.match('ab*', 'abb')
>>> re.match('ab*', 'abb')
>>> re.match('ab*', 'ba')
>>> re.match('ab*', 'ba')
Midjourney, Inc. was founded in?
1 Mark(s)
Your Answer:
New York
New York
Los Angeles
Los Angeles
California
California
Austin
Austin
In file handling, what does this terms means "r, a"?
1 Mark(s)
Your Answer:
read, append
read, append
append, read
append, read
write, append
write, append
none of the mentioned
none of the mentioned
Natural base of logarithm is:
1 Mark(s)
Your Answer:
2.7182
2.7182
2.7999
2.7999
2.8718
2.8718
2.1213
2.1213
Which of the following is true about the 'noexcept' specifier in C++?
1 Mark(s)
Your Answer:
It indicates that a function may throw an exception
It indicates that a function may throw an exception
It indicates that a function will never throw an exception
It indicates that a function will never throw an exception
It automatically catches exceptions
It automatically catches exceptions
It is used for exception handling
It is used for exception handling
What will be the result of compiling and running the following code: public class Test{ public static void main(String... args) throws Exception{ Integer i = 34; int l = 34; if(i.equals(l)){ System.out.println("true"); }else{ System.out.println("false"); } } }
1 Mark(s)
Your Answer:
true
true
false
false
Compiler error
Compiler error
None of these
None of these
Why we use Alt + F shortcut keys on keyboard?
1 Mark(s)
Your Answer:
File menu
File menu
Bold option
Bold option
Edit option
Edit option
None of these
None of these
Multiple inheritance leaves room for a derived class to have:
1 Mark(s)
Your Answer:
dynamic members
dynamic members
private members
private members
public members
public members
ambiguous members
ambiguous members
Patterns can use the SQL string matching special character i.e.:
1 Mark(s)
Your Answer:
%
%
?
?
#
#
!
!
. . . . . . . . is the output produced by TextOutputFor mat, Hadoop default OutputFormat.
1 Mark(s)
Your Answer:
KeyValueTextInputFormat
KeyValueTextInputFormat
KeyValueTextOutputFormat
KeyValueTextOutputFormat
FileValueTextInputFormat
FileValueTextInputFormat
All of the mentioned
All of the mentioned
Why do we use Adobe Illustrator along with R?
1 Mark(s)
Your Answer:
Collect the relevant data
Collect the relevant data
Format the chart and to correct the errors
Format the chart and to correct the errors
Tighten and format the chart
Tighten and format the chart
Ingest and process the chart
Ingest and process the chart
What is the main reason the OSI model was created?
1 Mark(s)
Your Answer:
To create a layered model larger than the DoD model.
To create a layered model larger than the DoD model.
So application developers can change only one layer's protocols at a time.
So application developers can change only one layer's protocols at a time.
So different networks could communicate.
So different networks could communicate.
So Cisco could use the model.
So Cisco could use the model.
How is the case_when() function used in dplyr?
1 Mark(s)
Your Answer:
To create a switch case statement in a column
To create a switch case statement in a column
To filter rows based on multiple conditions
To filter rows based on multiple conditions
To select specific columns from a data frame
To select specific columns from a data frame
To perform case-sensitive matching in a column
To perform case-sensitive matching in a column
In C#, which method is used to split a string into substrings based on a specified delimiter?
1 Mark(s)
Your Answer:
Separate()
Separate()
Split()
Split()
Divide()
Divide()
None of the above
None of the above
What is the purpose of the 'std::unordered_multimap' container in C++ STL?
1 Mark(s)
Your Answer:
To store multiple key-value pairs in a hash table
To store multiple key-value pairs in a hash table
To store key-value pairs in a sorted sequence
To store key-value pairs in a sorted sequence
To store unique key-value pairs in a hash table
To store unique key-value pairs in a hash table
To store multiple key-value pairs in a sorted sequence
To store multiple key-value pairs in a sorted sequence
Operating systems and utility programs are in a class of software known as_________________?
1 Mark(s)
Your Answer:
system software
system software
BIOS software
BIOS software
software suites
software suites
sequential software
sequential software
Parameter passing mechanisms (call by value, reference)(MCQs) | T4Tutorials.com Skip to content T4Tutorials.com Home Homepage About Us Privacy Policy Jobs Openings Our Services Tutorials C++ DBMS OOP OS SE Theory Of Automata Software Testing Data Mining Data Structures Distributed Database HTML CSS Javascript PHP Projects Research Research Topics Research Questions List of Journals of Computer Science Jobs Test Pakistani Jobs PPSC FPSC Jobs Syllabus MCQs PAF ARMY NAVY Indian Jobs Papers MCQs Contact Email & Call us Youtube – Subscribe with us Facebook – Like our page Whatsapp – Follow Channel Open Search Search for: Main Menu Parameter passing mechanisms (call by value, reference)(MCQs) By Prof. Dr. Fazal Rehman Shamil, Last Updated:September 6, 2024 What is call by value?
1 Mark(s)
Your Answer:
Passing the address of an argument to a function
Passing the address of an argument to a function
Passing a copy of the value of the argument to a function
Passing a copy of the value of the argument to a function
Passing a reference to the argument to a function
Passing a reference to the argument to a function
Modifying the original variable directly
Modifying the original variable directly
The global assembly cache:
1 Mark(s)
Your Answer:
Can store two dll files with the same name
Can store two dll files with the same name
Can store two dll files with the same name, but different version
Can store two dll files with the same name, but different version
Can store two dll files with the same name and same version
Can store two dll files with the same name and same version
Can not store dll files with the same name
Can not store dll files with the same name
Which of the following class provides a subset of features provided by the Unix/GNU Sort?
1 Mark(s)
Your Answer:
KeyFieldBased
KeyFieldBased
KeyFieldComparator
KeyFieldComparator
KeyFieldBasedComparator
KeyFieldBasedComparator
All of the mentioned
All of the mentioned
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.