Cs101 Midterm Currently paper Spring 2022


CS101  MIDTERM  CURRENTLY  PAPER  SPRING 2022

Cs101 today8:00

Total question 23 

Long question with marks 2 

Short quesion 3 

Mcqs 18 

Lq1 is what is volp?abriviation og volp?and describe  using volp how  we can call someone,?

 2) sidra want to go to mall for shoping? She search on google  "the clessest shoping mall," and packages of malls lahore?? Describe sidra searching is right or wrong ?

Short mn tha

Ali want to make a software give him advise to. Make a software ? 

2)Using 2floating notation =7+(-5)



CS101  MIDTERM  CURRENTLY  PAPER  SPRING 2022

Midterm 2022

17/7

CS101 overseas student

I have done the cs101 paper

Long questions were what's the pseudo code of factorial , decimal to binary 25, what's internet streaming  , write the correct displine for Dreamweaver PowerPoint and arrays =what kind of software is it ?,

They were about teh iterative structures , how many levels of hierarchy, cpu usually uses the which pattern for instructions

Which operator for 360degree scree

From decimal to excess 4

What's a directory mcq

Machine cycle mcq

Embedded system mcq

Which point connects to a network

Gatway

Repeater

Switch

Bridge

Ip address mcq



CS101  MIDTERM  CURRENTLY  PAPER  SPRING 2022

CS 101..18/July/2022.

(Total 23 boxes) 18 Quizzes and 5 questions.

mostly paper handouts sy aaya tha or Quizzes b thek thy concepts k sath kr skty Hain prh kr.

Long question total 5 or 3 marks!

Q1.colum math krny thy total 3 k colum thy.A or B ko math krna tha uski correct discipline sy.

Colum A....

1.presentations development

2. Data abstraction.

3. Word processing 

Colum B.

1.  Microsoft PowerPoint .

2. Arrays.

3.web page development .


Qno 2.

Write Correct wording in the betch processing  ..... Is mein Jo Jo b correct answer ata hai wo likhna tha in name k samny....just correct name....For 5 marks.

1.play roll.

2. Computer Game.

3.web development.

4.Image search.

5. Representative system


Qno3 .

Sidra searching on Google for shopping in nearest shopping mall in Lahore.what is write in searching engine?

Qno.4:

4 principals of problem-solveing by g.pyalo...(module 92)

And

 question no 5 for 5 marks (module no 90) also wirt Syntex structure?


CS101  MIDTERM  CURRENTLY  PAPER  SPRING 2022

Cs101

10:00am

1.public key encryption.name key used in this technique& purpose of it.5 mark

2.table tha 5 marks ka 

3.suppose have 3 network.2based on Ethernet and one on wifi.yu have to send mesg  from wifi to ethernet.writ steps in mesg passing.

4.wrt at least three  external event that can push a process in waiting state.3 Mark

5.eight bits required to store traditional no.identify  no. Of bits used for following field.sign bit, exponent, mantissa 3 marks

6. Mcqs k liye ziyada sy Ziyad a files read kery



CS101  MIDTERM  CURRENTLY  PAPER  SPRING 2022

 decided to prepare yourself for programming exam, then these 50 important MCQs will help You a lot.

1.In flowchart rectangle symbol indicates:

a.Input/Output

b.Connector

c.Process

d.Decision

C


2.C++ is a(n):

a.Object-oriented programming language.

b.Event-driven programming language.

c.Structured programming language.

d.None of these.

A


3.The arithmetic operators are:

a.Ternary operators

b.Unary operators

c.Binary operators

d.None of these

C


4.THe escape sequence for carrige return is:

a./t

b./f

c./n

d./r

D


5.In switch structure, each case label may be an integer constant or:

a.Real constant

b.Character constant

c.String constant

d.None of these

B


6.WHat will be the value of ‘x’ after executing for(x=1;x<=15;x++);?

a.15

b.1

c.14

d.16

A



7.The pointers are used for implementing the concept of:

a.Polymorphism

b.Array

c.Structure

d.Inheritance

A


8.The function stlen(“ABC”);will return value:

a.4

b.ABC

c.3

d.None of these

C


9.The data item of a structured are called:

a.Fields

b.Elements

c.Members

d.ALl of these

D


10.In C++,the functions of a class are called:

a.Attributes

b.Methods

c.Member function

d.Both a and b

C


11.The derived class is also called:

a.parent class

b.sub class

c.child class

d.both b and c

D


12.Which of the following type of inheritance is commonly used:

a.private

b.public

