- Home
- MCQs by exam
- Technical Interviews
- Computer Science MCQs
Technical Interviews MCQs – Computer Science MCQs · Page 2
44 multiple choice questions typical of the Technical Interviews exam, with answers and explanations. Switch on practice mode to test yourself first.
-
A
map()
Correct answer
-
B
reduce()
-
C
filter()
-
D
forEach()
-
A
true
-
B
NaN
-
C
false
Correct answer
-
D
undefined
-
A
===
Correct answer
-
B
!==
-
C
=
-
D
==
-
A
"number"
-
B
"object"
Correct answer
-
C
"null"
-
D
"undefined"
-
A
public
-
B
private
-
C
protected
-
D
internal
Correct answer
-
A
true if both a and b are null
-
B
a if it is not null, otherwise b
Correct answer
-
C
a and b combined into one string
-
D
b if it is not null, otherwise a
-
A
auto
-
B
object
-
C
var
Correct answer
-
D
dynamic
-
A
It is read-only inside the called method
-
B
It must be initialised by the caller before the call
-
C
It can only be used with value types, not classes
-
D
It must be assigned inside the method before returning
Correct answer
-
A
Thread
-
B
IAsyncResult
-
C
Task
Correct answer
-
D
void
-
A
Compiling C# code into CIL
-
B
Profiling memory leaks at runtime
-
C
Managing third-party library packages
Correct answer
-
D
Hosting web apps on IIS servers
-
A
Value type
Correct answer
-
B
Pointer type
-
C
Delegate type
-
D
Reference type
-
A
"Hi"
Correct answer
-
B
"!"
-
C
"Hi!"
-
D
null
-
A
Iterable
-
B
AutoCloseable
Correct answer
-
C
Runnable
-
D
Serializable
-
A
A single fast hash such as MD5 or SHA-1
-
B
Reversible AES encryption with one key
-
C
Base64 encoding before saving to the table
-
D
A slow salted hash such as bcrypt or Argon2
Correct answer
-
A
Queue<T>
-
B
LinkedList<T>
-
C
List<KeyValuePair<K, V>>
-
D
Dictionary<TKey, TValue>
Correct answer
-
A
Native machine code
-
B
LLVM IR
-
C
CIL (MSIL)
Correct answer
-
D
Java bytecode
-
A
lock
-
B
checked
-
C
using
Correct answer
-
D
fixed
-
A
Unchecked exceptions such as NullPointerException
-
B
Checked exceptions such as IOException
Correct answer
-
C
Errors such as OutOfMemoryError
-
D
Runtime exceptions such as ArithmeticException
-
A
false
Correct answer
-
B
true
-
C
A runtime exception
-
D
A compile-time error