KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KING'S IT WORLD


 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
2010 - CS201 2010 Icon_minitimeMon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
2010 - CS201 2010 Icon_minitimeWed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
2010 - CS201 2010 Icon_minitimeMon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
2010 - CS201 2010 Icon_minitimeThu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
2010 - CS201 2010 Icon_minitimeThu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
2010 - CS201 2010 Icon_minitimeTue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
2010 - CS201 2010 Icon_minitimeThu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
2010 - CS201 2010 Icon_minitimeFri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
2010 - CS201 2010 Icon_minitimeThu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
2010 - CS201 2010 Icon_minitimeThu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
2010 - CS201 2010 Image
Powered by website analytics technology.
Keywords
MGT502 assignment 2011 paper final HRM611 MGMT611 term 2010
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

 

 CS201 2010

Go down 
AuthorMessage
Admin
Admin
Admin


Scorpio
Posts : 638
Points : 2155
Reputation : 19
Join date : 2010-05-15
Age : 36
Location : islamabad

2010 - CS201 2010 Empty
PostSubject: CS201 2010   2010 - CS201 2010 Icon_minitimeSun May 30, 2010 11:02 pm

MIDTERM
EXAMINATION



Spring 2010


CS201- Introduction to Programming





Question
No: 1 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





C language is developed by





Bill
Gates






Robert
Lafore






Dennis
Ritchie






Deitel
& Deitel













Question
No: 2 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Which of the following choice
is not an example of an int datatype?






0





-32





65531





-4.0












Question
No: 3 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





In flow chart, the symbol used for decision
making is,






Rectangle





Circle





Arrow





Diamond












Question
No: 4 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Switch statement deals with,





Integer
data only






float
data only






character
data only






Integer
and character data













Question
No: 5 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Default case in switch statement is,





Must






Optional





syntax
error






Necessary












Question
No: 6 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





*.doc
is _____________ by type.



.








Sequential File








Random Access File








Data File








Record File


















Question
No: 7 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Member
function tellg() returns the current location of the ­­_____________ pointer.






tellptr()








write()








seekg()








get()


















Question
No: 8 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Dealing with structures and functions
passing by reference is the most
economical method









True





False












Question
No: 9 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





In C/C++ all character strings are terminated
with,






Null
character






String






Zero






Full
stop













Question
No: 10 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Word
processor is









Operating
system






Application
software






Device
driver






Utility
software













Question
No: 11 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Which of the following can
not be a variable name?






area





_area





10area





area2












Question
No: 12 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Which looping process is
best, when the number of iterations is known?






for





while





do-while





all
looping processes require that the iterations be known













Question
No: 13 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





By
default an array of characters is passed by value to a function,









True





False












Question
No: 14 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





Which
of the following operator is used to access the address of a variable?












* operator








-> operator








&& operator





& operator












Question
No: 15 ( Marks: 1 ) - Please choose
one



[You must be registered and logged in to see this image.]





The
name of an array represents address of first location of array element.









True





False












Question
No: 16 ( Marks: 1 ) - Please choose one



[You must be registered and logged in to see this image.]





Let suppose





Union intorDouble{


Int ival;


Double charvar;


};





main(){


intorDouble VAZ;


int size ;


size = sizeof(VAZ);


}





What will be the value
of variable "size", if int occupies 4 bytes and double occupies 8
bytes?









2





4





8





12












Question
No: 17 ( Marks: 2 )



[You must be registered and logged in to see this image.]





What
is the difference between for loop and while loop?












Question
No: 18 ( Marks: 2 )



[You must be registered and logged in to see this image.]





Consider
the structure






struct
Customer



{


int custnum;


int salary;


float commission;


};





A
programmer wants to assign 2000 for the structure member
salary in the above example of structure Customer with structure variable cust1 What line of code
should he write












Question
No: 19 ( Marks: 2 )



[You must be registered and logged in to see this image.]





When
a pointer is incremented then how many bytes will it move to change its
address?












Question
No: 20 ( Marks: 3 )



[You must be registered and logged in to see this image.]





If
there are 2
n elements in an array
then what would be the number of iterations required to search a number using
binary search and linear search?












Question
No: 21 ( Marks: 3 )



[You must be registered and logged in to see this image.]





Perform
left shift operation on a binary number 0101 and write the result in binary and
decimal.












Question
No: 22 ( Marks: 5 )



[You must be registered and logged in to see this image.]





What
will be the output of following code segment?



void
func(int [], int);



main(){


int
arr[5] = {2, 3, 5, 6, 7} ;



func(arr,
5) ;






for
(int i = 0; i<5; i++)



cout
<< arr[i] << “ ”;



}


void
func(int a[], int size){



for
(int i = 0; i



a[i]
= 2*a[i];



}











Question
No: 23 ( Marks: 5 )



[You must be registered and logged in to see this image.]





What
is random access file and how data can be read and write into random access
file?
Back to top Go down
 
CS201 2010
Back to top 
Page 1 of 1
 Similar topics
-
» CS201 TODAY PAPER 2010
» CS201 FINALTERM PAPER 2010
» FIN621 2010
» MGT101 2010
» CS504 2010

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: PAPERS :: MIDTERM MAY 2010 LATEST PAPERS-
Jump to: