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
:
45
:
00
Q:
1
/
50
🤖
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 1
Exam Duration:
00:45:00
Kotlin Mock Test 1
: Question
1
of 50
Choose the best answer. Prior to using a pointer variable
1 Mark(s)
Your Answer:
It should be declared.
It should be declared.
It should be initialized.
It should be initialized.
It should be both declared and initialized.
It should be both declared and initialized.
None of these.
None of these.
Ferns, orchids, ants, birds, fungi and microorganisms reside in a tree hence tree is their:
1 Mark(s)
Your Answer:
home
home
shelter
shelter
nest
nest
habitat
habitat
A pattern of 0s and 1s can be represented as a:
1 Mark(s)
Your Answer:
cyclic code
cyclic code
modulo-2
modulo-2
polynomial
polynomial
coefficient
coefficient
SQL allows the use of the logical connectives and, or, and not in the:
1 Mark(s)
Your Answer:
Define clause
Define clause
From clause
From clause
Where clause
Where clause
Select clause
Select clause
What will be the output of the following code: int i = 0; while (i < 3) { cout << i << " "; i++; } in C++?
1 Mark(s)
Your Answer:
Compilation error
Compilation error
1 2 3
1 2 3
0 1 2 3
0 1 2 3
0 1 2
0 1 2
What will be printed after execution of the following program code? main() { printf("\\nab"); printf("\\bsi"); printf("\\rha"); }
1 Mark(s)
Your Answer:
absiha
absiha
asiha
asiha
haasi
haasi
hai
hai
None of these
None of these
What will happen if white space is repeatedly used around the object?
1 Mark(s)
Your Answer:
It will reduce the readability
It will reduce the readability
It will create a border
It will create a border
It will make it more appealing by augmenting the object
It will make it more appealing by augmenting the object
All of the above
All of the above
What will be the output of the following Python code snippet? total={} def insert(items): if items in total: total[items] += 1 else: total[items] = 1 insert('Apple') insert('Ball') insert('Apple') print (len(total))
1 Mark(s)
Your Answer:
3
3
1
1
2
2
0
0
Which two models doesn’t allow defining requirements early in the cycle?
1 Mark(s)
Your Answer:
Waterfall & RAD
Waterfall & RAD
Prototyping & Spiral
Prototyping & Spiral
Prototyping & RAD
Prototyping & RAD
Waterfall & Spiral
Waterfall & Spiral
What does the ensure keyword do in Ruby exception handling?
1 Mark(s)
Your Answer:
It rescues specific types of exceptions
It rescues specific types of exceptions
It raises an exception
It raises an exception
It defines a new module
It defines a new module
It ensures that a block of code is always executed, regardless of whether an exception is raised or not
It ensures that a block of code is always executed, regardless of whether an exception is raised or not
What is the correct way to declare a jagged array in C#?
1 Mark(s)
Your Answer:
int[][][] jaggedArray;
int[][][] jaggedArray;
int[,] jaggedArray;
int[,] jaggedArray;
jaggedArray[]
jaggedArray[]
int[][] jaggedArray;
int[][] jaggedArray;
What will be the output of the following Java program? import java.util.*; class Maps { public static void main(String args[]) { HashMap obj = new HashMap(); obj.put("A", new Integer(1)); obj.put("B", new Integer(2)); obj.put("C", new Integer(3)); System.out.println(obj); } }
1 Mark(s)
Your Answer:
{A 1, B 1, C 1}
{A 1, B 1, C 1}
{A, B, C}
{A, B, C}
{A-1, B-1, C-1}
{A-1, B-1, C-1}
{A=1, B=2, C=3}
{A=1, B=2, C=3}
Perfect diamagnets are:
1 Mark(s)
Your Answer:
conductors
conductors
insulators
insulators
superconductors
superconductors
semiconductors
semiconductors
Which control is used to allow users to select a file from the file system in a Windows Forms Application?
1 Mark(s)
Your Answer:
OpenFileDialog
OpenFileDialog
SaveFileDialog
SaveFileDialog
PrintDialog
PrintDialog
ColorDialog
ColorDialog
Database that contains the users, shares and features of a network is:
1 Mark(s)
Your Answer:
enterprise directory
enterprise directory
distributed application
distributed application
shell
shell
operating environment
operating environment
What will be the output of the following C++ code? #include <stdio.h> #include<iostream> using namespace std; int main() { int a = 5, b = 10, c = 15; int arr[3] = {&a, &b, &c}; cout << *arr[*arr[1] - 8]; return 0; }
1 Mark(s)
Your Answer:
15
15
18
18
garbage value
garbage value
compile time error
compile time error
What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { static int a; public: A() { cout<<"Object of A is created\n"; } void show() { a++; cout<<"a: "<<a<<endl; } }; class B { public: }; int main(int argc, char const *argv[]) { A a1, a2; A a3 = a1 + a2; return 0; }
1 Mark(s)
Your Answer:
Runs perfectly
Runs perfectly
Run-time Error
Run-time Error
Segmentation fault
Segmentation fault
Compile-time Error
Compile-time Error
ESD would cause the most damage to component of computer which s:
1 Mark(s)
Your Answer:
power supply
power supply
expansion board
expansion board
monitor
monitor
keyboard
keyboard
What protocol does PPP use to identify the Network layer protocol?
1 Mark(s)
Your Answer:
NCP
NCP
ISDN
ISDN
HDLC
HDLC
LCP
LCP
How does Hadoop support encryption at rest for data stored in HDFS?
1 Mark(s)
Your Answer:
Implementing SSL/TLS encryption for data transit
Implementing SSL/TLS encryption for data transit
Configuring transparent data encryption (TDE)
Configuring transparent data encryption (TDE)
Using IPsec for secure communication
Using IPsec for secure communication
None of the above
None of the above
How is it possible that both programs and data can be stored on the same floppy disk ?
1 Mark(s)
Your Answer:
A floppy disk has two sides, one for data and one for programs
A floppy disk has two sides, one for data and one for programs
Programs and data are both software, and both can be stored on any memory device
Programs and data are both software, and both can be stored on any memory device
A floppy disk has to be formatted for one or for the other
A floppy disk has to be formatted for one or for the other
Floppy disks can only store data, not programs
Floppy disks can only store data, not programs
If birth rate Ub and death rate Ud of number of bacteria are proportional to number of bacteria present and Ub=Ud then at t=0, number of bacteria:
1 Mark(s)
Your Answer:
stays stable
stays stable
grows exponentially
grows exponentially
decays exponentially
decays exponentially
moves randomly
moves randomly
In SI system the unit for speed is written as:
1 Mark(s)
Your Answer:
meter
meter
meter/sec
meter/sec
meter/hour
meter/hour
km/sec
km/sec
How to get difference between two dates?
1 Mark(s)
Your Answer:
long diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
long diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
long diffInMilli = java.time.difference(dateTime1, dateTime2).toMillis();
long diffInMilli = java.time.difference(dateTime1, dateTime2).toMillis();
Date diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Date diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Time diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
Time diffInMilli = java.time.Duration.between(dateTime1, dateTime2).toMillis();
What will be the output of the following C# code? static void Main(string[] args) { String c = "Hello"; String a ; a = c.Replace('l', 'w'); Console.WriteLine(a); Console.ReadLine(); }
1 Mark(s)
Your Answer:
Helloll
Helloll
Hewlo
Hewlo
Helwo
Helwo
Hewwo
Hewwo
How do you access the last element of an array named 'values' in C#?
1 Mark(s)
Your Answer:
values[length(values)];
values[length(values)];
values[values.Length - 1];
values[values.Length - 1];
Last(values);
Last(values);
None of the above
None of the above
Microwaves transmission, coaxial cables and fiber optics are examples of:
1 Mark(s)
Your Answer:
modems
modems
routers
routers
transmission media
transmission media
ring networks
ring networks
If two bodies collide and their motion is along a single axis, the collision is:
1 Mark(s)
Your Answer:
one dimensional
one dimensional
two dimensional
two dimensional
three dimensional
three dimensional
four dimensional
four dimensional
#pragma GCC poison should be followed by a list of identifiers that are . . . . . . . .
1 Mark(s)
Your Answer:
even in number
even in number
odd in number
odd in number
valid
valid
invalid
invalid
Which of the following is true about inline function?
1 Mark(s)
Your Answer:
Reduces function call overhead
Reduces function call overhead
Always increases code size
Always increases code size
Cannot take parameters
Cannot take parameters
Must return void
Must return void
The Transmission Control Protocol/Internet Protocol (TCP/IP) layer is equivalent to combined Session, Presentation and:
1 Mark(s)
Your Answer:
network layer
network layer
application layer
application layer
transport layer
transport layer
both a and c
both a and c
What is the syntax for a single-line comment in C++?
1 Mark(s)
Your Answer:
--
--
#
#
//
//
/* */
/* */
In Internet explorer, favorites bar can be shown and hidden by choosing it in toolbars option under……………tab?
1 Mark(s)
Your Answer:
View
View
Edit
Edit
Help
Help
None
None
The command to actually run the program is:
1 Mark(s)
Your Answer:
javaCompile
javaCompile
javaRun
javaRun
javax
javax
java
java
Which of the following type is provided by C++ but not C?
1 Mark(s)
Your Answer:
int
int
bool
bool
float
float
double
double
Which of the following is a way to retain an object in memory?
1 Mark(s)
Your Answer:
Console Log
Console Log
Closures
Closures
Destory objects
Destory objects
All of the mentioned
All of the mentioned
. . . . . . . . is A WEb And SOcial Mashup Engine.
1 Mark(s)
Your Answer:
ServiceMix
ServiceMix
Samza
Samza
Rave
Rave
All of the mentioned
All of the mentioned
To display the contents of folders in Window Explorer we should ?
1 Mark(s)
Your Answer:
Click on it
Click on it
Collapse on it
Collapse on it
Name it
Name it
Give it to password
Give it to password
If an expression contains double, int, float, long, then the whole expression will be promoted into which of these data types?
1 Mark(s)
Your Answer:
long
long
int
int
double
double
float
float
In Microsoft Word, Ctrl+1 is used for which of the following?
1 Mark(s)
Your Answer:
To set 1.5 line spacing
To set 1.5 line spacing
To set 0.5 line spacing
To set 0.5 line spacing
Double line spacing
Double line spacing
Single line spacing
Single line spacing
What will happen in this case? p strong {background-color: yellow;}
1 Mark(s)
Your Answer:
Strong have yellow background
Strong have yellow background
Strong element within a p element have a yellow background
Strong element within a p element have a yellow background
Both p and strong have yellow background
Both p and strong have yellow background
None of the mentioned
None of the mentioned
We have defined one page_load event in aspx page and same page_load event in code behind who will run first ?
1 Mark(s)
Your Answer:
page_laod event in aspx page
page_laod event in aspx page
page_load event in code-behind
page_load event in code-behind
both will run simultaneously
both will run simultaneously
None of these
None of these
Cotton is totally crystalline with disorder between fibrils coming from:
1 Mark(s)
Your Answer:
imperfect register
imperfect register
perfect register
perfect register
same matrix
same matrix
different matrix
different matrix
An idealized mathematical model of a pendulum is:
1 Mark(s)
Your Answer:
Gravity pendulum
Gravity pendulum
Tension pendulum
Tension pendulum
Torison pendulum
Torison pendulum
Spring pendulum
Spring pendulum
A synonym is two or more attributes that have different names but the same meaning.
1 Mark(s)
Your Answer:
True
True
False
False
Software system which is designed to search for information on the World Wide Web, is known as:
1 Mark(s)
Your Answer:
web site
web site
search engine
search engine
social network
social network
search page
search page
Which one of the following variable cannot be used inside a static method?
1 Mark(s)
Your Answer:
$this
$this
$get
$get
$set
$set
$date
$date
Most data transmitted over telephone lines uses:
1 Mark(s)
Your Answer:
serial transmission
serial transmission
parallel transmission
parallel transmission
one way transmission
one way transmission
two way transmission
two way transmission
Which of the following is a black box testing strategy ?
1 Mark(s)
Your Answer:
All Statements Coverage
All Statements Coverage
Control Structure Coverage
Control Structure Coverage
Cause-Effect Graphs
Cause-Effect Graphs
All Paths Coverage
All Paths Coverage
Communication medium which requires line-of-sight is:
1 Mark(s)
Your Answer:
microwave
microwave
fiber optic cable
fiber optic cable
twisted pair cable
twisted pair cable
coaxial cable
coaxial cable
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.