Attempt all questions. Correct answers are highlighted in yellow.
1.How to check the number of elements inside the HTML form using JavaScript?
a)
document.form.elements.count
b)
document.form.elements.length
â Correct Answer
c)
document.form.count
d)
document.form.length
đĄ Complete Solution & Explanation:
The elements.length property returns the number of form elements contained in an HTML form, accessed through document.form.elements.length.
2.Which of the following is not a loop in JavaScript?
a)
for
b)
while
c)
foreach
d)
forwhile
â Correct Answer
đĄ Complete Solution & Explanation:
JavaScript supports for, while, and foreach loops, but forwhile is not a valid loop construct in JavaScript.
3.In JavaScript, what do we use for calling the expression for function definition?
a)
Function calling
b)
Function prototype
c)
Function literal
d)
Function declaration
â Correct Answer
đĄ Complete Solution & Explanation:
Function declaration is the syntax used to define a named function in JavaScript using the function keyword followed by the function name.
4.Which object is the main entry point to all client-side JavaScript features and APIs?
a)
Standard
b)
Location
c)
Window
â Correct Answer
d)
position
đĄ Complete Solution & Explanation:
The Window object represents the browser window and serves as the global object for all client-side JavaScript, providing access to all browser features and APIs.
6.Which PHP function offers to send raw arbitrary HTTP headers?
a)
setcookie()
b)
header()
â Correct Answer
c)
sethâeader()
d)
All of them
đĄ Complete Solution & Explanation:
The header() function in PHP is used to send raw HTTP headers to the client, allowing control over content type, redirects, and other HTTP responses.
7.Which one of the following functions is used to search a string in PHP?
a)
pregmâatch
â Correct Answer
b)
regmâatch
c)
pregsâearch
d)
regtâest
đĄ Complete Solution & Explanation:
preg_match() is a PHP function that performs regular expression pattern matching on strings, returning true if a match is found.
8.Which property holds the status of the XMLHttpRequest?
a)
State
b)
readyState
â Correct Answer
c)
pause State
d)
httpState
đĄ Complete Solution & Explanation:
The readyState property of XMLHttpRequest indicates the current state of the request, with values ranging from 0 (unsent) to 4 (complete).
9.How can you add custom CSS to a WordPress site?
a)
In the "Theme" setting
â Correct Answer
b)
In the "Menu" section
c)
In the "Style" settings
d)
None of the above
đĄ Complete Solution & Explanation:
Custom CSS can be added in WordPress through the Theme settings, typically found in Appearance > Customize > Additional CSS or Theme settings.
10....... magic method is triggered when invoking inaccessible or non-existent methods of an object.
a)
__call()
â Correct Answer
b)
__get()
c)
__construct()
d)
toString()
đĄ Complete Solution & Explanation:
The __call() magic method in PHP is automatically invoked when calling inaccessible or undefined methods on an object, allowing dynamic method handling.
11.Which of the following refers to internal software quality?
a)
Scalability
b)
Reusability
â Correct Answer
c)
Reliability
d)
Usability
đĄ Complete Solution & Explanation:
Reusability is an internal quality attribute that measures how well software components can be reused in other contexts, improving development efficiency.
12.Which of the following threatens the quality and timeliness of the produced software?
a)
Technical risks
â Correct Answer
b)
Potential risks
c)
Business risks
d)
Known risks
đĄ Complete Solution & Explanation:
Technical risks include design flaws, implementation challenges, and technology issues that directly threaten software quality and project timelines.
13.Attributes of good software is..........
a)
Maintainability and functionality
â Correct Answer
b)
Functionality
c)
Maintainability
d)
Development
đĄ Complete Solution & Explanation:
Good software must possess both maintainability (ease of modification and updates) and functionality (meeting user requirements), making both attributes essential.
14.............. is a software development life cycle model that is chosen if the development team has less experience on similar projects.
a)
Spiral
â Correct Answer
b)
Waterfall
c)
RAD
d)
Iterative Enhancement
đĄ Complete Solution & Explanation:
The Spiral model incorporates risk analysis and iterative prototyping, making it suitable for projects where teams have less experience and need to manage uncertainty.
15.Which of the following word correctly summarizes the importance of software design?
a)
Quality
â Correct Answer
b)
Complexity
c)
Efficiency
d)
Accuracy
đĄ Complete Solution & Explanation:
Software design is fundamentally about ensuring quality, as good design practices lead to maintainable, reliable, and functional software systems.
16.What is the first step in the Software Development Life Cycle (SDLC)?
a)
System Design
b)
Coding
c)
System Testing
d)
Preliminary Investigation and Analysis
â Correct Answer
đĄ Complete Solution & Explanation:
The SDLC begins with preliminary investigation and analysis to understand the problem, determine feasibility, and gather initial requirements before proceeding to design.
17.What does a directed arrow or line signify?
a)
Data Flow
â Correct Answer
b)
Data Process
c)
Data Stores
d)
None of the above
đĄ Complete Solution & Explanation:
In data flow diagrams (DFD), directed arrows represent data flow, showing the movement of data between processes, data stores, and external entities.
18.Once the requirements are stabilized, the basic architecture of the software can be established. Which version of the COCOMO model conforms to this statement?
a)
Post-Architecture Stage Model
b)
Application Composition Model
c)
Early Design Stage Model
â Correct Answer
d)
All of the above
đĄ Complete Solution & Explanation:
The Early Design Stage Model of COCOMO II is used when basic architecture is established after requirements stabilization but before detailed design.
19.Which document is created by system analyst after the requirements are collected from stakeholders?
a)
Requirement Gathering
b)
Software requirement specifications
â Correct Answer
c)
Software requirement validation
d)
Feasibility study
đĄ Complete Solution & Explanation:
Software Requirement Specification (SRS) document is created by system analysts to formally document all gathered requirements in a structured, detailed format.
20.Which is focused towards the goal of the organization?
a)
Software requirement specification
b)
Feasibility study
â Correct Answer
c)
Requirement gathering
d)
Software requirement validation
đĄ Complete Solution & Explanation:
Feasibility study evaluates whether a project aligns with organizational goals, assessing technical, operational, and economic viability before committing resources.
đ Upgrade to Elite Pass
Instant PDF downloads, AI Exam Predictor, unlimited MCQ practice & zero ads.