c.protected

d.none of these

B


13.Polymorphism is achieved through:

a.destructor

b.constructor

c.virtual function

d.overloading operator

C


14.Which of the following strem class is used to perform both input and output file operation:

a.ofstream

b.ifstream

c.fstream

d.iostream

C


15.How many operations can be performe on stack:

a.4

b.5

c.3

d.2

D


16.Which of the following is used in recursion operation:

a.stack

b.deque

c.queue

d.tree

A


17.In order traversal:

a.Right sub-tree is visited first in inorder

b.Root is visited first

c.Left sub-tree is visited in inorder

d.None of the above

C


18.In binary I/O,the integer value 16324 will take:

a.5 bytes

b.6 bytes

c.4 bytes

d.2 bytes

D


19.A class that has at least one pure virtual function is called:

a.Abstract class

b.Super class

c.Concrete class

d.Derived class

A


20.Inheritance is the process of creating new classes called:

a.Super classes

b.Parent classes

c.Base classes

d.Derived classes

D


21.Which of the following function is a non-member function of a class?

a.Overridden function

b.Friend function

c.Constructor

d.Destructor

D


22.When accessing pof a structure member,the identifier to the left of the dot operator is the name of:

a.a structure tag

b.a structure variable

c.the keyword struct

d.a structure member

B


23.The null character is denoted by:

a.’/e’

b.’/n’

c.’/0′

d.0

C


24.Each element of array of character occupies:

a.one byte

b.four bytes

c.two bytes

d.None of the above

A


25.How many arithmetic operations can be performed on a pointer?

a.6

b.4

c.2

d.3

C


26.The only integer that can be assigned directly to a pointer is:

a.2

b.0

c.1

d.3

B


27.Which of the following loop structure has test condition after the body of loop?

a.do-while

b.while

c.for

d.None

A


28.Which of the following is a counter loop statement?

a.do-while

b.for

c.while

d.none

D


29.How many relational oprerators in C++?

a.2

b.4

c.6

d.3

C


30.Which of the following is a logical operator?

a.=

b.!=

c.==

d.!

D


31.A stream refers to:

a.flow of data

b.output statement

c.input statement

d.flow of program control709

A


32.A person that can write a computer program is called:

a.coder

b.programmer

c.analyst

d.coordinator

e.both c and d

B


33.The term mnemonic is used in:

a.C-language

b.Ada language

c.Assembly language

d.Machine language

e.none of these

C


34.In which year BCPL was developed:

a.1980

b.1970

c.1967

d.1972

e.None of these

C


35.Which of the following is the part of C++ compiler?

a. obj

b. .exe

c. .cpp

d. .h

e. none of these

D


36.The extension of C++ source program is:

a.ccp

b.cpp

c.exe

d.obj

e.none of these

B


36.Which operator is unary operator?

a.$$

b.>==

c.//

d.++

e.all of these

D


37.a++ statement, is equivalent to:

a.a=a+a

b.a=a+1

c=.a=++a+1

d.both b and c

e. none of these

B


38. The cerr is a(n):

a.output stream object

b.built-in error function

c.keyword

d.input stream object

e.all of these

A


39.The escape sequence for carrige return is:

a./f

b./r

c./n

d./t

e.both c and d

b


40.A relational operator :

a. Comapares two operands.

b.assign one operand to another

c.logically combines two operands

d.adds two operands.

e.none of these

A


41.Which of the following statement is a loop statement?

a.while

b.switch

c.if

d.if-else

e.both a and b

A


42.Which logical operator is unary operator?

a.//

b.!

c.&&

d.both a and b

e.none of the above

B


43.A pointer may be initialized to:

a.NULL

b.Adress of a variable

c.0

d.All of these

D


44.How many loop structure in C++?

a.4

b.2

c.1

d.3

e.none

D


45.Which of the following is an address operator?

a.!

b.*

c.&

d.&&

e. all of these

C


46.A pointer is a(n):

a.Data type

b.Variable

c.Operator

d.Keyword

e.both c and d

B


47.Which of the following is relational operator?

a.%

b.=

c.&&

d.==

e.all of these

C


48.In following statement which statement are correct?

a.char *X3=”ABC”;

b.char X1[]=”ABC”;

c.char X2[5]=”ABC”;

d.both b and c

e.None of these

E


49.The keyboard ‘friend’ is used to define a:

a.Friend class

b.Friend constructor

c.Friend function

d.Both a and b

D



Topic Covered

Top 50 Programming  C++ Solved MCQs Questions Answers