cs310-midterm-mcqs-with-reference-solved-by-arslan.pdf
Verified academic study resource for CS310 (Introduction to Programming (Python)) under the Computer Science at Virtual University of Pakistan. This PDF document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS310 – Introduction to Programming (Python)
- Faculty
- Computer Science
- Format
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MCQ, SOLVED, MIDTERM
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS310.
What this file covers — CS310 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download cs310-midterm-mcqs-with-reference-solved-by-arslan.pdf for free?
You can preview and download "cs310-midterm-mcqs-with-reference-solved-by-arslan.pdf" (CS310 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs310-midterm-mcqs-with-reference-solved-by-arslan-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS310 file?
This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS310 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS310 solved past papers and handouts verified for 2026 exams?
Yes. All CS310 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
CS310-Open Source Web Application Development
Solved MCQ(S) Oct
From Midterm Papers (1 TO 22 Lectures) 3,2017
BY Arslan
V-U For Updated Files Visit Our Site : Www.pakeducation4u.com Updated.
MidTerm Papers Solved MCQS with Reference (1 to 22 lectures)
1. Which of the following statement is used to execute some code if one of the several conditions is true?
o if statement
o if else statement
o if-elseif-else statement Reference PPT Slides
o None of the given
2. Which of the following statement is used when we want to perform some action if the condition is true and another
action if condition is false?
o if statement
o if else statement Reference PPT Slides
o if-elseif-else statement
o switch statement
3. For which value of variable $a, the condition of following if statement will be true? if($a > 10)
o $a = 0
o $a = 15
o $a = 5
o $a = 10
4. What will be the output of following code segment?
$n = 5 ;
if($n > 10)
echo "Number is greater than 10” ;
else
echo "Number is not greater than 10” ;
o Number is greater than 10
o Number is 5
o Number is not greater than 10
o No output will be displayed
5. Which of the following is the correct syntax of for loop in PHP?
o for($i=0; $i<5: $i++)
o for($i=0; $i<5; $i++) Reference PPT Slides
o for($i=0; $i<4, $i++)
o for($i=0; $i<4: $i++)
6. Consider the following code given below:
for($i=0; $i<4; $i++)
echo “i=$i”;
How many times the above loop will be executed?
o 2
o 3
o 4
o 5
7. If the exact iteration of loop is known then which of the following loop should be used?
o while loop
o do while loop
o for loop Reference PPT Slides
o foreach loop
8. Which of the following loop should be executed at least one time during the execution of loop?
o for loop
o foreach loop
o while loop
o do while loop Reference PPT Slides
9. PHP Stands for ________________.
o PHP Hypertext Preprocessor Reference PPT Slides
o Personal Hypertext Page
o Power Home Page
o Personal Hyper Preprocessor
10. PHP is ___________ to use.
o Free Reference PPT Slides
o Paid
o Adware
o None of the given options
11. With PHP we can _______________.
o Generate dynamic page content
o Collect form data
o Manage cookies
o All of the given options Reference PPT Slides
12. In PHP single line comments can be given using ______________.
o // Click here for more detail
o **
o $
o @
13. In PHP multiline comments can be given using __________________.
o /**/ Click here for more detail
o /# #/
o /^ ^/
o /@ @/
14. A PHP variable can have ___________ scope.
o local
o global
o static
o All of the given options Reference PPT Slides
PHP has three different variable scopes: local, global, static
15. A variable declared outside a function has ____________ scope.
o Local
o Global Reference PPT Slides
o Static
o None of the given options.
A variable declared outside a function has a GLOBAL SCOPE and can only be accessed outside a function:
16. In PHP Constants have ___________ scope.
o Local
o Global Reference PPT Slides
o Static
o None of the given options.
17. ________ is exponent operator in PHP
o ** Click here for more detail
o #
o $
o ^
18. ______________is logical AND operator in PHP.
o && Reference PPT Slides
o !!
o &
o **
19. ______________ is an increment operator in PHP.
o ++ Reference PPT Slides
o **
o ||
o ^^
20. In PHP, a variable starts with a ________________ sign followed by the name of variable.
o #
o $ Reference PPT Slides
o &
o @
21. In PHP which of the following statements takes all the text/code/markup that exists in the specified file and copies
it into the file in which this statement is used?
o Add File
o Include Reference PPT Slides
o Copy File
o Echo
22. What is the correct syntax of writing include statement in PHP from the followings?
o include 'filename'; Reference PPT Slides
o „filename‟ include;
o #Includes<>
o #Include{ }
23. The character that is used in format parameter string of date() function of PHP for representing a month is:
od
om Reference PPT Slides
oY
o1
24. In which of the following loop, first the body of loop is executed and then condition is checked?.
o for loop
o while loop
o do while loop Reference PPT Slides
o foreach loop
25. In PHP a session is started with the __________ function.
o session_start() Reference PPT Slides
o start_session#()
o start_PHP_session()
o #session_start_this()
26. In PHP Session variables are set with the PHP global variable ____________.
o ##_SESSION
o %_SESSION
o $_SESSION Reference PPT Slides
o @_SESSION
27. To destroy the session in PHP we use _____________.
o destroy();
o session_destroy(); Reference PPT Slides
o session_delete_this();
o session_destroy_current#();
28. In PHP ______________ is used to mark the end of statement.
o ; (Semicolon) Reference PPT Slides
o . (Dot)
o : (Colon)
o # (Hash)
Note: Give me a feedback and your Suggestion also If you find any mistake in mcqz plzMore CS310 files
- All Subjects Mid & Final 25000 Pdf Files.pdf (PDF · Final-Term)
- CS310 Mcq_s FinalTerm By Vu Topper RM.pdf (PDF · Final-Term)
- CS310_Final-2.pdf (PDF · Final-Term)
- Cs-310 Solved Mcq_s Final Term By Vu Topper RM.pdf (PDF · Final-Term)
- cs310 & cs311 final.rar (ARCHIVE · Final-Term)
- cs310 & cs311 final.rar (ARCHIVE · Final-Term)
- Cs310 Slides in PDF Format Pin✌️.pdf (PDF · Handout)