CS201 MIDTERM MCQS MEGA FILE MIDTERM PREPARATION 100% CORRECT BY knowledge
DO SUB SCRIBE
MY YOUTUBE
CHANNEL
KNOWLEDGE
FOR MORE
MIDTERMS MCQS SHORT
QUESTIONS LONG QUESTIONS
GDB ASSIGNMENTS QUIZES
FINAL TERM MCQS
SHORT QUESTIONS LONG
QUESTIONS AND MANY
MORE
QUESTION:
What will
be the following
array int arr {29}
=30
QUESTION:
A variable declared
within a code
block becomes variable
of that block
=local
QUESTION:
The most suitable data
type for number
325.25 is …………….
=float
QUESTION:
Which of the
following loops checks
the test condition
at the end
of the loop
=do while
QUESTION:
……………… statement
is used to
terminate the processing
of a particular
case and exit
from switch structure
=break
QUESTION:
A function is
a block of
statement that can
be defined once
and used ----------
in the program
= as many times
user wants
QUESTION:
Pointer is
a variable which store
=memory address
QUESTION:
Commenting
the code---------
=makes a program
easy to understand
for others
QUESTION:
Carefully
analyze the following
lines of code
and chose the
correct option
Ch1=’’a’’
Ch2=’a’
=ch1 is string
and ch2 is character
QUESTION:
The size
of int variable
is
=4 bytes
QUESTION:
The return type
of a function
that do not
return any value
must be
=void
QUESTION:
&& is -----------
operator
=logical
QUESTION:
There are
mainly ------ types of
software
=two
QUESTION:
The function
of cin is to
=read data from
keyboard
QUESTION:
Unix has
been developed in
-------- language
=C
QUESTION:
If the
break statement is
missing in switch
statement then it
=cause
logical error
QUESTION:
Correct syntax
of do while
is
Do{statement;}while(condition);
QUESTION:
In an N dimensional array we
use ---------------- ‘for
loops’ to populate the
array
= N
QUESTION:
In three dimensional
we use ‘for
loops’ to populate
the array
= 3
QUESTION:
A record
is a group
of related
= files
QUESTION:
--------
contains function for manipulation
of character data
=Ctype.h
QUESTION:
Ifsteam infile;
refers
= object for reading
from a file
QUESTION:
A character is
stored in memory
in
= byte
QUESTION:
A string which
is assigned to
a string variable
is termination with
= null
QUESTION:
When an identifier
is declared with
the keyboard constant
then
=its value canot
be changed
QUESTION:
If stream is
used for-------------
=input file stream
QUESTION:
Which of
the following option
is correct about
array
=only one type
of elements can
be stored in an
array
QUESTION:
QUESTION:
In one dimensional
array we use ---------- ‘for
loops’ to populate
the array
=1
QUESTION:
The data
in memory is
=volatile
QUESTION:
In analysis we
try to have
a -------------
=precise
problem statement
QUESTION:
----------
returns true if
C is a
digit or a
letter and false
otherwise
=int is a |num(int
c)
DO SUB SCRIBE
MY YOUTUBE
CHANNEL VU KNOWLEDGE
FOR MORE
MIDTERMS MCQS SHORT
QUESTIONS LONG QUESTIONS
GDB ASSIGNMENTS QUIZES
FINAL TERM MCQS
SHORT QUESTIONS LONG
QUESTIONS AND MANY
MORE
QUESTION:
If stream is
used for --------
= input and
output file stream
QUESTION:
Pointers are a
special type of --------------- in
which a memory
addres is stored
=variable
QUESTION:
Learning ‘’how
to program’’ is
important because it
develops --------------and problem
solving abilities
= analytical
QUESTION:
In c++ which
of the following
option has the
correct meaning of expression ‘a<=b’’
= a is
less than or equal to b
QUESTION:
Which of the
following expression is
correct in C/C++
language
=
X=X+3
QUESTION:
Which of the
following c++ statement is
used to take
input from the
user
=cin
QUESTION:
The size
of int variable
is
=4 bytes
QUESTION:
If the
break statement is
missing in switch
statement then it
=cause
logical error
QUESTION:
Ifsteam infile;
refers
= object for reading
from a file
QUESTION:
Which of the
following c++ statement is
used to take
input from the
user
=cin
QUESTION:
If x=11 and x%=3 then value of x will be------
=3
QUESTION:
How can we
declared an array of characters
whose size is 12 with array name ‘country’
=char country [11]
QUESTION:
Acs code
of null character u
=000
QUESTION:
To
manipulate n-dimension array
:------nestea loops are required
= n
QUESTION:
What will be the size
of following array 24
=30
QUESTION:
Int k= 10;
Do[
Count<<’’
stantments<<endl;
K=2[while[k.0.];
=5
QUESTION:
Char name=’helloworld
‘’ In the above statement a memory of------- characters will be allocated
=11
QUESTION:
For breaking complex problems in to
smaller pieces we use -------
=loops
DO SUB SCRIBE
MY YOUTUBE
CHANNEL VU KNOWLEDGE
FOR MORE
MIDTERMS MCQS SHORT
QUESTIONS LONG QUESTIONS
GDB ASSIGNMENTS QUIZES
FINAL TERM MCQS
SHORT QUESTIONS LONG
QUESTIONS AND MANY
MORE
QUESTION:
When the break statements
encountered in a loop’s body if
transfer the control -------from the current
=outside
QUESTION:
In analysis we try to have a -------
=precise problembs statement
QUESTION:
How x is an teger
variable what does x++ means
=add 1 in value
QUESTION:
All elements of an array mus be of -------date typecsl
=same
QUESTION:
-----will be used for enclosing
function statements in to a block
= [ ]
QUESTION:
All the -----we try to break up the problems in to functional
units
= design phase
QUESTION:
Pointers are a special
type of ------ in which memory address is stored
=variable
QUESTION:
What is
the correct syntax to declare any 15 elements of type float
=float array [14]
QUESTION:
From the following
which one is the correct syntax of an arraty
declaration array size is 5 and
it is of float data type ?
=float name [5]
QUESTION:
----------------
characters is used
to indicate the
end of a string
= null
DO SUB SCRIBE
MY YOUTUBE
CHANNEL VU KNOWLEDGE
FOR MORE
MIDTERMS MCQS SHORT
QUESTIONS LONG QUESTIONS
GDB ASSIGNMENTS QUIZES
FINAL TERM MCQS
SHORT QUESTIONS LONG
QUESTIONS AND MANY
MORE
QUESTION:
In two
dimensional array we
use ------------- for
loops to populate
the array
= 2
QUESTION:
Function
prototype is written
as
= before
call of function
QUESTION:
Function Overloading Mean…
The
name of the function will Remain the same but its behavior may change.
The Name of the Function
will not remain same but its behavior will not be change.
Making a function inline.
Function Name can be
change.
DO SUB SCRIBE
MY YOUTUBE
CHANNEL VU KNOWLEDGE
FOR MORE
MIDTERMS MCQS SHORT
QUESTIONS LONG QUESTIONS
GDB ASSIGNMENTS QUIZES
FINAL TERM MCQS
SHORT QUESTIONS LONG
QUESTIONS AND MANY
MORE
.THE END.
0 Comments
Post a Comment