CS506 Mid Term MCQs Lect. 01 - Lect. 22.pdf
Verified academic study resource for CS506 (Enterprise Application Development) 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
- CS506 – Enterprise Application Development
- Faculty
- Computer Science
- Format
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- MCQ, 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 CS506.
What this file covers — CS506 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 CS506 Mid Term MCQs Lect. 01 - Lect. 22.pdf for free?
You can preview and download "CS506 Mid Term MCQs Lect. 01 - Lect. 22.pdf" (CS506 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs506-mid-term-mcqs-lect-01-lect-22-pdf) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS506 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 CS506 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 CS506 solved past papers and handouts verified for 2026 exams?
Yes. All CS506 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
CS506-WEB DESIGN AND DEVELOPMENT
MID TERM MCQS
LECT. 01 – LECT. 22
1) Java is a _______ language.
A) Complicated
B) Not portable
C) Static
D) Multi threaded
Answer:
D) Multi threaded
Reference:
Lecture#01, Page#04
Java is a simple, object-oriented, distributed, interpreted, robust, secure, architecture-neutral, portable,
high-performance, multithreaded, and dynamic language.
2) Java developed in ______.
A) 1990
B) 1995
C) 1997
D) 2000
Answer:
B) 1995
Reference:
Lecture#01, Page#04
3) ________________ is/are not part of java core language.
A) ArrayList class
B) Variables
C) Arrays
D) Objects
Answer:
A) ArrayList class
Reference:
Lecture#01, Page#04
4) Java provide ___________.
A) Overloading
B) Overriding
C) Pointers
D) Multiple Inheritance
Answer:
B) Overriding
Reference:
Lecture#01, Page#04, 05
The core language is simpler than C++ -- no operator overloading, no pointers, and no multiple inheritance
Page 1 of 62
5) Which feature of the following features does Java provide?
A) Function Overriding
B) Operator Overloading
C) Pointers
D) Multiple Inheritance
Answer:
A) Function Overriding
Reference:
Lecture#01, Page#04-07
6) To make sure array accesses touch only the memory allocated to them, JVM does ________ checking at runtime.
A) dynamic
B) static
Answer:
A) dynamic
Reference:
Lecture#01, Page#05
7) Java language has a little worse performance than C++ language, because ________.
A) it uses built in libraries
B) it is object oriented
C) it checks all errors, malicious and viruses
D) it does not use pointers
Answer:
D) it does not use pointers
Reference:
Lecture#01, Page#05
8) Which of the following features provides the facility for multiple inheritance?
A) Wrapper classes
B) Interfaces
C) Collections
D) Adapter classes
Answer:
B) Interfaces
Reference:
Lecture#01, Page#05
9) To make sure array accesses touch only the memory allocated to them, JVM does _______ checking at runtime.
A) consistent
B) static
C) dynamic
D) not
Answer:
Page 2 of 62
C) dynamic
Reference:
Lecture#01, Page#05
10) Java core language is _______ than C++.
A) Less secure
B) Difficult
C) Simpler
D) Complex
Answer:
C) Simpler
Reference:
Lecture#01, Page#05
11) All java files in a directory are compiled using __________ command in command prompt.
A) javac*.java
B) javac all
C) java *.java
D) javac all.java
Answer:
A) javac*.java
Reference:
Lecture#01, Page#06
12) Java compiler is called _________, on UNIX or windows.
A) javac
B) java c
C) cjava
D) c java
Answer:
A) javac
Reference:
Lecture#01, Page#06
13) Which of the following command is used to compile Java code?
A) java filename
B) javac filename.java
C) javac filename
D) java filename.java
Answer:
B) javac filename.java
Reference:
Lecture#01, Page#06
14) For each class contained in java source file, compiler generates _________ class file/s.
Page 3 of 62
A) one
B) two
C) three
D) four
Answer:
A) one
Reference:
Lecture#02, Page#08
15) Java program code is compiled into a form called ____________.
A) Machine Code
B) Native Code
C) Byte Codes
D) Source Code
Answer:
C) Byte Codes
Reference:
Lecture#02, Page#08
16) Bytecodes are created and stored on disk by __________.
A) class loader
B) editor
C) bytecode verifier
D) compiler
Answer:
D) compiler
Reference:
Lecture#02, Page#08
17) Bytecodes are put in memory by ____________.
A) editor
B) compiler
C) class loader
D) bytecode verifier
Answer:
B) compiler
Reference:
Lecture#02, Page#08
18) ____________ understands the byte code?
A) Java Virtual Machine
B) Java Interpreter
C) Operating system
D) Java compiler
Answer:
A) Java Virtual Machine
Reference:
Lecture#02, Page#08
Page 4 of 62
19) Java program code is compiled into form called _______.
A) Machine code
B) native Code
C) Byte Code
D) Source Code
Answer:
C) Byte Code
Reference:
Lecture#02, Page#08
20) In Editor java programs are created, while they are stored on/in _________.
A) disk
B) primary memory
C) external file
D) usb
Answer:
A) disk
Reference:
Lecture#02, Page#11
21) It is verified by __________ that not all bytecodes violate java security restrictions.
A) editor
B) bytecode verifier
C) class loader
D) compiler
Answer:
B) bytecode verifier
Reference:
Lecture#02, Page#12
22) Which of these are valid declarations for the main method?
A) public void main();
B) public static void main(String arg[]);
C) static public void main(String);
D) public static int main(String args[]);
Answer:
B) public static void main(String arg[]);
Reference:
Lecture#02, Page#17
23) == operator compares ________ of strings whereas equals() method compares ______ of strings.
A) Values, addresses
B) Addresses, values
C) Size, addresses
D) Addresses, size
Page 5 of 62
Answer:
B) Addresses, values
Reference:
Lecture#03, Page#19
24) Which of the following operator is used to concatenate strings?
A) +=
B) +
C) ++
D) +-
Answer:
B) +
Reference:
Lecture#03, Page#19
25) To compare the values of two strings, ________ must be used.
A) = operator
B) == operator
C) equals() method
D) compare() method
Answer:
C) equals() method
Reference:
Lecture#03, Page#19
26) What will be the result of following statement?
System.out.println(6+3);
A) 63
B) 6+3
C) 9
D) Syntax error
Answer:
C) 9
Reference:
Lecture#03, Page#19
27) The given line of code will result in _________.
System.out.printIn(5+9);
A) 59
B) Syntax error
C) 5+9
D) 14
Answer:
D) 14
Reference:
Lecture#03, Page#19 (Conceptual)
Page 6 of 62
More CS506 files
- CS506 MIDTERM FILE 1 SOLVED BY TEAM HADI (1).pdf (PDF · Midterm)
- CS506 MIDTERM FILE 1 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS506 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS506 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS506 MIDTERM FILE 2 SOLVED BY TEAM HADI (1).pdf (PDF · Midterm)
- CS506 MIDTERM FILE 2 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS506 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS506 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)