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
:
31
:
00
Q:
1
/
34
🤖
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.
Algorithms Mock Test 4
Exam Duration:
00:31:00
Algorithms Mock Test 4
: Question
1
of 34
In the function malloc(), each byte of allocated space is initialized to zero.
1 Mark(s)
Your Answer:
True
True
False
False
How many predefined exceptions does SPL provide access to?
1 Mark(s)
Your Answer:
13
13
14
14
15
15
16
16
What is the output of ["apple", "banana", "cherry"].join(", ") in Ruby?
1 Mark(s)
Your Answer:
"apple, banana, cherry"
"apple, banana, cherry"
["apple", "banana", "cherry"]
["apple", "banana", "cherry"]
"applebanana cherry"
"applebanana cherry"
["apple, banana, cherry"]
["apple, banana, cherry"]
Perihelion of Moon about the Sun is:
1 Mark(s)
Your Answer:
147.1x106 Km
147.1x106 Km
107.5x106 Km
107.5x106 Km
0.363x106 Km
0.363x106 Km
46.0x106 Km
46.0x106 Km
Which of the following is not necessary for standalone computer? RAM , LAN Card ,Operating System , None of these
1 Mark(s)
Your Answer:
RAM
RAM
LAN Card
LAN Card
Operating System
Operating System
None of these
None of these
What is the purpose of the 'std::queue' container adapter in C++ STL?
1 Mark(s)
Your Answer:
To provide first-in, first-out (FIFO) access to elements
To provide first-in, first-out (FIFO) access to elements
To provide last-in, first-out (LIFO) access to elements
To provide last-in, first-out (LIFO) access to elements
To store elements in a sorted sequence
To store elements in a sorted sequence
To store elements in a hash table
To store elements in a hash table
Which option is used to copy formatting from one place and apply it to another?
1 Mark(s)
Your Answer:
Copy
Copy
Copy formatter
Copy formatter
Format painter
Format painter
Formatting
Formatting
An SQL view is said to be updatable, if the from clause has:
1 Mark(s)
Your Answer:
Only 1 database relation
Only 1 database relation
Only 2 database relation
Only 2 database relation
Only 3 database relation
Only 3 database relation
Only 4 database relation
Only 4 database relation
Computer output which can be represent on screen and is not tangible is called:
1 Mark(s)
Your Answer:
software
software
window
window
softcopy
softcopy
desktop
desktop
What is the correct postfix expression for the following expression? a+b*(c^d-e)^(f+g*h)-i
1 Mark(s)
Your Answer:
abc^de-fg+*^*+i-
abc^de-fg+*^*+i-
abcde^-fg*+*^h*+i-
abcde^-fg*+*^h*+i-
abcd^e-fgh*+^*+i-
abcd^e-fgh*+^*+i-
ab^-dc*+ef^gh*+i-
ab^-dc*+ef^gh*+i-
Choose the most appropriate statement about the code enum color:byte { yellow = 500, green = 1000, pink = 1300 } :
1 Mark(s)
Your Answer:
byte value cannot be assigned to enum elements
byte value cannot be assigned to enum elements
num elements should always take successive values
num elements should always take successive values
enum must always be of int type
enum must always be of int type
When the valid range of byte exceeds, the compiler will report an error
When the valid range of byte exceeds, the compiler will report an error
Monitor device of computer system is an:
1 Mark(s)
Your Answer:
input
input
output
output
I/O
I/O
memory
memory
Which of the following is true about the head pointer in a linked list?
1 Mark(s)
Your Answer:
It always points to the last node
It always points to the last node
It is null if the list is empty
It is null if the list is empty
It always points to the middle node
It always points to the middle node
It always points to the second node
It always points to the second node
Collection of characters, numbers and symbols is?
1 Mark(s)
Your Answer:
Data
Data
Keyboard
Keyboard
Monitor
Monitor
Ram
Ram
What will be the output of the following C# code? static void Main(string[] args) { int const p = 0; switch (3 * 5 / 6) { case p: Console.WriteLine("A"); break; case p * 1: Console.WriteLine("B"); break; case p - 2: Console.WriteLine("C"); break; default: Console.WriteLine("D"); } }
1 Mark(s)
Your Answer:
A
A
B
B
C
C
Compile time error
Compile time error
What is the purpose of the 'sizeof' operator in C?
1 Mark(s)
Your Answer:
Calculate square root
Calculate square root
Determine size
Determine size
Perform division
Perform division
Convert to string
Convert to string
What does the following declaration mean? int (*ptr)[10];
1 Mark(s)
Your Answer:
ptr is array of pointers to 10 integers
ptr is array of pointers to 10 integers
ptr is a pointer to an array of 10 integers
ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is an array of 10 integers
ptr is an pointer to array
ptr is an pointer to array
Which among the following concept is correct if a user using the concept of encapsulation in a code?
1 Mark(s)
Your Answer:
The modification of the code can be additional overhead
The modification of the code can be additional overhead
Member functions can be used for modifying the data type of data members
Member functions can be used for modifying the data type of data members
The data type of data member cannot be modified.
The data type of data member cannot be modified.
The data type of the data member can be easily modified without modifying any other code
The data type of the data member can be easily modified without modifying any other code
Which of following is a web browser?
1 Mark(s)
Your Answer:
Paint and Database
Paint and Database
Word and PowerPoint
Word and PowerPoint
Fire fox and Chrome
Fire fox and Chrome
None of these
None of these
A set of processes is deadlock if ?
1 Mark(s)
Your Answer:
each process is blocked and will remain so forever
each process is blocked and will remain so forever
each process is terminated
each process is terminated
all processes are trying to kill each other
all processes are trying to kill each other
None of these
None of these
The browser _____keep a list of web pages you have visited in the current session?
1 Mark(s)
Your Answer:
History
History
Cache
Cache
Trail
Trail
None
None
Hour glass was used in past days to know:
1 Mark(s)
Your Answer:
time
time
length
length
mass
mass
volume
volume
All attribute declarations begin with the keyword ____________ followed by the element name, attribute name, attribute type, and default data information.
1 Mark(s)
Your Answer:
XML
XML
SGML
SGML
ATTLIST
ATTLIST
None of the mentioned
None of the mentioned
Which statements among following are correct?
1 Mark(s)
Your Answer:
We can derive a class from a base class even if source code of base class not available
We can derive a class from a base class even if source code of base class not available
Multiple inheritance is different from multiple levels of inheritance
Multiple inheritance is different from multiple levels of inheritance
It is legal to make objects of one class as members of another class
It is legal to make objects of one class as members of another class
All of the mentioned
All of the mentioned
In Network Address Translation (NAT), the range of addresses for private networks from 10.0.0.0 to 10.255.255.255 makes a total of:
1 Mark(s)
Your Answer:
224
224
225
225
226
226
228
228
What is polymorphism in Ruby?
1 Mark(s)
Your Answer:
The ability for objects of different classes to be treated as objects of a common superclass
The ability for objects of different classes to be treated as objects of a common superclass
The ability to hide the implementation details of a class
The ability to hide the implementation details of a class
The ability to restrict access to certain methods
The ability to restrict access to certain methods
The ability to create objects from a class
The ability to create objects from a class
In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should be loaded when the page loads.
1 Mark(s)
Your Answer:
preload
preload
autoplay
autoplay
buffered
buffered
controller
controller
Which of the following is known as the step by step procedure to solve a problem?
1 Mark(s)
Your Answer:
Graph
Graph
Table
Table
Algorithm
Algorithm
None of the above
None of the above
In Ruby, what is the purpose of the `case` statement when combined with `when` clauses?
1 Mark(s)
Your Answer:
To define a block of code that executes when a condition is met
To define a block of code that executes when a condition is met
To iterate over a collection of elements
To iterate over a collection of elements
To perform mathematical calculations
To perform mathematical calculations
To define a class
To define a class
What does the command 'ipconfig /release' do?
1 Mark(s)
Your Answer:
Renews IP
Renews IP
Releases IP
Releases IP
Shows IP
Shows IP
Tests IP
Tests IP
SQL was developed, as part of the System R project in the early:
1 Mark(s)
Your Answer:
1960s
1960s
1970s
1970s
1980s
1980s
1990s
1990s
How do you find the difference in seconds between two Time objects in Ruby?
1 Mark(s)
Your Answer:
Use the diff method with the seconds option
Use the diff method with the seconds option
Use the difference method with the seconds option
Use the difference method with the seconds option
Subtract one Time object from another and convert the result to seconds
Subtract one Time object from another and convert the result to seconds
Use the delta method with the seconds option
Use the delta method with the seconds option
In the token passing method, the stations are organized in the logical:
1 Mark(s)
Your Answer:
ring
ring
bus
bus
star
star
hybrid
hybrid
Which is the property of a Window object that holids the name of the frame?
1 Mark(s)
Your Answer:
name
name
title
title
description
description
none of the mentioned
none of the mentioned
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.