Home › Forums › Subject-wise Discussion › CS201 – Introduction to Programming
Tagged: Assignments, CS201, final term, GDB, Introduction to Programming, Midterm, quiz
- This topic has 6 replies, 1 voice, and was last updated 6 months, 3 weeks ago by Prof Shoaib.
-
AuthorPosts
-
May 29, 2024 at 5:34 am #927Prof ShoaibKeymaster
This is the platform for helping other subject fellows, you can discuss your midterm and final term papers. And also you are welcome to share all problems related to CS201.
“Sharing is Caring”.
May 30, 2024 at 6:06 am #1171Prof ShoaibKeymasterCS201 Midterm Paper 30-05-2024
90% of the mcqs are from the past papers
Short questions
TWAIN stand for and purpose
2 questions of finding output of program
2 Long questions of making program
And one long question of identifying which one is utility software, application software and device driver.May 30, 2024 at 6:08 am #1172Prof ShoaibKeymasterCs201 Midterm Paper 30-05-24 08:00 AM
MCQS
% operator is in which type of operator
Pointer sy related 2 MCQs thy
Array mein sy 1 tha
String mein sy bhi
Sary MCQs in the form of statement thy koi bhi code ni tha bht simple sy MCQs thy mostly files mein sy thy
S. Qs
1) 2 algebraic expression diye huye thy unhee C language mein likhna tha
1 ax^2+by^2+cz^2
2 ab^3/a^2+ab^2x+ab^2cx2) if else statement ko switch statement mein change krna tha
3) array ka chota tha program tha us ki output likhni thi
Long Qs
1) write the program to find the length and width of the rectangle and also find perimeter of the rectangle
2) Give a program that user can write name in output and store it in the file naming “myName. file” and also check that the file opens or notMay 30, 2024 at 6:09 am #1173Prof ShoaibKeymasterCS201 Midterm 30-05-2024
1. Aik 5 marks ka question Aya “Find the length and width of the rectangle, prompt theit values from user. And then calculate the perimeter of the rectangle.
(Hint: perimeter of the rectangle= 2*(length+ width)
2. Aik 3 ya 5 ka marks ka question tha exact nhi yad. Write a string that prompts from user “This is my Pakistan”. Then if the user enters “my” for search then it will display “String ….” And if this is not true then it will display “String not found”.
3. Aik aur question hai 3 or 5 marks ka. Ke aik code likhy Jo integer data ho and array se bana ho aur aur phir us ke first element display krna hai. And Jo print krny Hain values wo Hain 1,2,3,4,5,6.June 1, 2024 at 8:32 am #1199Prof ShoaibKeymasterCS201 Midterm 01/06/24
MCQs statments thi mostly
Pointers ma se 3 4
Output thi simple but junaid ki files se boht km aye the
5 marks ki 1st lecture ki tips
How to write effective code
Integer pointer banana tha variable. X ka
Aur 5 marks ka CovertInSeconds function define krna thaJune 1, 2024 at 8:36 am #1200Prof ShoaibKeymasterCS201 Midterm
Vu Knowledge aur World of education Youtube channel hai unki files sy kafi Mcqs ay huay thay about 10 . Aik for loop tha screen py frst 5 nmbers show krnay thay, dusra simple tha k sum show krain 5 nmbers ka teesra pointers wala tha srf pointer address show krwana tha. Aik short qs tha k algebric expression i.e. x square ko kaisy likhain gy C++ main aur aik yai tha k Y or y ko C++ mai as logical operation kaisy likhtay hain.June 3, 2024 at 2:49 pm #1271Prof ShoaibKeymaster*CS201 Midterm Spring 2024*
*OBJECTIVE:* _world of education ki MCQS wali vds se 50% se ziyada MCQS aye thy_
_MCQS easy thy definitions m se, syntax thy, function ka use pocha howa tha._*SUBJECTIVE:*
*short:* _2 questions m just output likhni thi, 1 full program_
*long:* _1 ki output likhna thi, 1 program diya tha uski statement thi lkn program m se kuch lines_ _gyb thin wo likhna thi, 1 full program tha user se output lena tha or calculate kr k display krwana_ _tha formula bhi given tha_*strcopy strlen string se related bht questions aye thy subjective main mostly yehi thy*
-
AuthorPosts
- You must be logged in to reply to this topic.