40 Computer Science questions answers

Q. Which one of the following is commonly used to define the overall design of the database?

  1. Application program
  2. Data definition language
  3. Schema
  4. Source code

Answer :- (C)

Q. Which of the following comment syntax is correct to create a single-line comment in the C++ program?

  1. //Comment
  2. /Comment/
  3. Comment//
  4. None of the above

Answer :- (A)

Explanation: To create a single line comment (or one-line comment in C++ program one can use the “// write comment” syntax.

. C++ is a ___ type of language.

  1. High-level Language
  2. Low-level language
  3. Middle-level language
  4. None of the above

Answer :- (C)

Q. For inserting a new line in C++ program, which one of the following statements can be used?

  1. \n
  2. \r
  3. \a
  4. None of the above

Answer :- (A)

Q. Which one of the following represents the tab?

  1. \n
  2. \t
  3. \r
  4. None of the above

Answer :- (B)

Explanation: The “\t” is a type of space sequence representing the tab, which means a set of blank space adds to the line.

Q. Which of the following refers to characteristics of an array?

  1. An array is a set of similar data items
  2. An array is a set of distinct data items
  3. An array can hold different types of datatypes
  4. None of the above

Answer :- (A)

Q. Which of the following is not a feature of DBMS?

(A) Minimum Duplication and Redundancy of Data
(B) High Level of Security
(C) Single-user Access only
(D) Support ACID Property

Answer: c

Q. Which of the following is not an example of DBMS?

(A) MySQL
(B) Microsoft Acess
(C) IBM DB2
(D) Google

Answer: d

6. In which of the following formats data is stored in the database management system?

(A) Image
(B) Text
(C) Table
(D) Graph

Answer: c

Q. Which of the following is the prefix form of A+B*C?

  1. A+(BC*
  2. +AB*C
  3. ABC+*
  4. +A*BC

Answer :- (D)

Q. When the user tries to delete the element from the empty stack then the condition is said to be a ____

  1. Underflow
  2. Garbage collection
  3. Overflow
  4. None of the above

Answer :- (A)

Q. Which one of the following is the process of inserting an element in the stack?

  1. Insert
  2. Add
  3. Push
  4. None of the above

Answer :- (C)

Q. What is the output of the below code?

#include <stdio.h>

int main

(

{

int arr[5]={10,20,30,40,50};

printf(“%d”, arr[5];

return 0;

}

  1. Garbage value
  2. 10
  3. 50
  4. None of the above

Answer :- (A)

Q. Which of the following is the function of the control unit in the CPU?

  1. It stores program instruction
  2. It decodes program instruction
  3. It performs logic operations
  4. None of the above

Answer :- (B) It decodes program instruction

Q. Which of the following building block can be used to implement any combinational logic circuit?

  1. AND
  2. OR
  3. NAND
  4. None of the above

Answer :- (C) NAND

Q. Which of the following is a combinational logic circuit that change the binary information into N output lines?

  1. Moltiplexer
  2. Demoltiplexer
  3. Encoder
  4. Decoder

Answer :- (C) Encoder

Leave a Comment