NTS Computer MCQ

General Knowledge | Current AffairsScience | Education | Physics | Chemistry | Biology

Computer Science → NTS Computer MCQ from 21 to 25.
FEATURED COMPUTER MCQ
1. In a program where user inputs the roll number and the program displays the marks obtained, which of the following is suitable?
(A) for loop
(B) do-while loop
(C) if/ else statement
(D) switch statement

2. In which loop, the loop body executes at least once?
(A) for loop
(B) while loop
(C) do-while loop
(D) none of these

3. Consider the main body of a program,
string a = “4”;
string b = “8”;
string c = a + b;
cout << c << endl;
If the program is run, what will be displayed on the screen?
(A) 4
(B) 8
(C) 12
(D) 48

ANSWER: COMPUTER MCQ
1. (D) switch statement
2. (C) do-while loop
3. (D) 48 (strings do not perform arithmetical operations)

Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10

21. Which register stores the result of ALU operations?
(A) Data Register
(B) Instruction Register
(C) Data Address Register
(D) Accumulator Register

22. A collection of rules for writing programs in a programming language is known as
(A) Syntax
(B) Program logic
(C) Program Standards
(D) None Of These

23. Which one connects two similar network segments?
(A) Router
(B) Bridge
(C) Gateway
(D) Node

24. Which of the following device uses the parallel transmission?
(A) Mouse
(B) Keyboard
(C) Printer
(D) Light Pen

25. What is a diagrammatic way of representing the relationship between the entities in a database?
(A) Flowchart
(B) ERD
(C) DFD
(D) Algorithm

ANSWERS: NTS COMPUTER MCQ
21. (D) Accumulator Register
22. (A) Syntax
23. (B) Bridge
24. (C) Printer
25. (B) ERD Next: Computer MCQs 26–30