Skip to content
VUBuddy

CS201 Midterm Subjective 2010-2019

Introduction to Programming PDF 258 KBUpdated 23 Oct 2026
Midterm past paper CS201 Midterm Subjective 2010-2019 PDF 258 KB
vubuddy.com
Type
Midterm past paper
Course
CS201 Introduction to Programming
Size
PDF 258 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 258 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 17. Download the file for all 17 pages.

UNSOLVED CS201 MIDTERM SUBJECTIVE QUESTIONS 2010 TO 2019

  1. Loops iterations.
  2. Functions calling techniques.
  3. Diagonal of matrix [N] [N].
  4. Arithmetic solutions to check order.
  5. Diagonal and quotient questions

Dec 17, 2019

Q1. Why program is evaluated? Two techniques of evaluation?

  1. Write three type of system software
  2. How system software control all the.....
  3. 2 programs were given ... Weight in kg convert it in pound and one more
  4. One question was from Array
  5. Errors Puchay Thy Aur kuch ki Output Show Karna thi

Q7. Write the functionality of following function: strcpy & strncpy (3 marks)

Q8. Using not operator write the output: true? False? (3 marks)

Q9. Write a program of 4 digits which gives the first and last digit : (5 marks)

Q10. Code given tha error find krny thy : (5 marks)

Q11. Program likhna tha : (5 marks)

  1. Program for class
  2. Write program to copy one array into another array and array of 5 elements
  3. Find errors in the given code
  4. Calloc and Malloc function
  5. Write program for constructor
  6. Difference between default and parameterized constructors.
  7. Use three variable to expose the dec, hex, and Oct.
  8. Write c++ programs with three variable salary, no. Of days and rate and salary account by the formula Salary= no. days*rate. Take out of no of days with the daily rate of 1000 per day.
  9. write c++ program with 2 variable (i) Calculate rows and columns (ii) Calculate transpose of matrix
  10. Function of default function
  11. If you agree prototype of ordinary function and special function of a class are same. Justify with comment.
  12. define output for given code (loop).
  13. Write salary program to calculate tax using switch statement.
  14. Use pointer to reverse the order of array.
  15. Show output for following code (strcpy, strcat) ke functions thay code main
  16. Output of the following code for loop
  17. Main () function ka procedure aya tha
  18. System software ki types or work
  19. Program 15 array change uppercase latter to lowercase latter and lowercase latter to uppercase latter aya tha
  20. 2 part thy wrong code ki identification krni the

Cin<< count: If x<y Int x; Else Int y;

Q32. What happens if the file 'myfile.txt' does not exist and we still try to open it using the function file. Open (“myfile.txt”, ios: out)?

Q33. Would the open () function create a new file and open it OR it will generate an error?

  1. Determine the output of the given code segment.

Int x = 2; Switch(x){ Case 1: X += 1; Break; Case 2: X += 2; Case 3: X +=3; Break; Case 4: X += 4; Break;

Cout x;

  1. Transform the following If-else statement into switch statement.

If (x == 5) Else if (x == 10 || x == 11) Else if (x == 8) Else if (x == 9) Else

  1. Write a C++ program which calculates the Net price of a book and displays it on the screen. The Net price of book can be calculated by the following formula:

Net price = Retail Price + Sales Tax + Income Tax Retail Price, Sale Tax and Income Tax are taken as input from the user.

  1. write a program which opens a file named "writefile.txt" and moves the file pointer 100 characters forward starting from the beginning of the file and then writes the message " Reached at position 101" at the new position in the file.

Dec 26, 2019

All statements like for loop, arrays, pointers, functions and file handling starting from lec no 17 onward, these are very imp topics for paper Jun 23, 2019

  1. Write the code of the following arrays; (i) Float array length 8 (ii) Float array length 8 to pointer
  2. Find the error in the following. Marks (3)

If(number/2==0) Cout" The number is even:"; Else() Cout" The number is odd:"; Getch();

  1. Write a program in C++ to calculate the Average Price of the book. Calculations given the. Inputs ly kr display krwana tha.
  2. Give the output of the following

Int It=1 nt=o s;

If(nt<number/2)

Coutit"\t"; S=nt+It Nt=It S=It

  1. Write a code to find the product. Product= number *2^5. Input ly kr output show krwani the. Jun 23, 2018
  2. Comments ka long sawal tha
  3. Programming Questions
  4. Software ka function pa kia asar hota
  5. Long Array Wala topic acha sy KR lena (Array main sy Program aye thy)
  6. F stream function ka program write krna tha
  7. Questions error find krny thy
  8. Voding m sy flie stream wala question tha [Marks 5]
  9. Lines hight light ki hui thin un ka batana tha k ye line ka is coding m kia kaam hy
  10. Array ka aik question tha add () name sy aik function bnana tha jis m 2 integer leny thy or un ka sum lena tha or result show krwana tha [Marks= 3]
  11. General syntax of switch statement
  12. Applications software’s with examples
  13. Output of program having arrays
  14. To write a program arrays of 10 elements. Sorting. Find minimum and maximum number Jun 23, 2018
  15. Write down the output of the code given below :

Hint: Size of char is 1 byte Size of int is 2 byte Size of float is 4 byte

union mytypes_t { char c; int i; float f; } mytypes;

All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.