php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs201 introduction to programing midterm paper fall 2010
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Cs201 midterm papers by vuhelp can be downloaded in the form of .DOC and also in PDF. So enjoy and have fun. The attachments can be downloaded directly.
If want to solve these question students can discuss with us.

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


Compiler is a

► System software

► Application Software

► Driver

► Editor



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


If Num is an integer variable then Num++ means,

► Add 1 two times with Num

► Add 1 with Num

► Add 2 with Num

► Subtract 2 from Num



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


For one byte there are _____ combinations of values that can be stored in computer.


► 26

► 27

► 28

► 24



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


In C/C++ language the header file which is used to perform useful task and manipulation of character data is


► cplext.h

► ctype.h

► stdio.h

► delay.h



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


Default case in switch statement is,

► Must

► Optional

► syntax error

► Necessary



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


When break statement is encountered in switch statement, it

► Stops the entire program

► Stops the execution of current statement

► Exits from switch statement

► None of the given options



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


What will be the result of arithmetic expression 6+27/3*3?

► 33

► 45

► 9

► 30



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


What is the correct syntax to declare an array of size 10 of int data type?




► int [10] name ;


► name[10] int ;


► int name[10] ;

► int name[] ;



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


How many dimensions does n-dimensional array has?

► n dimensions

► 2n dimensions

► (n+1) dimensions

► (n-1) dimensions (Array starts from 0th element)



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


What will be the correct syntax to access the value of fourth element of an array using pointer ptr?


► ptr[3]

► (ptr+3)

► *(ptr+3)

► Both 1and 3



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


Which of the following values C++ use to represent true and false?

► 1 and 0

► 1 and -1

► 11 and 00

► Any numerical value



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


Declaring structures does not mean that memory is allocated.

► True

► False



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


For which array, the size of the array should be one more than the number of elements in an array?


► int

► double

► float

► char




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


If a variable is passed by value to a function and the function makes some changes to that variable then it



► does not affect the original variable

► affects the original variable

► causes syntax error

► None of the given options






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


In C/C++ the #include is called,

► Header file

► Preprocessor Directive

► Statement

► Function



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


Loops are ------------------------ Structure.

► Decision

► Repetition

► Sequential

► Hierarchical



Question No: 17 ( Marks: 2 )


Which variable will be used in inner code block if we have the same names of variable at outer code block and inner code block?



Question No: 18 ( Marks: 2 )


Give one major use of pointer.


Question No: 19 ( Marks: 2 )


Which standard library is included when your program reads from, or writes to, files?



Question No: 20 ( Marks: 3 )


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


Question No: 21 ( Marks: 3 )


What is difference between variable and pointer?



Question No: 22 ( Marks: 5 )


Write a C/C++ program which defines an array of 10 elements.
This program should ask a number from the user and search this number in the array if the number exists in the array, it should display the location of the number otherwise display the message The number is not in the given array.




Question No: 23 ( Marks: 5 )


Write a C/C++ program which defines an array of 15 elements and fill the array with string "12players2teams".
This program should display that how many digits and alphabets the string "12players2teams" contains using Character handling functions.

Sample output of program:

Number of digits in string "12players2teams": 3
Number of alphabets in string "12players2teams": 12


Attached Files
.doc   CS 201 MID TERM.doc (Size: 110.5 KB / Downloads: 605)
.doc   SPRING2010_MidTerm_OPKST_CS201.doc (Size: 64 KB / Downloads: 269)
.doc   CS601_01_MID_Spring2009-2.doc (Size: 82 KB / Downloads: 289)
.doc   Fall+2009_MidTerm_Cs201.doc (Size: 65.08 KB / Downloads: 362)
.doc   FallMY OWN.doc (Size: 59 KB / Downloads: 357)
.doc   CS601_01_MID_Spring2009-3.doc (Size: 90.5 KB / Downloads: 315)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs301 final term current paper July 2011 Vuhelper 0 4,378 07-09-2011, 10:40 PM
Last Post: Vuhelper
  cs101 final term solve paper july 2011 Vuhelper 0 3,928 07-09-2011, 07:18 PM
Last Post: Vuhelper
  CS101- Introduction to Computing final term New paper July 2011 Vuhelper 0 3,591 07-09-2011, 07:04 PM
Last Post: Vuhelper
  CS101- Introduction to Computing final term paper July 2011 Vuhelper 0 3,551 07-09-2011, 07:02 PM
Last Post: Vuhelper
  CS101 Final term paper 2011 Subjective solved New Vuhelper 0 6,041 07-09-2011, 06:55 PM
Last Post: Vuhelper
  ACC501 Final Term July 2011 paper subjective Vuhelper 0 3,999 07-09-2011, 06:50 PM
Last Post: Vuhelper
  MTH202 Discrete Mathematics Spring 2009 Final Term Paper viki 3 4,645 05-24-2011, 04:16 AM
Last Post: Vuhelper
  cs408 midterm paper and mcq's Xpert 1 8,064 05-15-2011, 05:49 PM
Last Post: snqaisar313
  MGT502 Organizational Behaviour MIDTERM EXAMINATION Spring 2011 Vuhelper 0 6,171 05-11-2011, 02:35 AM
Last Post: Vuhelper
  PAK 301 Pakistan Studies MidTERM EXAM 2011 Vuhelper 0 5,109 05-11-2011, 02:23 AM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support