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
:
08
:
00
Q:
1
/
76
🤖
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.
C Programming Mock Test 9
Exam Duration:
01:08:00
C Programming Mock Test 9
: Question
1
of 76
AA-Trees makes more rotations than a red-black tree.
1 Mark(s)
Your Answer:
True
True
False
False
What is a generator in Python?
1 Mark(s)
Your Answer:
A function that generates random numbers
A function that generates random numbers
A special type of list
A special type of list
A way to define classes
A way to define classes
A function that yields values one at a time
A function that yields values one at a time
Factor that provides basic nutrients for plants and contains roots is known as:
1 Mark(s)
Your Answer:
climate
climate
soil
soil
light
light
water
water
With which network type will OSPF establish router adjacencies but not perform the DR/BDR election process?
1 Mark(s)
Your Answer:
Point-to-point
Point-to-point
Backbone area 0
Backbone area 0
Broadcast multi-access
Broadcast multi-access
Non-broadcast multi-access
Non-broadcast multi-access
What is the keyword used to define a structure in C?
1 Mark(s)
Your Answer:
struct
struct
record
record
class
class
object
object
In cellulose, groups are joined together via:
1 Mark(s)
Your Answer:
covalent bond
covalent bond
valency bonds
valency bonds
coordinate bonds
coordinate bonds
weak bonds
weak bonds
Which symbol is used to declare nested namespaces?
1 Mark(s)
Your Answer:
/
/
\
\
.
.
|
|
Which node is the Leaf node in the following K-ary tree?
1 Mark(s)
Your Answer:
A
A
B
B
D
D
F
F
What will be the output when the following program is compiled and executed? abstract class TestAbstract{ String my_name; String myName(){ my_name = "Examveda"; return my_name; } abstract void display(); } public class Test extends TestAbstract{ void display(){ String n = myName(); System.out.print("My name is "+ n); } public static void main(String args[]){ Test t = new Test(); t.display(); } }
1 Mark(s)
Your Answer:
Program will compile and execute successfully and prints
Program will compile and execute successfully and prints
Compilation error as class can not be declared as abstract.
Compilation error as class can not be declared as abstract.
Program compiles but leads to runtime exception.
Program compiles but leads to runtime exception.
Compilation error occurs as the abstract class TestAbstract contains a non-abstract method.
Compilation error occurs as the abstract class TestAbstract contains a non-abstract method.
None of these
None of these
Which of the following is a valid way to comment a single line in Python?
1 Mark(s)
Your Answer:
\ comment
\ comment
/ comment
/ comment
<!-- comment -->
<!-- comment -->
# comment
# comment
The term Complete for a UML has the same meaning as which of the following for an EER diagram?
1 Mark(s)
Your Answer:
Overlapping rule
Overlapping rule
Disjoint rule
Disjoint rule
Total specialization rule
Total specialization rule
Partial specialization rule
Partial specialization rule
What is group with the responsibility for reviewing and approving changes to baselines ?
1 Mark(s)
Your Answer:
Software Configuration Item
Software Configuration Item
Baseline
Baseline
Configuration
Configuration
Configuration Control Board
Configuration Control Board
Which element indicates about something which is no longer accurate?
1 Mark(s)
Your Answer:
<s>
<s>
<ins>
<ins>
<del>
<del>
<address>
<address>
In Sqoop, what is the significance of the "--compression-codec" option in an import command?
1 Mark(s)
Your Answer:
Specify the compression codec for imported data
Specify the compression codec for imported data
Specify the target directory for the imported data
Specify the target directory for the imported data
Enable incremental data transfer
Enable incremental data transfer
Disable data compression
Disable data compression
What is the output of the given code? length=gets.chomp case length.length when length=4 print "length is 4" when length=5 print "length is 5" end
1 Mark(s)
Your Answer:
ruby length is 4
ruby length is 4
ruby length is 5
ruby length is 5
abc length is 4
abc length is 4
syntax error
syntax error
What is the name of the innermost membrane present in the human eye?
1 Mark(s)
Your Answer:
Sclera
Sclera
Choroid
Choroid
Retina
Retina
Blindspot
Blindspot
Device used to enter data or information into a computer include:__________?
1 Mark(s)
Your Answer:
Keyboard
Keyboard
Mouse
Mouse
Microphone
Microphone
All
All
Which type of memory holds only the program and data that the CPU is presently processing ?
1 Mark(s)
Your Answer:
CMOS
CMOS
ROM
ROM
RAM
RAM
ASCII
ASCII
Which of the following is not a benefit of a computer network?
1 Mark(s)
Your Answer:
reduce hardware cost
reduce hardware cost
connect people
connect people
enable shared applications
enable shared applications
produce high quality programs
produce high quality programs
Which method is commonly used to convert an object into its string representation in Ruby?
1 Mark(s)
Your Answer:
to_str
to_str
stringify
stringify
to_s
to_s
convert_to_string
convert_to_string
What does the patchwork package in R provide?
1 Mark(s)
Your Answer:
Combining and arranging multiple ggplots
Combining and arranging multiple ggplots
Natural language processing (NLP)
Natural language processing (NLP)
Creating interactive dashboards for data visualization
Creating interactive dashboards for data visualization
Statistical modeling
Statistical modeling
In Excel which key is used to open the excel formula window?
1 Mark(s)
Your Answer:
Shift+F6
Shift+F6
Shift+F3
Shift+F3
Alt+Shift+F3
Alt+Shift+F3
Alt+Shift+F6
Alt+Shift+F6
A metal that is attractive and has a high value is:
1 Mark(s)
Your Answer:
gold
gold
lead
lead
Sulphur
Sulphur
aluminum
aluminum
What is the purpose of the C preprocessor in C programming?
1 Mark(s)
Your Answer:
Compile C code
Compile C code
Optimize code
Optimize code
Preprocess code before compilation
Preprocess code before compilation
Execute code
Execute code
Which of the following expressions results in an error?
1 Mark(s)
Your Answer:
float('10')
float('10')
int('10')
int('10')
float('10.8')
float('10.8')
int('10.8')
int('10.8')
Output of the code?int a=3;int *p=&a;int **q=&p;cout << p << " " << *q;
1 Mark(s)
Your Answer:
Address Address
Address Address
3 3
3 3
Address 3
Address 3
3 Address
3 Address
What is the method used to check if a variable is defined in Ruby?
1 Mark(s)
Your Answer:
.is_defined?
.is_defined?
.defined?
.defined?
.exist?
.exist?
.has_value?
.has_value?
Which of the following nav-right value is used to the inherits this property from its parent element?
1 Mark(s)
Your Answer:
auto
auto
id
id
target-name
target-name
inherit
inherit
Bubble memory is a_____________________?
1 Mark(s)
Your Answer:
Direct access device only
Direct access device only
Combination of sequential and direct access devices
Combination of sequential and direct access devices
Sequential access device only
Sequential access device only
All of the above
All of the above
Clayey soil has tendency to retain lot of water and it become:
1 Mark(s)
Your Answer:
waterlogged
waterlogged
active
active
water releasing
water releasing
deactivate
deactivate
What is the result of a LEFT JOIN if no match is found?
1 Mark(s)
Your Answer:
Row is removed
Row is removed
Error
Error
NULL values
NULL values
Zeros
Zeros
Which of the following code represents internal representation of a Date object?
1 Mark(s)
Your Answer:
class(as.Date("1970-01-02"))
class(as.Date("1970-01-02"))
unclass(as.Date("1970-01-02"))
unclass(as.Date("1970-01-02"))
unclassint(as.Date("1970-01-02"))
unclassint(as.Date("1970-01-02"))
classint(as.Date("1970-02-02"))
classint(as.Date("1970-02-02"))
In CGI, process starts with each request and will initiate OS level process.
1 Mark(s)
Your Answer:
True
True
False
False
Laser and ink jet printer are categorized as:
1 Mark(s)
Your Answer:
high speed printers
high speed printers
non impact printers
non impact printers
both A and B
both A and B
impact printers
impact printers
Which control flow statement in C# is used to handle multiple conditions using a single switch expression?
1 Mark(s)
Your Answer:
if-else if-else
if-else if-else
while
while
switch-case
switch-case
for
for
Which of the following graph algorithms is used to find the shortest path between all pairs of vertices?
1 Mark(s)
Your Answer:
Depth-First Search (DFS)
Depth-First Search (DFS)
Bellman-Ford Algorithm
Bellman-Ford Algorithm
Kruskal's Algorithm
Kruskal's Algorithm
Floyd-Warshall Algorithm
Floyd-Warshall Algorithm
The access method of baseband layer is:
1 Mark(s)
Your Answer:
FDMA
FDMA
TDMA
TDMA
FSK
FSK
CDMA
CDMA
The data members of a class by default are?
1 Mark(s)
Your Answer:
protected, public
protected, public
private, public
private, public
private
private
public
public
How can you prevent data skew in a Hadoop job with uneven key distribution?
1 Mark(s)
Your Answer:
Increase the number of reducers
Increase the number of reducers
Decrease the number of reducers
Decrease the number of reducers
Use a custom partitioner
Use a custom partitioner
Use a combiner function
Use a combiner function
Verification of a login name and password is called:
1 Mark(s)
Your Answer:
configuration
configuration
accessibility
accessibility
authentication
authentication
logging in
logging in
Which one of the following functions can be used to compress a string?
1 Mark(s)
Your Answer:
zip_compress()
zip_compress()
zip()
zip()
compress()
compress()
gzcompress()
gzcompress()
Which of the following will take care of breaks behind an element?
1 Mark(s)
Your Answer:
page-break-before
page-break-before
page-break-inside
page-break-inside
page-break-after
page-break-after
page-break-into
page-break-into
The term "SQL" stands for
1 Mark(s)
Your Answer:
Standard query language
Standard query language
Sequential query language
Sequential query language
Structured query language
Structured query language
Server-side query language
Server-side query language
Storage which has a smallest storage capacity is:
1 Mark(s)
Your Answer:
floppy disk
floppy disk
zip disk
zip disk
hard disk
hard disk
compact disk
compact disk
Fossils fuel which stores large amount of energy in a small volume is:
1 Mark(s)
Your Answer:
crude oil
crude oil
natural gas
natural gas
coal
coal
kerosene
kerosene
The earth pulls object towards center, causing it to fall:
1 Mark(s)
Your Answer:
in the center
in the center
on the ground
on the ground
on the polls
on the polls
on the floor
on the floor
Determine output of the following code. interface A { } class C { } class D extends C { } class B extends D implements A { } public class Test extends Thread{ public static void main(String[] args){ B b = new B(); if (b instanceof A) System.out.println("b is an instance of A"); if (b instanceof C) System.out.println("b is an instance of C"); } }
1 Mark(s)
Your Answer:
Nothing.
Nothing.
b is an instance of A.
b is an instance of A.
b is an instance of C.
b is an instance of C.
b is an instance of A followed by b is an instance of C.
b is an instance of A followed by b is an instance of C.
In MS-DOS you can use small or capital letters or combination of both to enter a command but internally MS-DOS works with:
1 Mark(s)
Your Answer:
small letters
small letters
capital letters
capital letters
both small and capital letters
both small and capital letters
only with numbers
only with numbers
What type of search algorithm is most appropriate for an ordered array where each element has an index?
1 Mark(s)
Your Answer:
Jump Search
Jump Search
Linear Search
Linear Search
Interpolation Search
Interpolation Search
Binary Search
Binary Search
Determine Output: #include<stdio.h> void main() { register i=5; char j[]= "hello"; printf("%s %d", j, i); }
1 Mark(s)
Your Answer:
hello 5
hello 5
hello garbage value
hello garbage value
Error
Error
None of These
None of These
VOIP stands for___________?
1 Mark(s)
Your Answer:
Voice over IP
Voice over IP
Video over IP
Video over IP
Viruses over IP
Viruses over IP
Virtual over IP
Virtual over IP
Which of the following is an application of linked lists?
1 Mark(s)
Your Answer:
Implementing stacks
Implementing stacks
Implementing queues
Implementing queues
Both A and B
Both A and B
None of the above
None of the above
Codes consisting of bars or lines of varying widths or lenghts that are computer readable are known as__________________?
1 Mark(s)
Your Answer:
An ASCII code
An ASCII code
A magnetic tape
A magnetic tape
An OCR scanner
An OCR scanner
A bar code
A bar code
The method that can be used to create new properties and also to modify the attributes of existing properties is
1 Mark(s)
Your Answer:
Object.defineProperty()
Object.defineProperty()
Object.defineProperties()
Object.defineProperties()
Both Object.defineProperty() and Object.defineProperties()
Both Object.defineProperty() and Object.defineProperties()
None of the mentioned
None of the mentioned
Which of the following property sets the volume for spoken content in speech media. It replaces the deprecated volume property?
1 Mark(s)
Your Answer:
voice-volume
voice-volume
volume
volume
!important
!important
@media
@media
The command Convert.ToSingle(Val) will result into:
1 Mark(s)
Your Answer:
val converted to char
val converted to char
val converted to decimal
val converted to decimal
val converted to float
val converted to float
val converted to bool
val converted to bool
Which of the following gives the address of a 2D array row?
1 Mark(s)
Your Answer:
arr[i]
arr[i]
&arr[i][0]
&arr[i][0]
Both A and B
Both A and B
&arr
&arr
OnLine Analytical Processing (OLAP) is a BI reporting system.
1 Mark(s)
Your Answer:
True
True
False
False
Which is not a requirement for germination of a seed?
1 Mark(s)
Your Answer:
A) favourable temperature
A) favourable temperature
B) light
B) light
C) fertilizer
C) fertilizer
D) sufficient moisture
D) sufficient moisture
Which symbol is mandatory in an email address? &, #, @, None of these
1 Mark(s)
Your Answer:
&
&
#
#
@
@
None of these
None of these
A unary operator is:
1 Mark(s)
Your Answer:
!
!
&
&
|
|
^
^
The most important use of Sulphur is in the manufacture of:
1 Mark(s)
Your Answer:
lactic acid
lactic acid
sulfuric acid
sulfuric acid
nitric acid
nitric acid
carbonic acid
carbonic acid
Which is another name for functional language?
1 Mark(s)
Your Answer:
Machine
Machine
Application language
Application language
Low-level language
Low-level language
High-level language
High-level language
Examples of solid-state memory device includes:
1 Mark(s)
Your Answer:
flash memory drive
flash memory drive
CD-RW
CD-RW
floppy disk
floppy disk
hard disk
hard disk
_____________is a windows utility program that locates and eliminates unncessary fragments and rearranges filed and unused disk space to optimize operations?
1 Mark(s)
Your Answer:
Backup
Backup
Disk cleanup
Disk cleanup
Disk Defragmenter
Disk Defragmenter
Restore
Restore
In the control field, the first bit defines the:
1 Mark(s)
Your Answer:
sequence number
sequence number
acknowledgement number
acknowledgement number
type
type
information
information
In a computer internet, standard IP address is composed of a total of:
1 Mark(s)
Your Answer:
4 bits
4 bits
10 bits
10 bits
2 bits
2 bits
256 bits
256 bits
Which technique has the greatest number of probe sequences?
1 Mark(s)
Your Answer:
Linear probing
Linear probing
Quadratic probing
Quadratic probing
Double hashing
Double hashing
Closed hashing
Closed hashing
Which of the following can you place inside a namespace? 1. classes 2. functions 3. variables
1 Mark(s)
Your Answer:
1
1
2
2
3
3
All of the mentioned
All of the mentioned
How does eclipse provide the capability for debugging browser actions?
1 Mark(s)
Your Answer:
internal web browser
internal web browser
chrome web browser
chrome web browser
firefox web browser
firefox web browser
internet explorer browser
internet explorer browser
Which LINQ operator is used to sort the elements of a sequence in ascending order based on a key?
1 Mark(s)
Your Answer:
ThenByDescending
ThenByDescending
ThenBy
ThenBy
OrderByDescending
OrderByDescending
OrderBy
OrderBy
What is the other name of run-time polymorphism?
1 Mark(s)
Your Answer:
Static polymorphism
Static polymorphism
Dynamic polymorphism
Dynamic polymorphism
Executing polymorphism
Executing polymorphism
Non-executing polymorphism
Non-executing polymorphism
What will be the output of the following Python code snippet? print('{:,}'.format(1112223334))
1 Mark(s)
Your Answer:
1,112,223,334
1,112,223,334
111,222,333,4
111,222,333,4
1112223334
1112223334
Error
Error
What is the purpose of the re.sub() function in Python?
1 Mark(s)
Your Answer:
It replaces occurrences of a pattern with a specified string
It replaces occurrences of a pattern with a specified string
It converts strings to regular expressions
It converts strings to regular expressions
It searches for a match anywhere in the string
It searches for a match anywhere in the string
It checks if a string contains a specific character
It checks if a string contains a specific character
It is used to establish an association between related tables.
1 Mark(s)
Your Answer:
Line
Line
Relationship
Relationship
Primary Key
Primary Key
Records
Records
The best orientation to fix maximum columns on a single sheet for print is _____?
1 Mark(s)
Your Answer:
Landscape
Landscape
Portrait
Portrait
Both A and B
Both A and B
None of these
None of these
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.