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
:
48
:
00
Q:
1
/
53
🤖
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.
Operating Systems Mock Test 1
Exam Duration:
00:48:00
Operating Systems Mock Test 1
: Question
1
of 53
What function is used to return the length of a string in C++?
1 Mark(s)
Your Answer:
length()
length()
size()
size()
strlen()
strlen()
length
length
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop(1)?
1 Mark(s)
Your Answer:
[3, 4, 5, 20, 5, 25, 1, 3]
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
[1, 3, 4, 5, 20, 5, 25]
What is the correct way to access the last element in an array named numbers in C#?
1 Mark(s)
Your Answer:
numbers[numbers.Length]
numbers[numbers.Length]
numbers[numbers.Length + 1]
numbers[numbers.Length + 1]
numbers.Last()
numbers.Last()
numbers[numbers.Length - 1]
numbers[numbers.Length - 1]
Which of the following can be used to navigate documents?
1 Mark(s)
Your Answer:
frames
frames
hyperlinks
hyperlinks
web toolbar
web toolbar
all of the above
all of the above
All animals have specific features, which helps them to stay in their:
1 Mark(s)
Your Answer:
habitat
habitat
place
place
pond
pond
area
area
Determine the Final Output: void main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
1 Mark(s)
Your Answer:
absiha
absiha
asiha
asiha
haasi
haasi
hai
hai
Select correct type of line configuration:
1 Mark(s)
Your Answer:
Multi-point
Multi-point
Single point
Single point
Link
Link
Dedicated point
Dedicated point
If you hard disk is partitioned into 3 drives, the number of recycle bin for that hard disk is
1 Mark(s)
Your Answer:
1
1
2
2
3
3
4
4
Can we use a function as a parameter of another function? [Eg: void wow(int func())].
1 Mark(s)
Your Answer:
Yes, and we can use the function value conveniently
Yes, and we can use the function value conveniently
Yes, but we call the function again to get the value, not as convenient as in using variable
Yes, but we call the function again to get the value, not as convenient as in using variable
No, C does not support it
No, C does not support it
This case is compiler dependent
This case is compiler dependent
What is the difference between TCP and UDP in networking?
1 Mark(s)
Your Answer:
TCP provides reliable, connection-oriented communication, while UDP provides unreliable, connectionless communication
TCP provides reliable, connection-oriented communication, while UDP provides unreliable, connectionless communication
TCP provides unreliable, connectionless communication, while UDP provides reliable, connection-oriented communication
TCP provides unreliable, connectionless communication, while UDP provides reliable, connection-oriented communication
TCP is faster than UDP
TCP is faster than UDP
UDP is more secure than TCP
UDP is more secure than TCP
Moon has less:
1 Mark(s)
Your Answer:
gravitational force
gravitational force
light
light
air
air
gases
gases
Which of the following statements are incorrect?
1 Mark(s)
Your Answer:
public members of class can be accessed by any code in the program
public members of class can be accessed by any code in the program
private members of class can only be accessed by other members of the class
private members of class can only be accessed by other members of the class
private members of class can be inherited by a subclass, and become protected members in subclass
private members of class can be inherited by a subclass, and become protected members in subclass
protected members of a class can be inherited by a subclass, and become private members of the subclass
protected members of a class can be inherited by a subclass, and become private members of the subclass
What will be the output of the following C# code? class Program { static void Main(string[] args) { int i ; for ( i = 0; i < 5; i++) { int j = 0; j += i; Console. WriteLine(j); } Console. WriteLine(i); Console. ReadLine(); } }
1 Mark(s)
Your Answer:
0, 1, 2, 3, 4, 5, 6
0, 1, 2, 3, 4, 5, 6
0, 1, 2, 3, 4, 5
0, 1, 2, 3, 4, 5
0, 1, 2, 3, 4
0, 1, 2, 3, 4
0, 1, 2, 3
0, 1, 2, 3
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')
The updates performed by the transaction become permanent in the database, by using:
1 Mark(s)
Your Answer:
Transit work
Transit work
Trace work
Trace work
Rollback work
Rollback work
Commit work
Commit work
What is the main disadvantage of the Naive string matching algorithm?
1 Mark(s)
Your Answer:
It is complex to implement.
It is complex to implement.
It requires the text to be sorted.
It requires the text to be sorted.
It cannot handle patterns with special characters.
It cannot handle patterns with special characters.
It can be slow for large texts.
It can be slow for large texts.
The jQuery selector used to select the elements with the specified language code is -
1 Mark(s)
Your Answer:
jQuery :contains selector
jQuery :contains selector
jQuery :lang() selector
jQuery :lang() selector
jQuery :nth-child selector
jQuery :nth-child selector
None of the above
None of the above
Earth's orbital speed is equals to:
1 Mark(s)
Your Answer:
13.1 Km/s
13.1 Km/s
29.8 Km/s
29.8 Km/s
24.1 Km/s
24.1 Km/s
29.8 Km/s
29.8 Km/s
14.7ln/in2=:
1 Mark(s)
Your Answer:
1 atm
1 atm
2 atm
2 atm
3 atm
3 atm
4 atm
4 atm
What is the main advantage of using OOP principles in programming?
1 Mark(s)
Your Answer:
Modularity and reusability
Modularity and reusability
Improved performance
Improved performance
Simplicity and ease of use
Simplicity and ease of use
Reduced memory usage
Reduced memory usage
State whether the given statement is true or false. !DOCTYPE is case sensitive”
1 Mark(s)
Your Answer:
True
True
False
False
A reactive fault management system is responsible for:
1 Mark(s)
Your Answer:
detecting and isolating
detecting and isolating
correcting, and recording
correcting, and recording
security and recording
security and recording
both a and b
both a and b
A rectangle represents which of the following in an EER?
1 Mark(s)
Your Answer:
Attribute
Attribute
Entity
Entity
Optional One
Optional One
Relationship
Relationship
What will be the output of the following C# code? static void Main(string[] args) { int I, J = 0; for (I = 1; I < 10; ) ; { J = J + I; I += 2; } Console.WriteLine("Sum of first 10 even numbers is:"+J); Console.ReadLine(); }
1 Mark(s)
Your Answer:
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9
25
25
1
1
Run time error
Run time error
Which of the following is not a kind of inheritance?
1 Mark(s)
Your Answer:
Distributed
Distributed
Multiple
Multiple
Multi-level
Multi-level
Hierarchal
Hierarchal
The statement that starts on the next tuple, from the beginning of the loop, skipping the remaining statements, is known to be:
1 Mark(s)
Your Answer:
Initial
Initial
Begin
Begin
Iterate
Iterate
leave Start
leave Start
Which of the following feature interacts one object with another object?
1 Mark(s)
Your Answer:
Message reading
Message reading
Message passing
Message passing
Data transfer
Data transfer
Data binding
Data binding
A method defines the form or protocol of the operation, but not its implementation.
1 Mark(s)
Your Answer:
True
True
False
False
What is the space complexity of standard DFS(V: no. of vertices E: no. of edges)?
1 Mark(s)
Your Answer:
O(V+E)
O(V+E)
O(V)
O(V)
O(E)
O(E)
O(V*E)
O(V*E)
Date and time are available on the desktop at
1 Mark(s)
Your Answer:
Keyboard
Keyboard
Recycle Bin
Recycle Bin
My Computer
My Computer
Task Bar
Task Bar
None of these
None of these
Choose the class from which the namespace 'System.Type' is derived?
1 Mark(s)
Your Answer:
System.Reflection
System.Reflection
System.Reflection.MemberInfo
System.Reflection.MemberInfo
Both System.Reflection & System.Reflection.MemberInfo
Both System.Reflection & System.Reflection.MemberInfo
None of the mentioned
None of the mentioned
A SQL statement comprising a logical entity is called:
1 Mark(s)
Your Answer:
Database object
Database object
Database operation
Database operation
Database definition
Database definition
Database declaration
Database declaration
A single processor executes a single instruction stream to operate on data stored in a single:
1 Mark(s)
Your Answer:
Computer
Computer
System
System
Memory
Memory
Device
Device
Ctrl + G shortcut key used for?
1 Mark(s)
Your Answer:
Go To dialog box
Go To dialog box
Group selected objects
Group selected objects
Insert Graph
Insert Graph
Open Gridlines
Open Gridlines
For examining the microscope slides, the power objective should be:
1 Mark(s)
Your Answer:
low
low
high
high
doesn't matter
doesn't matter
constant
constant
The effect of null values on some of the more complicated SQL constructs can be:
1 Mark(s)
Your Answer:
Subtle
Subtle
Easy
Easy
Ideal approach
Ideal approach
None of the above
None of the above
Which of the following is a valid way to declare and initialize a string variable in C#?
1 Mark(s)
Your Answer:
string = str;
string = str;
str Hello;
str Hello;
string str = "Hello";
string str = "Hello";
str = "Hello";
str = "Hello";
Process of removing a file from a compressed archive is termed as:
1 Mark(s)
Your Answer:
pulling
pulling
restoring
restoring
uninstalling
uninstalling
extracting
extracting
. . . . . . . . is a Java library for writing, testing, and running pipelines of MapReduce jobs on Apache Hadoop.
1 Mark(s)
Your Answer:
cTakes
cTakes
Crunch
Crunch
CouchDB
CouchDB
None of the mentioned
None of the mentioned
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
By default JavaScript displays the numbers as . . . . . . . .
1 Mark(s)
Your Answer:
base 16
base 16
base 10
base 10
base 6
base 6
base 2
base 2
Total specialization is represented by double lines between the supertype and subtype on an EER.
1 Mark(s)
Your Answer:
True
True
False
False
What will be the output of the following C# code? public static void Main(string[] args) { int a = 4; int c = 2; bool b = (a % c == 0 ? true : false); Console.WriteLine(b.ToString()); if (a/c == 2) { Console.WriteLine("true"); } else { Console.WriteLine("false"); } Console.ReadLine(); }
1 Mark(s)
Your Answer:
TRUE FALSE
TRUE FALSE
FALSE TRUE
FALSE TRUE
TRUE TRUE
TRUE TRUE
FALSE FALSE
FALSE FALSE
In MS Word, Ctrl + H Shortcut is used for?
1 Mark(s)
Your Answer:
Open Help Window
Open Help Window
Find and Replace
Find and Replace
Highlight Text
Highlight Text
Insert Hyperlink
Insert Hyperlink
What is the default storage class for global variables?
1 Mark(s)
Your Answer:
auto
auto
static
static
extern
extern
register
register
A multidimensional database model is used most often in which of the following models?
1 Mark(s)
Your Answer:
Data warehouse
Data warehouse
Relational
Relational
Hierarchical
Hierarchical
Network
Network
Which element is used to group inline-elements?
1 Mark(s)
Your Answer:
What keyword is used in Go to launch a lightweight concurrent execution thread (goroutine)?
1 Mark(s)
Your Answer:
go
go
async
async
spawn
spawn
thread
thread
A number system that has eight different symbols to represent any quantity is known as…..?
1 Mark(s)
Your Answer:
Binary
Binary
Octal
Octal
Decimal
Decimal
Hexadecimal
Hexadecimal
Which file mode opens for reading and writing?
1 Mark(s)
Your Answer:
rw
rw
rw+
rw+
r+
r+
x
x
Determine output: class A{ public void printName(){ System.out.println("Name-A"); } } class B extends A{ public void printName(){ System.out.println("Name-B"); } } class C extends A{ public void printName(){ System.out.println("Name-C"); } } public class Test{ public static void main (String[] args){ B b = new B(); C c = new C(); b = c; newPrint(b); } public static void newPrint(A a){ a.printName(); } }
1 Mark(s)
Your Answer:
Name B
Name B
Name C
Name C
Compilation fails due to an error on lines 5
Compilation fails due to an error on lines 5
Compilation fails due to an error on lines 9
Compilation fails due to an error on lines 9
None of these
None of these
What happens if you attempt to free the same block of memory twice in C?
1 Mark(s)
Your Answer:
It leads to undefined behavior
It leads to undefined behavior
The program terminates
The program terminates
Memory is released, but the pointer remains valid
Memory is released, but the pointer remains valid
Memory is leaked
Memory is leaked
Which operator is used to access members of a class through a pointer in C++?
1 Mark(s)
Your Answer:
Star operator (*)
Star operator (*)
Double colon (::)
Double colon (::)
Dot operator (.)
Dot operator (.)
Arrow operator (->)
Arrow operator (->)
Previous
Mark For Review & Next
Next
Clear Answer
Finish
© Copyright © 2020 ALGOPK . All Rights Reserved.