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
01
:
07
:
00
Q:
1
/
74
🤖
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.
Go Programming Mock Test 2
Exam Duration:
01:07:00
Go Programming Mock Test 2
: Question
1
of 74
: Communication between user and the computer is…
1 Mark(s)
Your Answer:
Programming language
Programming language
Software
Software
Syntax
Syntax
English language
English language
Which is the function that allows a worker to terminate itself?
1 Mark(s)
Your Answer:
close()
close()
exit()
exit()
terminate()
terminate()
halt()
halt()
Math.random() returns . . . . . . . .
1 Mark(s)
Your Answer:
random number between 0 and 1
random number between 0 and 1
random number between 1 and 10
random number between 1 and 10
random number between 1 and 100
random number between 1 and 100
random number between 0 and 10
random number between 0 and 10
Which of the following is not a framework?
1 Mark(s)
Your Answer:
jQuery
jQuery
.NET
.NET
JavaScript
JavaScript
None of the mentioned
None of the mentioned
What does the max method do in Ruby enumerators?
1 Mark(s)
Your Answer:
Returns the total number of elements that satisfy a given condition
Returns the total number of elements that satisfy a given condition
Returns the element with the maximum index
Returns the element with the maximum index
Returns the element with the maximum value based on a given condition
Returns the element with the maximum value based on a given condition
Returns the maximum value in a collection
Returns the maximum value in a collection
A holistic approach to ____________is essential?
1 Mark(s)
Your Answer:
Health
Health
Fitness
Fitness
Both
Both
None of these
None of these
The part of the eye that is a messenger of electro-chemical signals from eye to the brain is:
1 Mark(s)
Your Answer:
blood vessel
blood vessel
optic nerve
optic nerve
iris
iris
cornea
cornea
Which of the following is an example of static memory allocation?
1 Mark(s)
Your Answer:
Linked list
Linked list
Stack
Stack
Queue
Queue
Array
Array
In C#, what is the purpose of the Action delegate?
1 Mark(s)
Your Answer:
Represents a delegate that encapsulates a method that takes no parameters and does not return a value
Represents a delegate that encapsulates a method that takes no parameters and does not return a value
Represents a delegate that encapsulates a method that takes no parameters and returns a value
Represents a delegate that encapsulates a method that takes no parameters and returns a value
Represents a delegate that encapsulates a method that has two parameters and returns a value
Represents a delegate that encapsulates a method that has two parameters and returns a value
Represents a delegate that can encapsulate a method with a single parameter and does not return a value
Represents a delegate that can encapsulate a method with a single parameter and does not return a value
Which method is used to convert a string to an array of characters in Ruby?
1 Mark(s)
Your Answer:
.to_chars
.to_chars
.split
.split
.to_array
.to_array
.chars
.chars
Laplace transform of function f(t)=e2tsinht is:
1 Mark(s)
Your Answer:
1/(s2-4s)
1/(s2-4s)
1/(s2-4s+3)
1/(s2-4s+3)
s2-4s+3
s2-4s+3
s2-4s
s2-4s
In C#, what method is used to convert a string to an array of characters?
1 Mark(s)
Your Answer:
Split()
Split()
ConvertToArray()
ConvertToArray()
ToArray()
ToArray()
ToCharArray()
ToCharArray()
The most important attribute of information quality that a manager requires is ?
1 Mark(s)
Your Answer:
relevance
relevance
media
media
presentation
presentation
timeliness
timeliness
When does the testing process stops ?
1 Mark(s)
Your Answer:
When resources (time and budget) are over
When resources (time and budget) are over
When some coverage is reached
When some coverage is reached
When quality criterion is reached
When quality criterion is reached
Testing never ends
Testing never ends
Practical and physical skills related to___________?
1 Mark(s)
Your Answer:
Heart
Heart
Tongue
Tongue
Mind
Mind
Hand
Hand
___________ instruction is a student-centered approach where the instructor guides the students through questions posed, methods designed, and data interpreted by the students?
1 Mark(s)
Your Answer:
Integrative pedagogy
Integrative pedagogy
Inquiry based
Inquiry based
Congnitive pedagogy
Congnitive pedagogy
None of these
None of these
Which protocol is used to retrieve emails from a server?
1 Mark(s)
Your Answer:
SMTP
SMTP
SNMP
SNMP
POP3
POP3
UDP
UDP
What is the result of the following code snippet? int k = 10; do { System.out.print(k + " "); k -= 2; } while (k > 0);
1 Mark(s)
Your Answer:
10 8 6 4
10 8 6 4
2 4 6 8 10
2 4 6 8 10
10 8 6 4 2
10 8 6 4 2
1 3 5 7 9
1 3 5 7 9
What will be the output of the following C++ code? #include <iostream> #include <string.h> using namespace std; int main() { struct student { int num; char name[25]; }; student stu; stu.num = 123; strcpy(stu.name, "John"); cout << stu.num << endl; cout << stu.name << endl; return 0; }
1 Mark(s)
Your Answer:
123 john
123 john
john john
john john
compile time error
compile time error
runtime error
runtime error
It is not possible to find the minimum number of steps to reach the end of an array in linear time.
1 Mark(s)
Your Answer:
true
true
false
false
What is the access modifier used to define a method that can be accessed from any class in the same assembly in C#?
1 Mark(s)
Your Answer:
public
public
private
private
protected
protected
internal
internal
Twitter is a ______?
1 Mark(s)
Your Answer:
Search engine
Search engine
E-mail service
E-mail service
Social network service
Social network service
None of these
None of these
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
Which of the following statements is true about C#?
1 Mark(s)
Your Answer:
C# is a scripting language
C# is a scripting language
C# is a markup language
C# is a markup language
C# is an object-oriented language
C# is an object-oriented language
C# is a procedural language
C# is a procedural language
What is the output of the following code: import re result = re.sub(r'd+', 'number', 'There are 5 apples and 3 oranges.') print(result)
1 Mark(s)
Your Answer:
There are number apples and number oranges.
There are number apples and number oranges.
An error will occur
An error will occur
There are 5 apples and 3 oranges.
There are 5 apples and 3 oranges.
There are number apples and 3 oranges.
There are number apples and 3 oranges.
Odd-even sort is also known as . . . . . . . .
1 Mark(s)
Your Answer:
stupid sort
stupid sort
smart sort
smart sort
brick sort
brick sort
bogo sort
bogo sort
The process of transforming a model into source code is known as___________________?
1 Mark(s)
Your Answer:
Forward engineering
Forward engineering
Reverse engineering
Reverse engineering
Re-engineering
Re-engineering
Reconstructing
Reconstructing
To write a relational query, the statement that is used is:
1 Mark(s)
Your Answer:
Select cursor statement
Select cursor statement
Define cursor statement
Define cursor statement
Declare cursor statement
Declare cursor statement
Create cursor statement
Create cursor statement
Choose the statements which makes use of essential properties rather than making data member public in C#.NET?
1 Mark(s)
Your Answer:
Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties
Properties have their own access levels like private, public, protected etc. which allows it to have better control about managing read and write properties
Properties give us control about what values may be assigned to a member variable of a class they represent
Properties give us control about what values may be assigned to a member variable of a class they represent
Properties consist of set accessor inside which we can validate the value before assigning it to the data variable
Properties consist of set accessor inside which we can validate the value before assigning it to the data variable
All of the mentioned
All of the mentioned
In accessing a database from a Java program is to, opening a connection is said to be the:
1 Mark(s)
Your Answer:
Zeroth step
Zeroth step
First step
First step
Second step
Second step
Last step
Last step
Emotional experience are________________________?
1 Mark(s)
Your Answer:
objective
objective
subjective
subjective
both
both
none of these
none of these
Worst case time complexity of Linear Search:
1 Mark(s)
Your Answer:
O(1)
O(1)
O(n)
O(n)
O(log n)
O(log n)
O(n^2)
O(n^2)
Transaction rollback is useful if during execution of transaction some detection of:
1 Mark(s)
Your Answer:
Error condition
Error condition
Flow control
Flow control
Data control
Data control
Error Response
Error Response
Mercury's period of revolution is:
1 Mark(s)
Your Answer:
0.241 y
0.241 y
0.615 y
0.615 y
1.00 y
1.00 y
1.88 y
1.88 y
‘Notification area’ is available in which Desktop’s function?
1 Mark(s)
Your Answer:
Windows Button
Windows Button
Taskbar
Taskbar
Title bar
Title bar
None of These
None of These
What will be the output of the following C# code? { try { int []a = {1, 2, 3, 4, 5}; for (int i = 0; i < 7; ++i) Console.WriteLine(a[i]); } catch(IndexOutOfRangeException e) { Console.WriteLine("0"); } Console.ReadLine(); }
1 Mark(s)
Your Answer:
12345
12345
123450
123450
1234500
1234500
Compile time error
Compile time error
What is the purpose of the strip() method for strings?
1 Mark(s)
Your Answer:
Removes leading and trailing whitespace
Removes leading and trailing whitespace
Converts a string to uppercase
Converts a string to uppercase
Converts a string to lowercase
Converts a string to lowercase
Adds whitespace to the end
Adds whitespace to the end
JavaScript is invented by ________.
1 Mark(s)
Your Answer:
Helsinki, Linus
Helsinki, Linus
W3 Group
W3 Group
Brendan Eich
Brendan Eich
James Gosling
James Gosling
Wastage in higher education may occur due to:
1 Mark(s)
Your Answer:
Students completing courses efficiently
Students completing courses efficiently
Optimal utilization of knowledge
Optimal utilization of knowledge
Stagnation and dropouts during the course
Stagnation and dropouts during the course
High employment of graduates
High employment of graduates
In computer, LCD monitor screen shape is:
1 Mark(s)
Your Answer:
flat
flat
oval
oval
cylinder
cylinder
cone
cone
What will be the output of the following Python code? import turtle t=turtle.Pen() t.color(0,1,0) t.begin_fill() for i in range(0,4): t.forward(100) t.right(90)
1 Mark(s)
Your Answer:
A square filled in with the colour green
A square filled in with the colour green
A square outlined with the colour green
A square outlined with the colour green
Blank canvas
Blank canvas
Error
Error
Assignment statements assigning value to local static variables are executed only once.
1 Mark(s)
Your Answer:
True
True
False
False
Depends on the code
Depends on the code
None of the mentioned
None of the mentioned
Which data structure would you use to implement a fast in-memory cache with an expiration policy?
1 Mark(s)
Your Answer:
Stack
Stack
Queue
Queue
Trie
Trie
Hash Map
Hash Map
In R, which package provides functions for conducting survival analysis?
1 Mark(s)
Your Answer:
surviveR
surviveR
survival
survival
lifetest
lifetest
eventR
eventR
Is a skip list like balanced tree?
1 Mark(s)
Your Answer:
true
true
false
false
They are "composite organisms" made up of two, or maybe three, completely different kinds of organisms and is called:
1 Mark(s)
Your Answer:
woodlice
woodlice
amoeba
amoeba
lichens
lichens
fungus
fungus
The philosopher who for the first time taught logic as a formal discipline was__________?
1 Mark(s)
Your Answer:
Aristotle
Aristotle
Plato
Plato
Socrates
Socrates
Edward Thorndike
Edward Thorndike
Teachers can engage students in learning by differentiating instruction to meet the needs of individual students. This can include offering different types of assignments or activities, or providing additional support to struggling students part of____________________________?
1 Mark(s)
Your Answer:
administration
administration
direction
direction
Classroom Management
Classroom Management
All of these
All of these
What will be the output of the given code? boolean_1 = false || -10 > -9 puts boolean_1
1 Mark(s)
Your Answer:
True
True
False
False
Error
Error
None of the mentioned
None of the mentioned
What will be the output of the following C code? #include <stdio.h> int main() { register const int i = 10; i = 11; printf("%d\n", i); }
1 Mark(s)
Your Answer:
10
10
Compile time error
Compile time error
Undefined behaviour
Undefined behaviour
11
11
What will be the result of depth first traversal in the following tree?
1 Mark(s)
Your Answer:
4 2 5 1 3
4 2 5 1 3
1 2 4 5 3
1 2 4 5 3
4 5 2 3 1
4 5 2 3 1
1 2 3 4 5
1 2 3 4 5
Which function is used to sort an array in C++?
1 Mark(s)
Your Answer:
sortArray()
sortArray()
qsort()
qsort()
sort()
sort()
array_sort()
array_sort()
Which of the following shortcut key is used to close the program?
1 Mark(s)
Your Answer:
Crt+F3
Crt+F3
F4
F4
Shif+F4
Shif+F4
Alt+F4
Alt+F4
Computer operation in which binary word stored in a specific memory location is sensed then transferred to another location is known as:
1 Mark(s)
Your Answer:
write operation
write operation
read and write operation
read and write operation
read operation
read operation
access operation
access operation
What if we cut the insert DNA with two distinct restriction enzymes at the ends?
1 Mark(s)
Your Answer:
It becomes difficult to insert the fragment
It becomes difficult to insert the fragment
The insert can litigate in any alignment
The insert can litigate in any alignment
The insert can ligate in only one alignment
The insert can ligate in only one alignment
The number of product increases
The number of product increases
What is the purpose of Hadoop's Impersonation in the context of security?
1 Mark(s)
Your Answer:
Managing data replication in HDFS
Managing data replication in HDFS
Enabling parallel processing in Hadoop
Enabling parallel processing in Hadoop
Optimizing task scheduling in MapReduce
Optimizing task scheduling in MapReduce
Allowing users to perform actions on behalf of another user
Allowing users to perform actions on behalf of another user
A Basic Service Set (BSS) without an AP is called an:
1 Mark(s)
Your Answer:
adhoc network
adhoc network
infrastructure network
infrastructure network
connectionless network
connectionless network
channelization network
channelization network
Headers and footers can include text and graphics, as well as the _____?
1 Mark(s)
Your Answer:
Current time
Current time
Current date
Current date
Page number
Page number
All of the above
All of the above
SHOW DATABASES lists the databases in the server to which you are connected.
1 Mark(s)
Your Answer:
True
True
False
False
Which of the given below is right closed bounded interval?
1 Mark(s)
Your Answer:
(c,d)={x| c < x < d}
(c,d)={x| c < x < d}
[c,d)={x| c < x < d}
[c,d)={x| c < x < d}
[c,d]={x| c < x < d}
[c,d]={x| c < x < d}
(c,d]={x| c < x < d}
(c,d]={x| c < x < d}
What is MQTT primarily used for?
1 Mark(s)
Your Answer:
User communication
User communication
System transfer
System transfer
Machine to Machine Communication
Machine to Machine Communication
Create connection
Create connection
Which of the following is defined by the specification?
1 Mark(s)
Your Answer:
dataMethod
dataMethod
input
input
inputMethod
inputMethod
inputdataMethod
inputdataMethod
Which wireless encryption is the strongest among these?
1 Mark(s)
Your Answer:
WEP
WEP
WPA
WPA
WPA2
WPA2
TKIP
TKIP
Each type may include a special value called the:
1 Mark(s)
Your Answer:
Real value
Real value
Duplicate value
Duplicate value
Null value
Null value
Float value
Float value
Input devices includes:
1 Mark(s)
Your Answer:
mouse, keyboard, monitor
mouse, keyboard, monitor
mouse, keyboard, printer
mouse, keyboard, printer
mouse, keyboard, plotter
mouse, keyboard, plotter
mouse, keyboard, scanner
mouse, keyboard, scanner
What will be the output of this code?void change(int x, int &y) { x = 10; y = 20; }int main() { int a = 1, b = 2; change(a, b); cout << a << " " << b; }
1 Mark(s)
Your Answer:
10 20
10 20
1 2
1 2
1 20
1 20
10 2
10 2
Select the wrong statement about ?ref? keyword in C#:
1 Mark(s)
Your Answer:
References can be called recursively
References can be called recursively
The ?ref? keyword causes arguments to be passed by reference
The ?ref? keyword causes arguments to be passed by reference
When ?ref? are used, any changes made to parameters in method will be reflected in variable when con
When ?ref? are used, any changes made to parameters in method will be reflected in variable when con
None of the above
None of the above
Which of the following can be considered as the maximum size that is supported by NTFS?
1 Mark(s)
Your Answer:
4GB
4GB
16TB
16TB
64TB
64TB
8TB
8TB
A normal CD-ROM usualy can store up to data?
1 Mark(s)
Your Answer:
680 KB
680 KB
680 Bytes
680 Bytes
680 MB
680 MB
60 GB
60 GB
Which of these toolbars allows changing of Fonts and their sizes?
1 Mark(s)
Your Answer:
Standard
Standard
Formatting
Formatting
Print Preview
Print Preview
None of these
None of these
Before HTML5 where data had to be stored?
1 Mark(s)
Your Answer:
cookies
cookies
browser
browser
only in Internet Explorer
only in Internet Explorer
only in Chrome
only in Chrome
In data mining, how many categories of functions are included?
1 Mark(s)
Your Answer:
5
5
4
4
2
2
3
3
Which algorithm is used for Classification?
1 Mark(s)
Your Answer:
Decision Tree
Decision Tree
K-Means
K-Means
Apriori
Apriori
PageRank
PageRank
What will be the output of the following C# code? static void Main(string[] args) { int[] x = { 80, 82, 65, 72, 83, 67 }; fun(x); Console.ReadLine(); } static void fun(params int [] b ) { int i; for (i = 5; i >=0 ; i--) { Console.WriteLine(Convert.ToChar(b[i])); } }
1 Mark(s)
Your Answer:
67 83 72 65 82 80
67 83 72 65 82 80
P R A H S C
P R A H S C
C S H A R P
C S H A R P
80 82 65 72 83 67
80 82 65 72 83 67
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.