Skip to content
GK24
Computer AwarenessEasyAsked in: CDS · CDS-I 2024, GK

Qubit refers to a two-valued quantity used in

  1. A.classical computers
  2. B.classical cryptography
  3. C.quantum computers
  4. D.lasers

Correct answer

C. quantum computers

Explanation

The correct answer is C, quantum computers. A qubit, short for quantum bit, is the basic unit of information in a quantum computer, just as the bit is in an ordinary computer.

A classical bit is always either 0 or 1. A qubit is built on a two-level quantum system, such as the spin of an electron, the polarisation of a photon or the state of a superconducting circuit. Because of superposition it can exist in a combination of 0 and 1 at the same time, and through entanglement the state of one qubit can be linked to another. These properties let quantum computers tackle some problems, such as factoring large numbers or simulating molecules, far faster than classical machines. India's National Quantum Mission, approved in 2023, aims to build quantum computers with 50 to 1,000 qubits.

A is wrong: classical computers store data in ordinary bits.

B is wrong: classical cryptography relies on mathematical problems run on ordinary bits.

D is wrong: lasers produce coherent light and do not use qubits as a unit of information.

Exam tip: bit = 0 or 1; qubit = superposition of 0 and 1; key quantum ideas are superposition and entanglement.

View all
Q1.Computer AwarenessMedium

In C++, members of a class declared as private can be accessed

  1. A.From anywhere in the program
  2. B.Only within the same class
  3. C.Within the class and its derived classes
  4. D.Only from the main function
Show answer
Correct answer: B. Only within the same class

Private is the most restricted access specifier and is also the default for a C++ class, so private data members can be read or changed only by the member functions of that class, and by a friend function or friend class if one is declared.

Read the full explanation →
Q5.Computer AwarenessEasy

Which statement about a class and an object is correct?

  1. A.A class is an instance of an object
  2. B.An object is a blueprint and a class is its instance
  3. C.A class is a blueprint and an object is its instance
  4. D.A class and an object both occupy memory in the same way
Show answer
Correct answer: C. A class is a blueprint and an object is its instance

A class only describes the data members and member functions that its objects will have, while an object is created from the class, occupies memory and holds actual values; one class may have any number of objects.

Read the full explanation →