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
:
42
:
00
Q:
1
/
47
🤖
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.
Kotlin Mock Test 3
Exam Duration:
00:42:00
Kotlin Mock Test 3
: Question
1
of 47
How many types of Machine Learning are there?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
4
4
What will be the output of the following PHP code ? <?php function TV($string) { echo "my favourite TV show is ".$string; function b() { echo " I am here to spoil this code"; } } function b() { echo " I am here to spoil this code"; } b(); TV("Sherlock"); ?>
1 Mark(s)
Your Answer:
I am here to spoil this code
I am here to spoil this code
Error
Error
My favourite TV show isI am here to spoil this code
My favourite TV show isI am here to spoil this code
None of the mentioned
None of the mentioned
What is the correct syntax to declare a method named Add that takes two integer parameters and returns their sum in C#?
1 Mark(s)
Your Answer:
Add(int num1, int num2)
Add(int num1, int num2)
int Add(num1, num2)
int Add(num1, num2)
Add(num1, num2)
Add(num1, num2)
int Add(int num1, int num2)
int Add(int num1, int num2)
Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.
1 Mark(s)
Your Answer:
FileMode.CreateNew
FileMode.CreateNew
FileMode.Create
FileMode.Create
FileMode.OpenOrCreate
FileMode.OpenOrCreate
FileMode.Truncate
FileMode.Truncate
A greenhouse gas that absorbs energy and maintains the earth's temperature is:
1 Mark(s)
Your Answer:
carbon dioxide
carbon dioxide
oxygen
oxygen
nitrogen
nitrogen
argon
argon
How many edges are present in path cluster?
1 Mark(s)
Your Answer:
2
2
3
3
6
6
1
1
Which of the following represents the correct explicit call to a constructor of class A? class A{ int a; public: A(int i) { a = i; } }
1 Mark(s)
Your Answer:
A a(5);
A a(5);
A a;
A a;
A a = A(5);
A a = A(5);
A a = A();
A a = A();
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
Why do we prefer Red Black tree over AVL tree?
1 Mark(s)
Your Answer:
Red Black trees are not strictly balanced
Red Black trees are not strictly balanced
Red black tree requires lesser rotations than AVL tree.
Red black tree requires lesser rotations than AVL tree.
AVL tree needs more space to store the balance factor.
AVL tree needs more space to store the balance factor.
Both b and c
Both b and c
Assertion (A): Sexual reproduction leads to variation in offspring. Reason (R): Gametes from two parents combine to form a zygote with mixed genetic material. Codes:
1 Mark(s)
Your Answer:
A) Both (A) and (R) are true, and (R) is the correct explanation of (A).
A) Both (A) and (R) are true, and (R) is the correct explanation of (A).
B) Both (A) and (R) are true, but (R) is not the correct explanation of (A).
B) Both (A) and (R) are true, but (R) is not the correct explanation of (A).
C) (A) is true, but (R) is false.
C) (A) is true, but (R) is false.
D) (A) is false, but (R) is true. (A) and (R) are true, and (R) is the correct explanation of (A). Our Home: Earth, A Unique Life Sustaining Planet Class 8 Fill in the blanks
D) (A) is false, but (R) is true. (A) and (R) are true, and (R) is the correct explanation of (A). Our Home: Earth, A Unique Life Sustaining Planet Class 8 Fill in the blanks
Why are local variable names beginning with an underscore discouraged?
1 Mark(s)
Your Answer:
they are used to indicate a private variables of a class
they are used to indicate a private variables of a class
they confuse the interpreter
they confuse the interpreter
they are used to indicate global variables
they are used to indicate global variables
they slow down execution
they slow down execution
Which of the following statements about destructors in C++ is true?
1 Mark(s)
Your Answer:
Destructors can be overloaded
Destructors can be overloaded
Destructors can be inherited
Destructors can be inherited
Destructors are called when an object is created
Destructors are called when an object is created
Destructors cannot have parameters
Destructors cannot have parameters
Which function allocates memory dynamically in C?
1 Mark(s)
Your Answer:
malloc
malloc
new
new
create
create
alloc
alloc
Which of the following is not a appropriate value for font-variant property?
1 Mark(s)
Your Answer:
inherit
inherit
default
default
large-caps
large-caps
small-caps
small-caps
JavaScript code between a pair of “script” tags are called
1 Mark(s)
Your Answer:
Non-inline
Non-inline
External
External
Referenced
Referenced
Inline
Inline
What will be the output of the following R code? > x <- c(1, 2, NaN, NA, 4) > is.na(x)
1 Mark(s)
Your Answer:
FALSE FALSE TRUE TRUE FALSE
FALSE FALSE TRUE TRUE FALSE
FALSE TRUE TRUE TRUE FALSE
FALSE TRUE TRUE TRUE FALSE
TRUE FALSE TRUE TRUE FALSE
TRUE FALSE TRUE TRUE FALSE
TRUE FALSE TRUE FALSE FALSE
TRUE FALSE TRUE FALSE FALSE
Which header file is used for multi-threading in C++?
1 Mark(s)
Your Answer:
<mutex>
<mutex>
<condition_variable>
<condition_variable>
<thread>
<thread>
<atomic>
<atomic>
Which of the following is not an OOPS concept?
1 Mark(s)
Your Answer:
Encapsulation
Encapsulation
Polymorphism
Polymorphism
Exception
Exception
Abstraction
Abstraction
Name given to something that the computer can automatically use unless you tell it otherwise is:
1 Mark(s)
Your Answer:
a specification
a specification
a wildcard
a wildcard
a default
a default
a rule
a rule
Who is the father of Internet ?
1 Mark(s)
Your Answer:
Chares Babbage
Chares Babbage
Vint Cerf
Vint Cerf
Denis Riche
Denis Riche
Martin Cooper
Martin Cooper
What is the purpose of the Reverse operator in LINQ?
1 Mark(s)
Your Answer:
Sorts the elements of a sequence in ascending order based on a key
Sorts the elements of a sequence in ascending order based on a key
Filters a sequence based on a predicate
Filters a sequence based on a predicate
Projects each element of a sequence
Projects each element of a sequence
Reverses the order of the elements in a sequence
Reverses the order of the elements in a sequence
What will be the output of the following Python function? float(' -12345\n') (Note that the number of blank spaces before the number is 5)
1 Mark(s)
Your Answer:
-12345.0 (5 blank spaces before the number)
-12345.0 (5 blank spaces before the number)
-12345.0
-12345.0
Error
Error
-12345.000000000.... (infinite decimal places)
-12345.000000000.... (infinite decimal places)
What will be the output of the following Python code? class Test: def __init__(self): self.x = 0 class Derived_Test(Test): def __init__(self): Test.__init__(self) self.y = 1 def main(): b = Derived_Test() print(b.x,b.y) main()
1 Mark(s)
Your Answer:
Error because class B inherits A but variable x isn't inherited
Error because class B inherits A but variable x isn't inherited
0 0
0 0
0 1
0 1
Error, the syntax of the invoking method is wrong
Error, the syntax of the invoking method is wrong
Which keyword is used to exit a loop in Java?
1 Mark(s)
Your Answer:
continue
continue
return
return
exit
exit
break
break
In R, what is the role of the RcppArmadillo package?
1 Mark(s)
Your Answer:
Integration of R with C++ for linear algebra operations
Integration of R with C++ for linear algebra operations
Bayesian data analysis
Bayesian data analysis
Efficiently reading and writing data frames
Efficiently reading and writing data frames
Creating interactive and animated plots for time series data
Creating interactive and animated plots for time series data
Which class is used to read data from the keyboard in Java?
1 Mark(s)
Your Answer:
Scanner
Scanner
FileReader
FileReader
BufferedReader
BufferedReader
InputStream
InputStream
Bluetooth standard is:
1 Mark(s)
Your Answer:
802.15.1
802.15.1
802.11
802.11
802.16
802.16
802.3
802.3
What is the phase when the entire face of the Moon is visible from Earth?
1 Mark(s)
Your Answer:
A) First Quarter
A) First Quarter
B) New Moon
B) New Moon
C) Full Moon
C) Full Moon
D) Waning Crescent (A) and Reason (R). Read them carefully and choose the correct option.
D) Waning Crescent (A) and Reason (R). Read them carefully and choose the correct option.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x[i].upper() print (x)
1 Mark(s)
Your Answer:
abcd
abcd
ABCD
ABCD
error
error
none of the mentioned
none of the mentioned
Which of the following real time examples is based on insertion sort?
1 Mark(s)
Your Answer:
arranging a pack of playing cards
arranging a pack of playing cards
database scenarios and distributes scenarios
database scenarios and distributes scenarios
arranging books on a library shelf
arranging books on a library shelf
real-time systems
real-time systems
Which of the following statements is true about multidimensional arrays in C++?
1 Mark(s)
Your Answer:
They can only be 2D arrays
They can only be 2D arrays
The size of each dimension must be known at compile time
The size of each dimension must be known at compile time
They can store elements of different types
They can store elements of different types
They are always dynamically allocated
They are always dynamically allocated
Which one of the following is the correct way to increment the rear end in a circular queue?
1 Mark(s)
Your Answer:
rear =rear+1
rear =rear+1
(rear+1) % max
(rear+1) % max
(rear % max) + 1
(rear % max) + 1
None of the above
None of the above
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<<"A's Constructor called\n"; } ~A(){ cout<<"A's Destructor called\n"; } }; class B: public A{ public: B(){ cout<<"B's Constructor called\n"; } ~B(){ cout<<"B's Destructor called\n"; } }; int main(int argc, char const *argv[]) { B b1; }
1 Mark(s)
Your Answer:
A's Constructor called B's Constructor called
A's Constructor called B's Constructor called
A's Destructor called B's Destructor called
A's Destructor called B's Destructor called
A's Constructor called B's Constructor called B's Destructor called A's Destructor called
A's Constructor called B's Constructor called B's Destructor called A's Destructor called
A's Constructor called B's Constructor called A's Destructor called B's Destructor called
A's Constructor called B's Constructor called A's Destructor called B's Destructor called
The "Bulk loader" utilities allow data to be read from:
1 Mark(s)
Your Answer:
Rewritable text files
Rewritable text files
Non-readable text files
Non-readable text files
Formatted text files
Formatted text files
Extracted text files
Extracted text files
What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.
1 Mark(s)
Your Answer:
10
10
20
20
30
30
40
40
What is encapsulation in Ruby?
1 Mark(s)
Your Answer:
The inheritance of properties and behaviors
The inheritance of properties and behaviors
The bundling of data with the methods that operate on that data
The bundling of data with the methods that operate on that data
The conversion of data types
The conversion of data types
None of the above
None of the above
. . . . . . . . is an RPC framework that defines a compact binary serialization format used to persist data structures for later analysis.
1 Mark(s)
Your Answer:
Pig
Pig
Hive
Hive
Thrift
Thrift
None of the mentioned
None of the mentioned
If your router is facilitating a CSU/DSU, which of the following commands do you need to use to provide the router with a 64000bps serial link?
1 Mark(s)
Your Answer:
RouterA(config)#bandwidth 64
RouterA(config)#bandwidth 64
RouterA(config-if)#bandwidth 64000
RouterA(config-if)#bandwidth 64000
RouterA(config-if)#clock rate 64
RouterA(config-if)#clock rate 64
RouterA(config-if)#clock rate 64000
RouterA(config-if)#clock rate 64000
What will be the output of the following Python statement? >>>print(chr(ord('b')+1))
1 Mark(s)
Your Answer:
a
a
b
b
c
c
A
A
In modern operating systems, feature which has dramatically improved user productivity is:
1 Mark(s)
Your Answer:
command-line interface
command-line interface
copy and paste
copy and paste
multitasking
multitasking
intrusion detection
intrusion detection
For the substitution of all, SQL uses the decode function, which conceptually is:
1 Mark(s)
Your Answer:
Simple
Simple
Small
Small
Complex
Complex
Large
Large
Context switching is:
1 Mark(s)
Your Answer:
Saving/Loading process state
Saving/Loading process state
Switching memory
Switching memory
Switching power
Switching power
Switching user
Switching user
Which modifier is used to perform global matching in Ruby regular expressions?
1 Mark(s)
Your Answer:
x
x
g
g
o
o
None of the above
None of the above
Which is the predefined package ?
1 Mark(s)
Your Answer:
Lang package
Lang package
util package
util package
io package
io package
All of above
All of above
Which Java data type is used to store a single 16-bit Unicode character?
1 Mark(s)
Your Answer:
int
int
char
char
short
short
None of These
None of These
Ultimate strength of Douglas fir wood is:
1 Mark(s)
Your Answer:
110x106 N/m2
110x106 N/m2
10x106 N/m2
10x106 N/m2
40x106 N/m2
40x106 N/m2
50x106 N/m2
50x106 N/m2
Which of the following is true about a header file…
1 Mark(s)
Your Answer:
Definitions of various constants
Definitions of various constants
Definitions of various data types
Definitions of various data types
Prototypes of standard library functions
Prototypes of standard library functions
All of the above
All of the above
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.