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
:
51
:
00
Q:
1
/
57
🤖
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.
Computer Networks Mock Test 7
Exam Duration:
00:51:00
Computer Networks Mock Test 7
: Question
1
of 57
Which of the following commands should you always use before submitting a document to others?
1 Mark(s)
Your Answer:
Find command
Find command
Replace command
Replace command
Spelling and Grammar
Spelling and Grammar
Thesaurus
Thesaurus
What does the `include?` method do when used with strings in Ruby?
1 Mark(s)
Your Answer:
Checks if a substring exists in the string
Checks if a substring exists in the string
Checks if a character exists in the string
Checks if a character exists in the string
Checks if the string includes another string
Checks if the string includes another string
Error
Error
Which string matching algorithm uses a heuristic to improve efficiency by skipping sections of the text?
1 Mark(s)
Your Answer:
Rabin-Karp
Rabin-Karp
Knuth-Morris-Pratt (KMP)
Knuth-Morris-Pratt (KMP)
Boyer-Moore
Boyer-Moore
Naive Search
Naive Search
Which Java operator is used to perform a logical NOT operation?
1 Mark(s)
Your Answer:
~
~
&&
&&
||
||
!
!
What is the significance of the MapReduce "Map" phase?
1 Mark(s)
Your Answer:
Distribute data to reducers
Distribute data to reducers
Process input key-value pairs
Process input key-value pairs
Sort and shuffle data
Sort and shuffle data
Aggregate values on the reducer side
Aggregate values on the reducer side
To create queries in Access
1 Mark(s)
Your Answer:
You can drag and drop fields on query builders
You can drag and drop fields on query builders
you can type the SQL command in SQL view
you can type the SQL command in SQL view
You can use query wizard or design view
You can use query wizard or design view
All of above
All of above
Shortcut key used to compile and run the program in C++ is…
1 Mark(s)
Your Answer:
Alt+F9
Alt+F9
Alt+F5
Alt+F5
Ctrl+F9
Ctrl+F9
F9
F9
How is a while loop different from a for loop in R?
1 Mark(s)
Your Answer:
while loop is used for fixed iterations, for loop for variable iterations
while loop is used for fixed iterations, for loop for variable iterations
for loop is used for fixed iterations, while loop for variable iterations
for loop is used for fixed iterations, while loop for variable iterations
Both while and for loops are used for fixed iterations
Both while and for loops are used for fixed iterations
Both while and for loops are used for variable iterations
Both while and for loops are used for variable iterations
The compression offset map grows to . . . . . . . . GB per terabyte compressed.
1 Mark(s)
Your Answer:
1-3
1-3
10-16
10-16
20-22
20-22
0-1
0-1
The volume is measured by help of a curve made in measuring cylinder called:
1 Mark(s)
Your Answer:
meniscus curve
meniscus curve
round curve
round curve
slanting curve
slanting curve
volume curve
volume curve
What is the role of the import statement in Python?
1 Mark(s)
Your Answer:
To declare variables
To declare variables
To define classes
To define classes
To import external modules
To import external modules
To output text to the console
To output text to the console
What is the purpose of the try-catch block in C#?
1 Mark(s)
Your Answer:
To handle exceptions that may occur in a block of code
To handle exceptions that may occur in a block of code
To throw exceptions
To throw exceptions
To declare custom exceptions
To declare custom exceptions
To clean up resources in case of an exception
To clean up resources in case of an exception
What is the main advantage of using encapsulation in Object-Oriented Programming?
1 Mark(s)
Your Answer:
It allows multiple classes to inherit from each other
It allows multiple classes to inherit from each other
It creates multiple instances of a class
It creates multiple instances of a class
It hides the internal state of an object and restricts access to it
It hides the internal state of an object and restricts access to it
It allows objects of different classes to be treated as objects of a common superclass
It allows objects of different classes to be treated as objects of a common superclass
The bandwidth of an audio signal (speech and music) is usually:
1 Mark(s)
Your Answer:
15 kHz
15 kHz
5 kHz
5 kHz
6 kHz
6 kHz
10 kHz
10 kHz
The set of all logical addresses generated by a program is referred to as a:
1 Mark(s)
Your Answer:
Memory Addresses
Memory Addresses
Physical Addresses
Physical Addresses
Logical address Space
Logical address Space
Buffer Addresses
Buffer Addresses
: How can you find the number of elements in an array int array[10]; in C?
1 Mark(s)
Your Answer:
sizeof(array) / sizeof(array[0])
sizeof(array) / sizeof(array[0])
sizeof(array) / sizeof(int)
sizeof(array) / sizeof(int)
sizeof(array[0]) / sizeof(array)
sizeof(array[0]) / sizeof(array)
sizeof(int) / sizeof(array)
sizeof(int) / sizeof(array)
Which one of the following is a data link protocol ?
1 Mark(s)
Your Answer:
ethernet
ethernet
point to point protocol
point to point protocol
HDLC
HDLC
all of these
all of these
Which of the following in Object Oriented Programming is supported by Function overloading and default arguments features of C++.
1 Mark(s)
Your Answer:
Inheritance
Inheritance
Encapsulation
Encapsulation
None of the above
None of the above
In an ideal engine all processes are:
1 Mark(s)
Your Answer:
irreversible
irreversible
reversible
reversible
random
random
constants
constants
What is the purpose of the "throw" keyword in Java exception handling?
1 Mark(s)
Your Answer:
To explicitly throw an exception
To explicitly throw an exception
To catch exceptions
To catch exceptions
To specify exception types
To specify exception types
To declare a method as "throws"
To declare a method as "throws"
Format of an email address is:
1 Mark(s)
Your Answer:
user name# DSN address
user name# DSN address
user name& DSN address
user name& DSN address
user name@ DSN address
user name@ DSN address
user name$DSN.com
user name$DSN.com
What is the value stored in t1[2] when the following code is executed? #include<stdio.h> int get_min(int a, int b) { if(a<b) return a; return b; } int minimum_time_required(int reach[][3],int spent[][4], int *entry, int *exit, int n) { int t1[n], t2[n],i; t1[0] = entry[0] + spent[0][0]; t2[0] = entry[1] + spent[1][0]; for(i = 1; i < n; i++) { t1[i] = get_min(t1[i-1]+spent[0][i], t2[i-1]+reach[1][i-1]+spent[0][i]); t2[i] = get_min(t2[i-1]+spent[1][i], t1[i-1]+reach[0][i-1]+spent[1][i]); } return get_min(t1[n-1]+exit[0], t2[n-1]+exit[1]); } int main() { int time_to_reach[][3] = {{6, 1, 5}, {2, 4, 7}}; int time_spent[][4] = {{6, 5, 4, 7}, {5, 10, 2, 6}}; int entry_time[2] = {5, 6}; int exit_time[2] = {8, 9}; int num_of_stations = 4; int ans = minimum_time_required(time_to_reach, time_spent, entry_time, exit_time, num_of_stations); printf("%d",ans); return 0; }
1 Mark(s)
Your Answer:
16
16
18
18
20
20
22
22
Which is an example of a formula?
1 Mark(s)
Your Answer:
Add(A1:A2)
Add(A1:A2)
SUM(A1:A2)
SUM(A1:A2)
=A1 +A2
=A1 +A2
None of these
None of these
What are .bas, .doc, .htm examples of in computing?
1 Mark(s)
Your Answer:
Extensions
Extensions
Protocols
Protocols
Database
Database
Domains
Domains
None of these
None of these
Coefficient of thermal expansion of pyrex glass is:
1 Mark(s)
Your Answer:
1.2x10-6/C°
1.2x10-6/C°
3.2x10-6/C°
3.2x10-6/C°
9x10-4/C°
9x10-4/C°
11x10-4/C°
11x10-4/C°
What is the shortcut key for grammar and spelling to check in document?
1 Mark(s)
Your Answer:
F1
F1
F2
F2
F5
F5
F7
F7
The bridge can be operated on which of the following layers?
1 Mark(s)
Your Answer:
physical and data link layer
physical and data link layer
physical and sessional layer
physical and sessional layer
application and data link layer
application and data link layer
physical and presentation layer
physical and presentation layer
Which of the following term is best defined by the statement: “The names of the operations in the ‘provides’ and ‘requires’ interfaces are different.” ?
1 Mark(s)
Your Answer:
Parameter incompatibility
Parameter incompatibility
Operation incompleteness
Operation incompleteness
Operation incompatibility
Operation incompatibility
None of the mentioned
None of the mentioned
What is the output for the below code? interface A{ public void printValue(); } public class Test{ public static void main (String[] args){ A a1 = new A(){ public void printValue(){ System.out.println("A"); } }; a1.printValue(); } }
1 Mark(s)
Your Answer:
Compilation fails due to an error on line 3
Compilation fails due to an error on line 3
A
A
Compilation fails due to an error on line 8
Compilation fails due to an error on line 8
null
null
None of these
None of these
What will be the output of the following PHP code? <?php $fruits = array ("apple", "mango", "peach", "pear", "orange"); $subset = array_splice ($fruits, 2); print_r ($fruits); ?>
1 Mark(s)
Your Answer:
Error
Error
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => apple [1] => mango )
Array ( [0] => apple [1] => mango )
Array ( [0] => pear [1] => orange )
Array ( [0] => pear [1] => orange )
Cristian Doppler described the Doppler effect in:
1 Mark(s)
Your Answer:
1820
1820
1842
1842
1920
1920
1947
1947
Who is called the Father of Internet?
1 Mark(s)
Your Answer:
Vint Cerf
Vint Cerf
Charles Babbage
Charles Babbage
Tim Berners Lee
Tim Berners Lee
None of these
None of these
Once a table of contents is created, there are some changes in the text, now the created table of content ______?
1 Mark(s)
Your Answer:
Need to be created again
Need to be created again
Can be updated
Can be updated
Cannot be updated
Cannot be updated
None of these
None of these
Which of the following specifies the expiry time for cached location information?
1 Mark(s)
Your Answer:
maximumAge
maximumAge
timeout
timeout
enableHighAccuracy
enableHighAccuracy
position_unavailable
position_unavailable
Which of the following is not a JDBC connection isolation levels?
1 Mark(s)
Your Answer:
TRANSACTION_NONE
TRANSACTION_NONE
TRANSACTION_READ_COMMITTED
TRANSACTION_READ_COMMITTED
TRANSACTION_REPEATABLE_READ
TRANSACTION_REPEATABLE_READ
TRANSACTION_NONREPEATABLE_READ
TRANSACTION_NONREPEATABLE_READ
What establishes the profile of end-users of the system ?
1 Mark(s)
Your Answer:
design model
design model
user’s model
user’s model
mental image
mental image
system image
system image
What will be the output of the following Java program? class leftshift_operator { public static void main(String args[]) { byte x = 64; int i; byte y; i = x
1 Mark(s)
Your Answer:
0 64
0 64
64 0
64 0
0 256
0 256
256 0
256 0
Different meta tags are defined by changing the __________ attribute to a valid value.
1 Mark(s)
Your Answer:
scheme
scheme
content
content
http-equiv
http-equiv
name
name
On heating sugar gives off:
1 Mark(s)
Your Answer:
carbon(black solid0
carbon(black solid0
water vapors
water vapors
both a and b
both a and b
carbon dioxide
carbon dioxide
In Solaris, on a typical implementation the process structure includes the process:
1 Mark(s)
Your Answer:
Address
Address
ID
ID
Location
Location
Index
Index
LightTPD is not used by
1 Mark(s)
Your Answer:
You Tube
You Tube
Wikipedia
Wikipedia
Meebo
Meebo
LocalHost
LocalHost
In IPv4, the total size of the datagram must be less than the _______.
1 Mark(s)
Your Answer:
MUT
MUT
MAT
MAT
MTU
MTU
None of the above
None of the above
A common name for software errors is:?
1 Mark(s)
Your Answer:
Buses
Buses
Trojan
Trojan
Logic Bombs
Logic Bombs
Bugs Answer
Bugs Answer
In a graph with weighted edges, what does the term "relaxation" refer to in shortest path algorithms?
1 Mark(s)
Your Answer:
Expanding the adjacency list of a vertex.
Expanding the adjacency list of a vertex.
Removing edges that cause negative cycles.
Removing edges that cause negative cycles.
Updating the shortest path estimate if a shorter path is found.
Updating the shortest path estimate if a shorter path is found.
Adding a new vertex to the graph.
Adding a new vertex to the graph.
What will be the output of the following PHP code ? <?php $x=0; function fun() { echo $GLOBALS['x']; $GLOBALS['x']++; } fun(); fun(); fun(); ?>
1 Mark(s)
Your Answer:
000
000
012
012
123
123
Error
Error
A cell that is modified to boost the performance of nerve impulse is known as:
1 Mark(s)
Your Answer:
palisade
palisade
root hair
root hair
nerve cell
nerve cell
red blood
red blood
Choose the effective stringBuilder method which helps in producing output for the following C# code? static void Main(string[] args) { StringBuilder s = new StringBuilder("object"); s./*______*/("Oriented Language"); Console.WriteLine(s); Console.ReadLine(); } Output : objectOriented Language
1 Mark(s)
Your Answer:
Insert()
Insert()
Add()
Add()
Append()
Append()
Join()
Join()
What will be the output of the following C code? #include <stdio.h> void main() { double k = 0; for (k = 0.0; k
1 Mark(s)
Your Answer:
Run time error
Run time error
Hello is printed thrice
Hello is printed thrice
Hello is printed twice
Hello is printed twice
Hello is printed infinitely
Hello is printed infinitely
Which of the following is a HyperGraph, where V is the set of vertices, E is the set of edges?
1 Mark(s)
Your Answer:
V = {v1, v2, v3} E = {e1, e2} = {{v2, v3} {v1, v3}}
V = {v1, v2, v3} E = {e1, e2} = {{v2, v3} {v1, v3}}
V = {v1, v2} E = {e1} = {{v1, v2}}
V = {v1, v2} E = {e1} = {{v1, v2}}
V = {v1, v2, v3} E = {e1, e2, e3} = {{v2, v3}{v3, v1}{v2, v1}}
V = {v1, v2, v3} E = {e1, e2, e3} = {{v2, v3}{v3, v1}{v2, v1}}
All of the mentioned
All of the mentioned
What is a lambda in Ruby?
1 Mark(s)
Your Answer:
A type of anonymous function similar to a proc, but with stricter argument checking
A type of anonymous function similar to a proc, but with stricter argument checking
A block of code that is passed to methods as an argument
A block of code that is passed to methods as an argument
A predefined set of instructions
A predefined set of instructions
A method that takes no arguments
A method that takes no arguments
Study the following program: try: if '2' != 2: raise "JavaTpoint" else: print("JavaTpoint has not exist") except "JavaTpoint": print ("JavaTpoint has exist") What will be the output of this statement? ``` try: if '2' != 2: raise "JavaTpoint" else: print("JavaTpoint has not exist") except "JavaTpoint": print ("JavaTpoint has exist") ```
1 Mark(s)
Your Answer:
invalid code
invalid code
JavaTpoint has not exist
JavaTpoint has not exist
JavaTpoint has exist
JavaTpoint has exist
none of these above
none of these above
This the right way to comment a single line. “Ruby”.length # I’m a single line comment!
1 Mark(s)
Your Answer:
True
True
False
False
Combination of two or more topologies are called _______ ?
1 Mark(s)
Your Answer:
Hybrid
Hybrid
Star
Star
Bus
Bus
Ring
Ring
Product of torque and angular velocity is equals to:
1 Mark(s)
Your Answer:
power
power
kinetic energy
kinetic energy
rotational inertia
rotational inertia
angular acceleration
angular acceleration
Time sharing systems of the computer system have:
1 Mark(s)
Your Answer:
clusters
clusters
nodes
nodes
file system
file system
Data Blocks
Data Blocks
Which of the following is correct for inline function definition outside class?
1 Mark(s)
Your Answer:
inline int MyClass::func() { return 1; }
inline int MyClass::func() { return 1; }
int inline MyClass::func() { return 1; }
int inline MyClass::func() { return 1; }
MyClass::func inline int() { return 1; }
MyClass::func inline int() { return 1; }
static inline MyClass::func() { return 1; }
static inline MyClass::func() { return 1; }
How does double hashing work to resolve collisions in a hash table?
1 Mark(s)
Your Answer:
By linking colliding elements in a list.
By linking colliding elements in a list.
By using a quadratic function to find a new slot.
By using a quadratic function to find a new slot.
By probing linearly for the next open slot.
By probing linearly for the next open slot.
By using a second hash function to compute a new index.
By using a second hash function to compute a new index.
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.