CS201 Mid Term Papers Fall 2019 (14~26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
CS201 All current and MidTerm Past Paper Download,
Share you’re MidTerm Term Papers (Questions/Pattern) & Past Papers as well here to help each other. Thanks
Following type of Document can comments in this discussion:
For Important Helping Material related to subject CS201 (Solved MCQs, solved past Papers, Short Notes, E-Books, FAQ, Short Questions Answers & more). You must view all the Discussion in this subject group.
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
Cs201 midterm 2019 fall dec 26
è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)?
Would the open() function create a new file and open it OR it will generate an error?
èDetermine the output of the given code segment.
int x = 2;
x += 1 ;
x += 2 ;
x +=3 ;
x += 4 ;
cout x ;
è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)
è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.
è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.