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
:
44
:
00
Q:
1
/
49
🤖
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.
Data Structures Mock Test 10
Exam Duration:
00:44:00
Data Structures Mock Test 10
: Question
1
of 49
What does this statement mean? x - = y + 1; ``` x - = y + 1; ```
1 Mark(s)
Your Answer:
x = x - y + 1
x = x - y + 1
x = -x - y - 1
x = -x - y - 1
x = x + y - 1
x = x + y - 1
x = x - y - 1
x = x - y - 1
Angular momentum is a:
1 Mark(s)
Your Answer:
vector quantity
vector quantity
scalar quantity
scalar quantity
unit vector
unit vector
impulse
impulse
Farmers tested the soil by tasting it. If the soil is sour in taste or has smell, the soil is:
1 Mark(s)
Your Answer:
alkaline
alkaline
acidic
acidic
bitter
bitter
salty
salty
Intruders are the most common security threat which is known to be:
1 Mark(s)
Your Answer:
Account Access
Account Access
Data Access
Data Access
Hacker or Cracker
Hacker or Cracker
Computer Access
Computer Access
What will be the output of the following C# code? static void main(string[] args) { int i; int res = fun (out i); console.writeline(res); console.readline(); } static int fun(out int i) { int s = 1; i = 7; for (int j = 1; j <= i; j++ ) s = s * j; return s; }
1 Mark(s)
Your Answer:
4490
4490
5040
5040
5400
5400
3500
3500
The atmosphere is an important part for life on:
1 Mark(s)
Your Answer:
Earth
Earth
Jupiter
Jupiter
Neptune
Neptune
Mars
Mars
Which class allows parsing of command line arguments?
1 Mark(s)
Your Answer:
Args
Args
JCommander
JCommander
Command Line
Command Line
Input
Input
UNCED stands for:
1 Mark(s)
Your Answer:
United Nations Corporation on Environment and Development
United Nations Corporation on Environment and Development
United Nations Conference on Environment and Development
United Nations Conference on Environment and Development
United Nations Corporation on Environment and Disasters
United Nations Corporation on Environment and Disasters
United Nations Conference on Environment and Disasters
United Nations Conference on Environment and Disasters
What is the `this` pointer in a static member function?
1 Mark(s)
Your Answer:
The object
The object
The class
The class
The main
The main
Unavailable
Unavailable
Managed code is:
1 Mark(s)
Your Answer:
The code that is compiled by the JIT compilers
The code that is compiled by the JIT compilers
The code where resources are garbage collected
The code where resources are garbage collected
The code that is written to target the services of the CLR
The code that is written to target the services of the CLR
a and c
a and c
Only infix expression can be made into an expression tree.
1 Mark(s)
Your Answer:
true
true
false
false
The main difference between the variables declared with var and with let is
1 Mark(s)
Your Answer:
var is confined to a particular function but let is not
var is confined to a particular function but let is not
let is confined to a particular function but var is not
let is confined to a particular function but var is not
var defines values based on conditions but let does not
var defines values based on conditions but let does not
none of the mentioned
none of the mentioned
In Microsoft Excel, what is the purpose of conditional formatting?
1 Mark(s)
Your Answer:
To apply formatting based on specified criteria or rules.
To apply formatting based on specified criteria or rules.
To create custom functions for complex calculations.
To create custom functions for complex calculations.
To sort data in alphabetical or numerical order.
To sort data in alphabetical or numerical order.
None of these
None of these
Process of storing programs and data in a computer memory is called:
1 Mark(s)
Your Answer:
CPU
CPU
data processing
data processing
fixed disk
fixed disk
stored-program concept
stored-program concept
Which of the following is a combinational logic circuit which converts binary information from n coded inputs to a maximum of 2n unique outputs?
1 Mark(s)
Your Answer:
Multiplexer
Multiplexer
Demultiplexer
Demultiplexer
Encoder
Encoder
Decoder
Decoder
Members of a union are accessed as . . . . . . . .
1 Mark(s)
Your Answer:
union-name.member
union-name.member
union-pointer->member
union-pointer->member
both union-name.member & union-pointer->member
both union-name.member & union-pointer->member
none of the mentioned
none of the mentioned
What is the purpose of the File.ReadAllBytes() method in C#?
1 Mark(s)
Your Answer:
Reads all lines of text from a file into a string
Reads all lines of text from a file into a string
Reads all bytes from a file into a byte array
Reads all bytes from a file into a byte array
Reads all bytes from a file into a string
Reads all bytes from a file into a string
None of the above
None of the above
What is the primary function of the Hadoop MapReduce "Map-side Aggregation" technique?
1 Mark(s)
Your Answer:
Aggregate values on the mapper side
Aggregate values on the mapper side
Combine intermediate key-value pairs on the mapper side
Combine intermediate key-value pairs on the mapper side
Sort and shuffle data
Sort and shuffle data
Distribute data to reducers
Distribute data to reducers
Which tag should be used to pass information from JSP to included JSP?
1 Mark(s)
Your Answer:
Using tag
Using tag
Using tag
Using tag
Using tag
Using tag
Using tag
Using tag
What will be the output of the following Java code? class Output { public static void main(String args[]) { byte a[] = { 65, 66, 67, 68, 69, 70 }; byte b[] = { 71, 72, 73, 74, 75, 76 }; System.arraycopy(a, 2, b, 1, a.length-2); System.out.print(new String(a) + " " + new String(b)); } }
1 Mark(s)
Your Answer:
ABCDEF GHIJKL
ABCDEF GHIJKL
ABCDEF GCDEFL
ABCDEF GCDEFL
GHIJKL ABCDEF
GHIJKL ABCDEF
GCDEFL GHIJKL
GCDEFL GHIJKL
Pick the incorrect statement for namespaces in C++.
1 Mark(s)
Your Answer:
Namespace declarations are always global scope
Namespace declarations are always global scope
Keyword namespace is used at the starting of a namespace definition
Keyword namespace is used at the starting of a namespace definition
Namespace has access specifiers like private or public
Namespace has access specifiers like private or public
Namespace definitions can be nested
Namespace definitions can be nested
What happens during "rehashing" in a hash table?
1 Mark(s)
Your Answer:
The hash table elements are sorted.
The hash table elements are sorted.
The hash function is changed.
The hash function is changed.
The hash table is resized and all elements are rehashed to new indices.
The hash table is resized and all elements are rehashed to new indices.
The hash table is cleared.
The hash table is cleared.
What is the purpose of the UgilifyJS?
1 Mark(s)
Your Answer:
Exposes a simple API
Exposes a simple API
Minification
Minification
Both Exposes a simple API and Minification
Both Exposes a simple API and Minification
None of the mentioned
None of the mentioned
What is the purpose of the SelectMany operator in LINQ?
1 Mark(s)
Your Answer:
Filters a sequence based on a predicate
Filters a sequence based on a predicate
Orders the elements of a sequence
Orders the elements of a sequence
Groups the elements of a sequence
Groups the elements of a sequence
Projects each element of a sequence and flattens the resulting sequences
Projects each element of a sequence and flattens the resulting sequences
What will be the output of the following C code? #include <stdio.h> struct p { char *name; struct p *next; }; struct p *ptrary[10]; int main() { struct p p; p.name = "xyz"; p.next = NULL; ptrary[0] = &p; printf("%s\n", ptrary[0]->name); return 0; }
1 Mark(s)
Your Answer:
Compile time error
Compile time error
Segmentation fault
Segmentation fault
Undefined behaviour
Undefined behaviour
xyz
xyz
Apache Hadoop Development Tools is an effort undergoing incubation at . . . . . . . .
1 Mark(s)
Your Answer:
ADF
ADF
ASF
ASF
HCC
HCC
AFS
AFS
What will be the output of the following C# code? namespace ConsoleApplication4 { abstract class A { int i; public abstract void display(); } class B: A { public int j; public override void display() { Console.WriteLine(j); } } class Program { static void Main(string[] args) { B obj = new B(); obj.j = 2; obj.display(); Console.ReadLine(); } } }
1 Mark(s)
Your Answer:
0
0
2
2
Compile time error
Compile time error
1
1
All animals need oxygen and most of this oxygen comes from:
1 Mark(s)
Your Answer:
roots
roots
plants
plants
stem
stem
pollen grain
pollen grain
Which of the following is not a valid command to type in to the UNIX ftp prompt?
1 Mark(s)
Your Answer:
?
?
get
get
put
put
pwt
pwt
What does CIL stands for:
1 Mark(s)
Your Answer:
Command Information Library
Command Information Library
Computational Intelligence Laboratory
Computational Intelligence Laboratory
Community Information Line
Community Information Line
Common Intermediate Language
Common Intermediate Language
Which of the following is a popular programming language for developing multimedia webpages ________ ?
1 Mark(s)
Your Answer:
BASIC
BASIC
Assembler
Assembler
Java
Java
COBOL
COBOL
Which method is used to connect a TcpClient object to a remote host in C#?
1 Mark(s)
Your Answer:
Send()
Send()
Receive()
Receive()
Accept()
Accept()
Connect()
Connect()
What is the recommended indentation style for Ruby code?
1 Mark(s)
Your Answer:
Two spaces
Two spaces
Four spaces
Four spaces
Tabs
Tabs
Mixed spaces and tabs
Mixed spaces and tabs
What does CSRF stand for in web development?
1 Mark(s)
Your Answer:
Cross-Site Resource Framework
Cross-Site Resource Framework
Cross-Site Response Forgery
Cross-Site Response Forgery
Cross-Site Request Forgery
Cross-Site Request Forgery
Cross-Site Request Framework
Cross-Site Request Framework
#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
What is the access specifier that restricts access to members of a class to only its friend classes and member functions in C++?
1 Mark(s)
Your Answer:
friend
friend
public
public
private
private
protected
protected
What is the output of the following code: my_list = [1, 2, 3, 4, 5] print(my_list[1:4])
1 Mark(s)
Your Answer:
[2, 3, 4]
[2, 3, 4]
[1, 2, 3]
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4]
[2, 3]
[2, 3]
The full form of MPEG is____________________?
1 Mark(s)
Your Answer:
Motion Picture Effects Guide
Motion Picture Effects Guide
Motion Picture Effect Grip
Motion Picture Effect Grip
Modulated Pictures Effect Pages
Modulated Pictures Effect Pages
Motion Picture Experts Group
Motion Picture Experts Group
Which of the following uses the Beam penetration method?
1 Mark(s)
Your Answer:
Raster scan system
Raster scan system
Random scan system
Random scan system
Both (a) & (b)
Both (a) & (b)
None of the above
None of the above
Which of the following statement of a program is not right?
1 Mark(s)
Your Answer:
class teacher{ }; teacher s[5];
class teacher{ }; teacher s[5];
class teacher{ }s;
class teacher{ }s;
class teacher{ }; teacher s;
class teacher{ }; teacher s;
class teacher{ }s[];
class teacher{ }s[];
Which method is used to close a network connection in C#?
1 Mark(s)
Your Answer:
Close()
Close()
Open()
Open()
Read()
Read()
Write()
Write()
What will be the output of the following Python code? class Demo: def __init__(self): self.a = 1 self.__b = 1 def display(self): return self.__b obj = Demo() print(obj.__b)
1 Mark(s)
Your Answer:
The program has an error because there isn't any function to return self.a
The program has an error because there isn't any function to return self.a
The program has an error because b is private and display(self) is returning a private member
The program has an error because b is private and display(self) is returning a private member
The program has an error because b is private and hence can't be printed
The program has an error because b is private and hence can't be printed
The program runs fine and 1 is printed
The program runs fine and 1 is printed
Which of the following is valid conditional statement?
1 Mark(s)
Your Answer:
else
else
els
els
if else
if else
None of the mentioned
None of the mentioned
For barchart and . . . . . . . . non-trivial methods exist for tables and arrays, documented at barchart.table.
1 Mark(s)
Your Answer:
scatterplot
scatterplot
dotplot
dotplot
xyplot
xyplot
scatterplot & xyplot
scatterplot & xyplot
The red light cannot produce the electrons from a clean zinc metal surface because:
1 Mark(s)
Your Answer:
The energy of a photon of red light is equal to the work function of the zinc.
The energy of a photon of red light is equal to the work function of the zinc.
The energy of a photon of red light is greater than the work function of the zinc.
The energy of a photon of red light is greater than the work function of the zinc.
The energy of a photon of red light is less than the work function of the zinc.
The energy of a photon of red light is less than the work function of the zinc.
None of the above
None of the above
What is the purpose of Dojo framework?
1 Mark(s)
Your Answer:
Focuses on DOM and Ajax utilities
Focuses on DOM and Ajax utilities
Advertises incredible depth
Advertises incredible depth
Ajax utilities
Ajax utilities
None of the mentioned
None of the mentioned
Which function is used to allocate an array of elements in C?
1 Mark(s)
Your Answer:
calloc()
calloc()
malloc()
malloc()
alloc()
alloc()
array()
array()
SQL is a query language and has types_______________?
1 Mark(s)
Your Answer:
Data definition language
Data definition language
Data manipulation language
Data manipulation language
Data control language
Data control language
All of the above
All of the above
A metal used in the manufacturing of car batteries is known as:
1 Mark(s)
Your Answer:
copper
copper
gold
gold
lead
lead
Sulphur
Sulphur
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.