STET Computer Science : Test 1

This test is helpful for the Computer Science (PGT) Exam. It covers STET 2025, BPSC TRE 4.0, Army School (AWES) PGT, and many other exams.

Total Questions : 10

Timer : sec

Question : What type of error is ‘use of undeclared variables’?

Run-time
Exception
Logical
Compile-time
none of these

Question : When a process is moved from main memory to the secondary storage, it is called:

spooling
swapping
scheduling
caching
none of these

Question : Which of the following semiconductor devices can act as a simple switch?

Diode
Transistor
Capacitor
Resistor
none of these

Question : The name given to variables, classes, methods, etc. is called:

declaration
operator
identifier
constructor
none of these

Question : While scheduling processes, which of the following controls the degree of multiprogramming (the number of processes in memory)?

Process control block scheduler
Long-term scheduler
CPU scheduler
Short-term scheduler
none of these

Question : Optical fibre works on the principle of:

total internal refraction
Tyndall effect
laser technology
total internal reflection
none of these

Question : The layers of the TCP/IP protocol are:

transport layer and network layer
Application Layer - Transport Layer(TCP/UDP) - Network/Internet Layer(IP) - Network Access Layer
data link layer, transport layer and network layer
application layer, data link layer, transport layer, network layer and hardware layer
none of these

Question : Switching the CPU to another process requires performing a state save of the current process and a state restore of a different process. This task is known as:

process switch
task switch
context switch
status switch
none of these

Question : How can you write into HTML output using JavaScript?

Using innerHTML
console.log()
document.write()
window.alert()
documents.read()

Question : Which of the following statements is true about "Race Condition"?

When multiple processes are accessing shared data without access control and the final result depends on the execution order
When one process is executing in its critical section, no other process is allowed to execute in that critical section.
If multiple processes are blocked on the same semaphore, only one of them will be awakened when another process performs signal(s) operation.
If the critical section is being used, waiting processes loop continuously at the entry point.
All statements are true.