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
:
51
:
00
Q:
1
/
57
🤖
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 2
Exam Duration:
00:51:00
Data Structures Mock Test 2
: Question
1
of 57
How do you check if the 'malloc' function has successfully allocated memory in C?
1 Mark(s)
Your Answer:
Check if the return value is not NULL
Check if the return value is not NULL
Check if the return value is 1
Check if the return value is 1
Check if the return value is -1
Check if the return value is -1
Check if the return value is 0
Check if the return value is 0
Which of the following is a URL? (A) Netscape (B) Searchnet.com (C) Internet Explorer (D) www.yahoo.com
1 Mark(s)
Your Answer:
Netscape
Netscape
Searchnet.com
Searchnet.com
Internet Explorer
Internet Explorer
www.yahoo.com
www.yahoo.com
What is inheritance in Java?
1 Mark(s)
Your Answer:
The process of acquiring properties and behaviors of one class by another
The process of acquiring properties and behaviors of one class by another
The process of creating objects
The process of creating objects
The process of encapsulation
The process of encapsulation
The process of overloading methods
The process of overloading methods
Which of the following statements about the Full Duplex is correct?
1 Mark(s)
Your Answer:
It is a type of communication in one direction
It is a type of communication in one direction
It is a type of communication in one direction at a time
It is a type of communication in one direction at a time
It is a type of bi-directional communication
It is a type of bi-directional communication
None of the above
None of the above
Powerful key that lets you exit a program when pushed____________________?
1 Mark(s)
Your Answer:
Arrow key
Arrow key
Space bar
Space bar
Escape key
Escape key
Return key
Return key
Which of the following property is used to draw a line around elements outside the borders?
1 Mark(s)
Your Answer:
line
line
padding
padding
outline
outline
border
border
Which access specifier allows members to be accessed only within the class?
1 Mark(s)
Your Answer:
public
public
protected
protected
none of them
none of them
What is the correct way to declare a variable without assigning a value in C#?
1 Mark(s)
Your Answer:
num = int;
num = int;
num int;
num int;
var num;
var num;
int num;
int num;
What is the value of the expression 9 % 4 in Java?
1 Mark(s)
Your Answer:
1
1
2
2
3
3
0
0
Most of the flowers open in daylight so that:
1 Mark(s)
Your Answer:
insects can pollinate them
insects can pollinate them
they could absorb sunlight
they could absorb sunlight
they could transpire quickly
they could transpire quickly
wind could pollinate them
wind could pollinate them
What will be the output of the following C# code? static void Main(string[] args) { float a = 16.4f; int b = 12; float c; c = a * ( b + a) / (a - b) ; Console.WriteLine("result is :" +c); Console.ReadLine(); }
1 Mark(s)
Your Answer:
106
106
104.789
104.789
105.8546
105.8546
103.45
103.45
Which property is like the GPS in car?
1 Mark(s)
Your Answer:
watchPosition()
watchPosition()
clearWatch()
clearWatch()
getCurrentPosition()
getCurrentPosition()
showPosition()
showPosition()
Which of these method of MimeHeader is used to return the string equivalent of the values stores on MimeHeader?
1 Mark(s)
Your Answer:
string()
string()
toString()
toString()
convertString()
convertString()
getString()
getString()
Which protocol is commonly used for transferring files over a network?
1 Mark(s)
Your Answer:
SMTP
SMTP
FTP
FTP
SNMP
SNMP
SHMTP
SHMTP
Loading and executing a program is called:
1 Mark(s)
Your Answer:
Resourcing
Resourcing
process
process
Moduling
Moduling
Clustering
Clustering
What will be the output of the following C# code snippet? static void Main(string[] args) { StringBuilder sb = new StringBuilder("hello world"); sb.Insert(6, "good"); Console.WriteLine(sb); Console.ReadLine(); }
1 Mark(s)
Your Answer:
hello 6world
hello 6world
hello good world
hello good world
hello goodworld
hello goodworld
None of the above
None of the above
What does projection media type is used for?
1 Mark(s)
Your Answer:
For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.
For use with color computer screens
For use with color computer screens
For use with handheld devices
For use with handheld devices
For use with television-type devices
For use with television-type devices
Which operator is used to perform a bitwise AND operation in C?
1 Mark(s)
Your Answer:
&&
&&
|
|
&
&
||
||
In Ruby, what is an object?
1 Mark(s)
Your Answer:
An instance of a class
An instance of a class
A variable
A variable
A method
A method
A module
A module
The clause that permits a view definition to be used in multiple places within a query, is known to be:
1 Mark(s)
Your Answer:
Not Like clause
Not Like clause
Unique clause
Unique clause
With clause
With clause
Having clause
Having clause
If a view relation is computed and stored, it may become out of date if the:
1 Mark(s)
Your Answer:
Defined attributes are swapped
Defined attributes are swapped
Defined tuples are swapped
Defined tuples are swapped
Defined structure is changed
Defined structure is changed
Defined relations are modified
Defined relations are modified
Which variable checks for the availability of SSL support?
1 Mark(s)
Your Answer:
have_ssl
have_ssl
has_ssl
has_ssl
avail_ssl
avail_ssl
ssl_avail
ssl_avail
Acceleration associated with uniform circular motion is called:
1 Mark(s)
Your Answer:
centripetal
centripetal
elliptical
elliptical
circular
circular
linear
linear
Which one of the following correctly refers to the task of the classification?
1 Mark(s)
Your Answer:
A measure of the accuracy, of the classification of a concept that is given by a certain theory
A measure of the accuracy, of the classification of a concept that is given by a certain theory
The task of assigning a classification to a set of examples
The task of assigning a classification to a set of examples
A subdivision of a set of examples into a number of classes
A subdivision of a set of examples into a number of classes
None of the above
None of the above
Which of the following is the correct sequence of body parts in the human alimentary canal?
1 Mark(s)
Your Answer:
Mouth --> oesophagus --> large intestine --> stomach --> small intestine
Mouth --> oesophagus --> large intestine --> stomach --> small intestine
Mouth --> oesophagus --> small intestine --> stomach --> large intestine
Mouth --> oesophagus --> small intestine --> stomach --> large intestine
Mouth --> oesophagus --> stomach --> large intestine --> small intestine
Mouth --> oesophagus --> stomach --> large intestine --> small intestine
Mouth --> oesophagus --> stomach --> small intestine --> large intestine
Mouth --> oesophagus --> stomach --> small intestine --> large intestine
With an asynchronous system, the requesting system waits for a response in real time.
1 Mark(s)
Your Answer:
True
True
False
False
E-mail is a system for exchanging messages through a__________?
1 Mark(s)
Your Answer:
Client
Client
Program
Program
Network
Network
Backbone
Backbone
A point of synchronization between the database and the transaction log is generally referred to as a stop point.
1 Mark(s)
Your Answer:
True
True
False
False
What does the yield keyword do in Ruby?
1 Mark(s)
Your Answer:
Executes the block passed to the method
Executes the block passed to the method
Returns the value of the block passed to the method
Returns the value of the block passed to the method
Exits the method and returns to the caller
Exits the method and returns to the caller
None of the above
None of the above
What is the output of the following code: char str[] = "Hello"; cout << str[0] << str[4]; in C++?
1 Mark(s)
Your Answer:
Undefined behavior
Undefined behavior
Compilation error
Compilation error
Ho
Ho
ello
ello
Which of the following also used as the first step in the knowledge discovery process?
1 Mark(s)
Your Answer:
Data selection
Data selection
Data cleaning
Data cleaning
Data transformation
Data transformation
Data integration
Data integration
A number or letter that appears little below the normal text in MS-Word 2016 is called _____?
1 Mark(s)
Your Answer:
Subscript
Subscript
Superscript
Superscript
Supertext
Supertext
Toptext
Toptext
USA defense department initiated the internet in:
1 Mark(s)
Your Answer:
1969
1969
1976
1976
1978
1978
1980
1980
Which function is the entry point of a C/C++ program?
1 Mark(s)
Your Answer:
main()
main()
start()
start()
program()
program()
begin()
begin()
What is the result of the expression 8 / 4 in Java?
1 Mark(s)
Your Answer:
8
8
2
2
4
4
32
32
Which of the following property sets in a shorthand form any or all background properties?
1 Mark(s)
Your Answer:
color
color
wrap
wrap
background
background
all of the mentioned
all of the mentioned
Which of the following components has a property sheet that includes settings for the frame and the option group?
1 Mark(s)
Your Answer:
Option group label
Option group label
Option group frame
Option group frame
Option button
Option button
Option button labels
Option button labels
Percentage accessibility of jute measured by exchange of hydroxyl hydrogens for deutrium is:
1 Mark(s)
Your Answer:
50
50
70
70
49
49
48
48
Which wavy line shows that the word is repeated in MS Word?
1 Mark(s)
Your Answer:
Green
Green
Red
Red
Blue
Blue
None of these
None of these
Which is more effective while calling the functions?
1 Mark(s)
Your Answer:
call by value
call by value
call by reference
call by reference
call by pointer
call by pointer
call by object
call by object
Synchronous Optical Networking (SONET) frame can carry information from a digitized voice:
1 Mark(s)
Your Answer:
media
media
channel
channel
station
station
signal
signal
The terms alternate key and candidate key mean the same thing.
1 Mark(s)
Your Answer:
True
True
False
False
Any non-living thing is known as:
1 Mark(s)
Your Answer:
autotrophy
autotrophy
biotic
biotic
abiotic
abiotic
bio magnifications
bio magnifications
Determine output: public class Test{ public static void main(String[] args){ int[] x = {1, 2, 3, 4}; int[] y = x; x = new int[2]; for(int i = 0; i
1 Mark(s)
Your Answer:
1 2 3 4
1 2 3 4
0 0 0 0
0 0 0 0
1 2
1 2
0 0
0 0
None of these
None of these
What will be the output of the following C code? #include<stdio.h> int main() { printf("Hello"); main(); return 0; }
1 Mark(s)
Your Answer:
Hello is printed once
Hello is printed once
Hello infinite number of times
Hello infinite number of times
Hello is not printed at all
Hello is not printed at all
0 is returned
0 is returned
The source first makes a connection with the destination before sending a packet in:
1 Mark(s)
Your Answer:
connection-oriented service
connection-oriented service
connectionless service
connectionless service
unguided connection
unguided connection
unguided connectionless
unguided connectionless
Regarding the following statement which of the statements is true? const int a = 100;
1 Mark(s)
Your Answer:
Declares a variable a with 100 as its initial value
Declares a variable a with 100 as its initial value
Declares a construction a with 100 as its initial value
Declares a construction a with 100 as its initial value
Declares a constant a whose value will be 100
Declares a constant a whose value will be 100
Constructs an integer type variable with an as identifier and 100 as the value
Constructs an integer type variable with an as identifier and 100 as the value
How do you create a scrollbar for a widget with scrolling content?
1 Mark(s)
Your Answer:
CreateScrollbar()
CreateScrollbar()
Scrollbar()
Scrollbar()
scrollbar.create()
scrollbar.create()
widget.add_scrollbar()
widget.add_scrollbar()
Which ASP.NET feature is used to authenticate users?
1 Mark(s)
Your Answer:
ASP.NET Authorization
ASP.NET Authorization
ASP.NET Authentication
ASP.NET Authentication
ASP.NET Identity
ASP.NET Identity
ASP.NET Membership
ASP.NET Membership
What is a deadlock in the context of multi-threading?
1 Mark(s)
Your Answer:
A situation where threads execute out of order
A situation where threads execute out of order
A situation where threads wait indefinitely for a signal
A situation where threads wait indefinitely for a signal
A situation where two or more threads are waiting indefinitely for each other to release resources
A situation where two or more threads are waiting indefinitely for each other to release resources
A situation where a thread blocks other threads from executing
A situation where a thread blocks other threads from executing
Which is called ternary operator?
1 Mark(s)
Your Answer:
?:
?:
&&
&&
|||
|||
===
===
Does Lambda contains return statements?
1 Mark(s)
Your Answer:
True
True
False
False
A collision in a wireless network may add additional energy from 5% to:
1 Mark(s)
Your Answer:
0.25
0.25
0.2
0.2
0.15
0.15
0.1
0.1
To perform comparison operation on strings supported operations are . . . . . . . .
1 Mark(s)
Your Answer:
Compare()
Compare()
Equals()
Equals()
Assignment '==' operator
Assignment '==' operator
All of the mentioned
All of the mentioned
Elementary charge has approximate value of:
1 Mark(s)
Your Answer:
1.602x1019 C
1.602x1019 C
1.602x10-19 C
1.602x10-19 C
1.602x10-9 C
1.602x10-9 C
1.602x109 C
1.602x109 C
What is the output of the following code: cout << (5 < 2) ? "True" : "False"; in C++?
1 Mark(s)
Your Answer:
FALSE
FALSE
TRUE
TRUE
5
5
2
2
Which of these keywords are used to implement synchronization? class newthread extends Thread { Thread t; String name; newthread(String threadname) { name = threadname; t = new Thread(this,name); t.start(); } public void run() { } } class multithreaded_programing { public static void main(String args[]) { newthread obj1 = new newthread("one"); newthread obj2 = new newthread("two"); try { obj1.t.wait(); System.out.print(obj1.t.isAlive()); } catch(Exception e) { System.out.print("Main thread interrupted"); } } }
1 Mark(s)
Your Answer:
synchronize
synchronize
syn
syn
synch
synch
synchronized
synchronized
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.