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
:
09
:
00
Q:
1
/
77
🤖
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 5
Exam Duration:
01:09:00
Go Programming Mock Test 5
: Question
1
of 77
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
Which of the following element is used to create a SVG rectangle?
1 Mark(s)
Your Answer:
<rectangle>
<rectangle>
<polygon>
<polygon>
<rect>
<rect>
<square>
<square>
Which of the following comes with tools to build your own R packages?
1 Mark(s)
Your Answer:
Contrib
Contrib
Base
Base
Rtools
Rtools
None of the mentioned
None of the mentioned
Incorrect statements about delegates are?
1 Mark(s)
Your Answer:
Delegates are reference types
Delegates are reference types
Delegates are object oriented
Delegates are object oriented
Delegates are type safe
Delegates are type safe
Only one method can be called using a delegate
Only one method can be called using a delegate
How do you access the last element of an array in JavaScript?
1 Mark(s)
Your Answer:
array[length]
array[length]
array[-1]
array[-1]
array[array.length - 1]
array[array.length - 1]
array.getLast()
array.getLast()
The electric current influence the factors affecting bulb's:
1 Mark(s)
Your Answer:
speed
speed
brightness
brightness
both a and b
both a and b
durability
durability
In a computer, expansion cards are inserted into:
1 Mark(s)
Your Answer:
slots of CPU
slots of CPU
peripheral devices
peripheral devices
hard disk of CPU
hard disk of CPU
back of monitor
back of monitor
Which of the following is a valid way to exit a loop prematurely in C#?
1 Mark(s)
Your Answer:
continue
continue
return
return
exit
exit
break
break
What is the method used to destroy an object explicitly in C#?
1 Mark(s)
Your Answer:
Destructor
Destructor
Dispose
Dispose
Destroy
Destroy
Finalize
Finalize
RAM of computer system is a/an:
1 Mark(s)
Your Answer:
input device
input device
output device
output device
Processing unit
Processing unit
memory
memory
How do you create a slider widget in Tkinter for selecting a value from a range?
1 Mark(s)
Your Answer:
Scale()
Scale()
Slider()
Slider()
RangeSlider()
RangeSlider()
ValueSlider()
ValueSlider()
The term which is used to increase the speed of the switches to handle the data is known as:
1 Mark(s)
Your Answer:
switching routes
switching routes
switching fabric
switching fabric
switching data
switching data
switching frames
switching frames
Which of the following CSS3 property specifies how the contents of a replaced element should be fitted to the box established by its used height and width?
1 Mark(s)
Your Answer:
object-fit
object-fit
object-position
object-position
image-orientation
image-orientation
none of the mentioned
none of the mentioned
In a computer spreadsheet, value of the formula (7-3)x(1+6)/4 is:
1 Mark(s)
Your Answer:
7
7
1.5
1.5
2
2
12
12
What will be the output of the following Python function? complex(1+2j)
1 Mark(s)
Your Answer:
Error
Error
1
1
2j
2j
1+2j
1+2j
When a user confirms that he wishes to delete an entry, that entry’s URL is passed to a function which removes the entry from the __________
1 Mark(s)
Your Answer:
index.php
index.php
function.inc.php
function.inc.php
database
database
admin.php
admin.php
In Java generics, what is the purpose of the diamond operator (`<>`)?
1 Mark(s)
Your Answer:
It specifies a superclass
It specifies a superclass
It simplifies the instantiation of generic classes
It simplifies the instantiation of generic classes
It indicates a generic exception
It indicates a generic exception
None of These
None of These
What will be the output of the following C code? #include <stdio.h> int foo(); int main() { int i = foo(); } foo() { printf("2 "); return 2; }
1 Mark(s)
Your Answer:
2
2
Compile time error
Compile time error
Depends on the compiler
Depends on the compiler
Depends on the standard
Depends on the standard
What will be the output of the following C++ code? #include <iostream> #include <algorithm> #include <vector> using namespace std; bool IsOdd (int i) { return (i%2)==1; } int main () { vector<int> v = {4,2,10,5,1,8}; for(int i=0;i<v.size();i++) cout<<v[i]<<" "; cout<<endl; sort(v.begin(), v.end()); for(int i=0;i<v.size();i++) cout<<v[i]<<" "; return 0; }
1 Mark(s)
Your Answer:
4 2 10 5 1 8 1 2 4 5 8 10
4 2 10 5 1 8 1 2 4 5 8 10
1 2 4 5 8 10 4 2 10 5 1 8
1 2 4 5 8 10 4 2 10 5 1 8
4 2 10 5 1 8 4 2 10 5 1 8
4 2 10 5 1 8 4 2 10 5 1 8
1 2 4 5 8 10 1 2 4 5 8 10
1 2 4 5 8 10 1 2 4 5 8 10
The _____________ specifies the behavior of a system or a part of a system?
1 Mark(s)
Your Answer:
Yellow box
Yellow box
Clear box
Clear box
White box
White box
Black box
Black box
What will happen if you divide an int by 0?
1 Mark(s)
Your Answer:
Returns 0
Returns 0
Runtime error
Runtime error
Undefined behavior
Undefined behavior
Compile-time error
Compile-time error
The kilogram standard is kept in France which is a metal cylinder made of:
1 Mark(s)
Your Answer:
platinum
platinum
iridium
iridium
both a and b
both a and b
iron
iron
Which keyword is used to define a class in C++?
1 Mark(s)
Your Answer:
class
class
struct
struct
typedef
typedef
interface
interface
What are security controls ?
1 Mark(s)
Your Answer:
Controls that are intended to ensure that attacks are unsuccessful
Controls that are intended to ensure that attacks are unsuccessful
Controls that are intended to detect and repel attacks
Controls that are intended to detect and repel attacks
Controls that are intended to support recovery from problems
Controls that are intended to support recovery from problems
All of the mentioned
All of the mentioned
GNOME is a project that was developed by:
1 Mark(s)
Your Answer:
windows
windows
GNU
GNU
UNIX
UNIX
Linux
Linux
Modern philosophy and English language were include in___________?
1 Mark(s)
Your Answer:
jamia millia
jamia millia
india pact
india pact
nadva
nadva
none of these
none of these
What is the purpose of the re.VERBOSE flag in Python?
1 Mark(s)
Your Answer:
It allows you to write more readable and organized regular expressions
It allows you to write more readable and organized regular expressions
It compiles a regular expression
It compiles a regular expression
It converts strings to regular expressions
It converts strings to regular expressions
It specifies a starting position
It specifies a starting position
The natural logarithm of any positive algebraic number other than 1 is a:
1 Mark(s)
Your Answer:
algebraic number
algebraic number
linear number
linear number
nonlinear number
nonlinear number
transcendental number
transcendental number
Which of the not a valid MS Office Document?
1 Mark(s)
Your Answer:
.docx
.docx
.pptx
.pptx
.vob
.vob
.doc
.doc
Sessions allow you to.
1 Mark(s)
Your Answer:
store persistent user preference on a site
store persistent user preference on a site
save user authentication information from page to page
save user authentication information from page to page
create multipage forms
create multipage forms
all of above
all of above
What will be the output of the following PHP code ? <?php $b = 1; switch($b) { case 1.0: print "hi"; break; case 1: print "hello"; break; default: print "hi1"; } ?>
1 Mark(s)
Your Answer:
hihellohi1
hihellohi1
hi
hi
hihello
hihello
hello
hello
In Python, what is the purpose of the @property decorator?
1 Mark(s)
Your Answer:
To create a new instance of the class
To create a new instance of the class
To define a method that can be accessed like an attribute
To define a method that can be accessed like an attribute
To access class attributes directly
To access class attributes directly
To define a method that can be accessed as a read-only attribute
To define a method that can be accessed as a read-only attribute
Which of the following is the disadvantage of a smoothing filter?
1 Mark(s)
Your Answer:
Blur inner pixels
Blur inner pixels
Blur edges
Blur edges
Sharp edges
Sharp edges
Remove sharp transitions
Remove sharp transitions
What is the result of the expression: 6 / 2 in Ruby?
1 Mark(s)
Your Answer:
2
2
2.5
2.5
3
3
12
12
A spinning gyroscope can precess about a vertical axis through its support at the rate of:
1 Mark(s)
Your Answer:
Mgr/I Ω
Mgr/I Ω
MgrI Ω
MgrI Ω
Mg/rI
Mg/rI
Mg/ Ω
Mg/ Ω
What will be the output? C++ #include <iostream> class Sample { public: ~Sample() { std::cout << "Destructor executed "; } }; void createObject() { Sample s; } int main() { createObject(); std::cout << "Main done "; }
1 Mark(s)
Your Answer:
Main done
Main done
Destructor executed
Destructor executed
Main doneDestructor executed
Main doneDestructor executed
What is the return type of the method parseInt()?
1 Mark(s)
Your Answer:
String
String
Float
Float
Integer
Integer
Date
Date
The prefix form of an infix expression (p + q) - (r * t) is?
1 Mark(s)
Your Answer:
+ pq - *rt
+ pq - *rt
- +pqr * t
- +pqr * t
- +pq * rt
- +pq * rt
- + * pqrt
- + * pqrt
In PC, which shortcut key is used to moves one word to the right at a time?
1 Mark(s)
Your Answer:
Ctrl+Right arrow
Ctrl+Right arrow
Ctrl+Left arrow
Ctrl+Left arrow
Shift+End
Shift+End
Shift+Home Answer
Shift+Home Answer
Which one of the following is a type of Data Manipulation Command?
1 Mark(s)
Your Answer:
Create
Create
Alter
Alter
Delete
Delete
All of the above
All of the above
If you echo a Boolean variable, the value FALSE displays as a .... and the value TRUE echoes as a .....
1 Mark(s)
Your Answer:
0, 1
0, 1
blank string, 2
blank string, 2
empty variable, 1
empty variable, 1
blank string, 1
blank string, 1
Which operator is used for exponentiation in Python?
1 Mark(s)
Your Answer:
^
^
**
**
^^
^^
//
//
Which of the following CSS3 property specifies how nested elements are rendered in 3D space?
1 Mark(s)
Your Answer:
transform
transform
transform-style
transform-style
transform-render
transform-render
none of the mentioned
none of the mentioned
'Tally vault' is a ________
1 Mark(s)
Your Answer:
Security mechanism
Security mechanism
Ledger a/c
Ledger a/c
Cost category
Cost category
None of the above
None of the above
What will be the Correct statement in the following C# code? class baseclass { int a; public baseclass(int a1) { a = a1; console.writeline(" a "); } class derivedclass : baseclass { public derivedclass (int a1) : base(a1) { console.writeline(" b "); } } class program { static void main(string[] args) { derivedclass d = new derivedclass(20); } } }
1 Mark(s)
Your Answer:
Compile time error
Compile time error
b a
b a
a b
a b
The program will work correctly if we replace base(a1) with base.baseclass(a1)
The program will work correctly if we replace base(a1) with base.baseclass(a1)
Determine output: public class Test{ public static void main(String args[]){ int i, j; for(i=1, j=0;i
1 Mark(s)
Your Answer:
10
10
11
11
9
9
20
20
None of these
None of these
Which of these interfaces define four methods?
1 Mark(s)
Your Answer:
ComponentListener
ComponentListener
ContainerListener
ContainerListener
ActionListener
ActionListener
InputListener
InputListener
Runnable is_______________?
1 Mark(s)
Your Answer:
Interface
Interface
Class
Class
Variable
Variable
Method
Method
In unicast routing, we use the shortest path tree method for finding the shortest path of the:
1 Mark(s)
Your Answer:
frames
frames
nodes
nodes
packets
packets
networks
networks
Which among the following is the time complexity for inserting at the beginning of a triply linked list?
1 Mark(s)
Your Answer:
O(n)
O(n)
O(1)
O(1)
O(log n)
O(log n)
O(n2)
O(n2)
What will the result of len variable after execution of the following statements? int len; char str1[] = {"39 march road"}; len = strlen(str1); ``` int len; char str1[] = {"39 march road"}; len = strlen(str1); ```
1 Mark(s)
Your Answer:
11
11
12
12
13
13
14
14
The maximum length (in bytes) of an IPv4 datagram is?
1 Mark(s)
Your Answer:
32
32
1024
1024
65535
65535
512
512
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
Which one of the following is not ID generating strategy using @GeneratedValue annotation?
1 Mark(s)
Your Answer:
Auto
Auto
Manual
Manual
Identity
Identity
Sequence
Sequence
Consider the following statement containing regular expressions var text = "testing: 1, 2, 3"; var pattern = /d+/g;
1 Mark(s)
Your Answer:
text==pattern
text==pattern
text.equals(pattern)
text.equals(pattern)
text.test(pattern)
text.test(pattern)
pattern.test(text)
pattern.test(text)
What is the auxiliary space complexity of recursive bubble sort?
1 Mark(s)
Your Answer:
O(n)
O(n)
O(1)
O(1)
O(n log n)
O(n log n)
O(n2)
O(n2)
Which is the Text Styling feature in MS-Word?
1 Mark(s)
Your Answer:
Word style
Word style
Word design
Word design
Word art
Word art
Design
Design
. . . . . . . . networks can be used for public internet access at hotspot such as restaurants, coffee shops etc.
1 Mark(s)
Your Answer:
Wi-Fi
Wi-Fi
WiMax
WiMax
DFL
DFL
BPL
BPL
What will be the output of the following Java code? class A { final public int calculate(int a, int b) { return 1; } } class B extends A { public int calculate(int a, int b) { return 2; } } public class output { public static void main(String args[]) { B object = new B(); System.out.print("b is " + b.calculate(0, 1)); } }
1 Mark(s)
Your Answer:
b is : 2
b is : 2
b is : 1
b is : 1
Compilation Error
Compilation Error
An exception is thrown at runtime
An exception is thrown at runtime
Which of the following function is identical to read .table?
1 Mark(s)
Your Answer:
read.csv
read.csv
read.data
read.data
read.tab
read.tab
read.del
read.del
Computer network is a collection of:
1 Mark(s)
Your Answer:
servers
servers
clients
clients
applications
applications
computers
computers
If you get both local and remote echoes, every character you type will appear on the screen
1 Mark(s)
Your Answer:
once
once
twice
twice
three times
three times
never
never
None of the above
None of the above
How many objects can present in a single class?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
as many as possible
as many as possible
Which operator is used to check whether the expression is "NULL"?
1 Mark(s)
Your Answer:
IS NULL
IS NULL
NOT NULL
NOT NULL
ON
ON
None of the mentioned
None of the mentioned
Which of the following is the correct full form of SaaS?
1 Mark(s)
Your Answer:
Storage-as-a-Service
Storage-as-a-Service
Server-as-a-Software
Server-as-a-Software
Software-as-a-Service
Software-as-a-Service
None of the above
None of the above
What does the term "polymorphism" refer to in Object-Oriented Programming?
1 Mark(s)
Your Answer:
The ability to restrict access to certain methods
The ability to restrict access to certain methods
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 create multiple instances
The ability to create multiple instances
None of the above
None of the above
Which of the following should be used when you want to add a slide to an existing presentation?
1 Mark(s)
Your Answer:
File, add a new slide
File, add a new slide
Insert, New slide
Insert, New slide
File Open
File Open
File, New
File, New
FPGA stands for:
1 Mark(s)
Your Answer:
field programmable gate array
field programmable gate array
forward programmable gate array
forward programmable gate array
forward parallel gate array
forward parallel gate array
field parallel gate array
field parallel gate array
Add Now Hardware option exists in _____?
1 Mark(s)
Your Answer:
Control Panel
Control Panel
Title bar
Title bar
Status bar
Status bar
None of these
None of these
What will be the output of the following R code? > pnorm(2)
1 Mark(s)
Your Answer:
0.9772499
0.9772499
1.9772499
1.9772499
0.6772499
0.6772499
2.6772499
2.6772499
Which of the following is not the storageEvent interface?
1 Mark(s)
Your Answer:
event.newValue
event.newValue
event.url
event.url
event.key
event.key
event.clear
event.clear
Can an inline function be recursive and still inline?
1 Mark(s)
Your Answer:
Yes, all recursive calls are inlined
Yes, all recursive calls are inlined
No, recursion prevents inlining
No, recursion prevents inlining
Only if compiler supports
Only if compiler supports
Inline is ignored for recursion
Inline is ignored for recursion
Who developed the Python language?
1 Mark(s)
Your Answer:
Zim Den
Zim Den
Guido van Rossum
Guido van Rossum
Niene Stom
Niene Stom
Wick van Rossum
Wick van Rossum
Which of the following is NOT a valid HTTP method?
1 Mark(s)
Your Answer:
FETCH
FETCH
GET
GET
POST
POST
DELETE
DELETE
The psychological environment of the class is mainly the duty of__________?
1 Mark(s)
Your Answer:
Student himself
Student himself
Class teacher
Class teacher
Principal
Principal
Subject teacher
Subject teacher
In Java Servlets, what is the purpose of the `HttpServletRequestWrapper` class?
1 Mark(s)
Your Answer:
To manage JavaBean events
To manage JavaBean events
To wrap an existing `HttpServletRequest`
To wrap an existing `HttpServletRequest`
To execute SQL queries
To execute SQL queries
None of These
None of These
In HTML web sockets are not available whereas in HTML5:
1 Mark(s)
Your Answer:
Full duplex communication channel is present
Full duplex communication channel is present
Still it is not available
Still it is not available
No networking capability available
No networking capability available
All of above
All of above
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.