Skip to main content
CSSMPT.PK  Syllabus, Past Papers, MCQs & Complete Preparation Guide
  • Home
  • Science
    • Biology
    • Chemistry
    • Physics
  • English
  • Current
  • GK
  • Computer
  • Economics
  • PAST PAPERS
    • CSS MPT
    • CSS
  • Updates
    • FPSC
      • MPT
    • PPSC
      • PPSC JOBS
    • Blog / Articles

Tag: computer science mcqs preparation

Which device can connect different networks?

August 16, 2025August 16, 2025 Ahmed Raza

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

The answer is: (A) Router

Which number system is used by computers?

August 16, 2025August 16, 2025 Ahmed Raza

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

The answer is: (D) binary

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

August 16, 2025August 16, 2025 Ahmed Raza

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

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

August 16, 2025August 16, 2025 Ahmed Raza

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

The file type #include is called

August 16, 2025August 16, 2025 Ahmed Raza

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

The answer is: (C) header file

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

August 16, 2025August 16, 2025 Ahmed Raza

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

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

August 16, 2025August 16, 2025 Ahmed Raza

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

The answer is: (B) parentheses

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

August 16, 2025August 16, 2025 Ahmed Raza

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

The answer is: (A) constant, variable

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

August 16, 2025August 16, 2025 Ahmed Raza

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

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

Bundling data and functions together is known as

August 16, 2025August 16, 2025 Ahmed Raza

(A) debugging
(B) encapsulation
(C) overloading
(D) polymorphism

The answer is: (B) encapsulation

Posts pagination

Newer posts 1 … 3 4 5 … 7 Older posts

GENERAL MCQS

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

SCIENCE MCQS

  • Biology
  • Chemistry
  • Physics
  • Computer Science
  • Mathematics
  • Full List

EDUCATION

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

BUSINESS MCQS

  • Commerce
  • Accounting
  • Economics
  • Banking
  • Project Management
  • Business Administration
  • Full List

SOCIAL SCIENCE

  • Geography
  • Sociology
  • History
  • International Relations
  • English Literature
  • Full List

REGIONAL MCQS

  • Canada
  • India
  • Pakistan
  • USA-United States
  • UK-United Kingdom
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Disclaimer
Copyright 2025 Powered By PG Media