0% found this document useful (0 votes)
130 views6 pages

2nd Year MCQS

This document contains multiple choice questions from chapters on various computer science topics like control structures, arrays and strings, object oriented programming, system development life cycle, and operating systems. There are a total of 54 questions across 9 chapters with 4 answer options for each question. The questions test knowledge of key concepts covered in each chapter.

Uploaded by

Hammaddd Ktkk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views6 pages

2nd Year MCQS

This document contains multiple choice questions from chapters on various computer science topics like control structures, arrays and strings, object oriented programming, system development life cycle, and operating systems. There are a total of 54 questions across 9 chapters with 4 answer options for each question. The questions test knowledge of key concepts covered in each chapter.

Uploaded by

Hammaddd Ktkk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

OXFORD GROUP OF COLLEGE KOHAT

ROLL NO ………………….
CLASS ………………….
SUBJECT COMPUTER SCIENCE

MCQS
 Choose the correct answer.

 Chapter (4)
Control structure

1) Find out the error in following block of code.


If (x=100)
Count << x is 100;
a) 100 should be enclosed in quotation.
b) There is no more semicolon at the end of first line.
c) Equals to operator mistake.
d) Variable x should not be inside quotation.

2) In program mean.
a) Jumping to the specified branch of program.
b) Repeat the specified lines of code.
c) Both A and B.
d) It is executed without any condition.

3) Which of the following is not a looping statement in C++?


a) While c) Until
b) DO d) For

4) Which of the following is not a conditional jump statement in C++?


a) If c) Do-while
b) For d) Goto
5) Which of the following is select statement in C++?
a) Break c) Switch
b) Goto d) Exit

6) The continue statement.


a) Resumes the program if it is hanged.
b) Resumes the program if a break was applied.
c) Skip the rest of the loop in current iteration.
d) Both A and B.

7) Which of the following is true for switch statement in C++?


a) If uses labels instead of blocks.
b) We need to put break statement at the end of each other case.
c) We can put range for case such as case 1 .3.
d) Switch statement is executed on the basic of a condition.

………………………………………………………………………….

CHAPTER (5)
ARRAYS AND STRINGS

1) A collection of data items of the same data type placed in contiguous memory location
is called ,
a) Record c) Array
b) Program d) File

2) Observe the following statement and decide what they do.


String mystring;
getline (cin,mystring);
a) Read a line of string from cin into mystring.
b) Read a line of string from mystring into cin.
c) Cin can’t be used this way.
d) Getline is not a function.
3) Which of the header file must be included to use string stream?
a) <iostream> c) <sstring>
b) <string> d) <sstream>

4) The location number of an item in an array is called


a) Data c) Index
b) Value d) Constant

5) String are arrays. The last index of it contain the null character.
a) \n c) \t
b) \0 d) \1

CHAPTER 3

Object oriented programming using c++

1) Which does the given expression evaluate to? E=6+5*4%3


a) 1 c) 11
b) 8 d) 9

2) (true&&) || false
a) True c) false
b) Both A and B d) Incorrect expression

3) Expression C++ causes.


a) Value of i assigned to C and then i increment by i
b) To be increment by 1 and then value of i assigned by 1
c) Value of i assigned to C
d) To be increment by 1

4) Which of the following language is a subset of C++ language


a) C language c) VB language
b) Java language d) C language
5) In C++ language char ch=’3’ represent:
a) A digit c) An integer constant
b) A character constant d) A word

Chapter 2
System development life cycle

1) The first step in the system development life cycle is:


a) Analysis c) Planning
b) Problem Identification d) Development and documentation

2) The organized process or set of step that need to be the followed to develop an
information system is known as:
a) Analytical cycle c) Program specification
b) Design cycle d) System development life cycle

3) Enhancement , upgradation and bugs fixation are done during the


step in the SDLC.
a) Maintenance and Evaluation c) Design
b) Problem Identification d) Development and documentation

4) The determines whether the project should go forward.


a) Feasibility c) Problem identification
b) System evaluation d) Program specification

5) Spend most of their time in the beginning stages of the SDLC, talking with end-users
gathering requirement, documenting system and proposing solution.
a) Project manager c) System analysts
b) Network engineers d) Database administrators

6) The entities having a positive or negative influence in the project completion are
known as
a) Stakeholders c) Stake supervisors
b) Stake owners d) Full stake Developer
7) System maintenances is performed in response to
a) Business changes
b) Hardware and software changes
c) Users requests for additional features
d) All of the above

CHAPTER 1
OPERATING SYSTEM

1) Operating system is a (n):


a) Application software c) Utility software
b) Driver d) System software

2) DOS stand for:


a) Doctor of system c) Document of system
b) Disk operating system d) Disk operating schemes

3) Which one of the following is correct for multiprocessing operating system?


a) Used on system having only one processor
b) Cannot execute more than one processes at a time
c) Run on system having more than one processors
d) Run on system having small limited memory

4) Multiprogramming refers to:


a) Having several programs in RAM at the same time
b) Multiprocessing
c) Writing programs in multiple languages
d) Running programs directly form hard disk
5) The most recently launched operating system of Microsoft is:
a) Windows 98 c) Windows 11
b) DOS d) Windows NT

6) Which of the following is not an operating system?


a) Linux c) MS Word
b) UNIX d) Windows XP Professional

7) Which type of software enables you to solve specific problems or perform specific
tasks?
a) System software c) Operating system
b) Utility software d) Application software

8) Which type of software controls your application software and manages how your
hardware devices work together?
a) System software c) Operating system
b) Utility software d) Application software

9) A technique in which a process, executing an application, is divided into threads that


can run concurrently is called:
a) Multithreading c) Multiprocessing
b) Batch processing d) Multiprogramming

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy