Skip to main content

CSS MPT

  • Home
  • Current
  • GK
  • Science
  • Biology
  • Chemistry
  • Physics
  • Computer
  • English
  • Economics

Category: Computer Science MCQs FPSC NTS PPSC Computer Past Papers Test Questions

Computer MCQs quiz test questions with answers for FPSC CSS PPSC SPSC KPPSC test preparation, including questions from computer science past papers.

What is the statement that displays the address of the variable myvar?

(A) myvar;
(B) &myvar;
(C) cout << myvar;
(D) cout << &myvar;

The answer is: (D) cout << &myvar;

An address is a _____, while a pointer is a _____.

(A) constant, variable
(B) variable, constant
(C) constant, constant
(D) variable, variable

The answer is: (A) constant, variable

In C++, a function name must be followed by

(A) braces
(B) parentheses
(C) statement
(D) variable name

The answer is: (B) parentheses

Consider the main body of a C++ program. If the program is run, what will be the output?

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

The answer is: (D) 48

The file type #include is called

(A) syntax
(B) operator
(C) header file
(D) string constant

The answer is: (C) header file

What will be the output of the following C++ program?

string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << “var3” << endl;
(A) var3
(B) Computer
(C) Science
(D) Computer Science

The answer is: (A) var3

Consider the main body of a C++ program. If the program is run, what will be displayed on the screen?

string var1 = “Computer “;
string var2 = “Science”;
string var3 = var1 + var2;
cout << var3 << endl;
If the program is run, what will be displayed on the screen?
(A) var3
(B) Computer
(C) Science
(D) Computer Science

The answer is: (D) Computer Science

Which number system is used by computers?

(A) digital
(B) decimal
(C) analogue
(D) binary

The answer is: (D) binary

Which device can connect different networks?

(A) Router
(B) Bridge
(C) Gateway
(D) Node

The answer is: (A) Router

Which device only connect segments of the same network?

(A) Router
(B) Bridge
(C) Gateway
(D) Node

The answer is: (B) Bridge

Posts pagination

Newer posts 1 … 3 4 5 … 8 Older posts

FPSC Assistant Director ASF Test
FPSC Assistant Director ASF Past Papers
FPSC Inspector ASF Test
FPSC Inspector ASF Past Papers

CSS MPT
MPT   Syllabus   Papers   Preparation   MCQs
CSS WRITTEN EXAM
CSS   CSS Syllabus   Past Papers   Notes   FPSC

GENERAL MCQS
Current Affairs
General Knowledge
Everyday Science
English MCQs
English Grammar MCQs
Pak Study MCQs
Islamic Studies
Arithmetic/ Basic Math
Analytical Reasoning

SCIENCE MCQS
Biology
Chemistry
Physics
Computer Science
Mathematics
Statistics
Full List

BUSINESS MCQS
Accounting
Banking
Commerce
Economics
Finance
Project Management
Business Administration
Full List

SOCIAL SCIENCE
History
Geography
Sociology
International Relations
English Literature
Full List

EDUCATION
Education and Pedagogy
Bloom's Taxonomy MCQs
Testing and Evaluation
Classroom Management & Discipline
Teaching Techniques & Methodology

REGIONAL MCQS
Canada
India
Nigeria
Pakistan
United States
United Kingdom

CSS MPT FPSC Test Past Papers 2026: Home | About | Privacy | Contact | Theme by Colorlib Powered by WordPress