Q: 1 Which of the following is not required for an XML document to be well-formed?
All XML documents have to be validated against a DTD
All XML tags are case-sensitive
All XML elements must be properly nested
All XML elements must have a closing tag
[ Option A ]
A well-formed XML document follows basic syntax rules, but it does not require validation against a DTD (Document Type Definition). Validation is optional and is needed only for a valid XML document, not just a well-formed one.
Rules for a well-formed XML:
Q: 2 The small unit of Raster Graphics is called:
Paths
Pitches
Pixels
Pallet
[ Option C ]
Raster Graphics are made up of tiny small units called Pixels. A pixel is the smallest individual point or dot in a digital image.
Each pixel stores color and brightness information. When many pixels combine together, they form a complete image.
For example, a resolution of 1920×1080 means the image contains 1920 columns and 1080 rows of pixels.
Q: 3 The small unit of Vector Graphics is called:
Pitches
Paths
Pixels
Pallet
[ Option B ]
Vector Graphics are created using mathematical lines, curves, and shapes called Paths. These paths are defined by points, directions, and formulas instead of pixels.
Because vector graphics use paths, they can be resized without losing image quality.
Vector graphics are commonly used for designing logos, icons, and technical drawings because they can be resized without losing image quality.
Q: 4 Which of the following Xpath expression selects the attribute?
@
&
%
$
[ Option A ]
In XPath, the @ symbol is specifically used to select attributes of an element rather than the element itself. Attributes provide additional information about elements and are accessed differently from child nodes.
For example, given the XML element <student id="101" name="Suresh"/>, the XPath expression /student/@id is used to select the id attribute of the student element, which returns the value 101.
| Symbol | Purpose |
|---|---|
| @ | Select attribute. |
| / | Select root/child nodes. |
| // | Select nodes anywhere. |
| * | Select all elements. |
Q: 5 In RSS feeds, RSS stands for
Really Synchronous Syndication
Rational Synchronous Service
Really Simple Syndication
Rational Simple Syndication
[ Option C ]
RSS is a Web Technology used to distribute and update content automatically from websites such as blogs, news portals, and podcasts. It allows users to receive updates without visiting each website manually.
The RSS stands for "Really Simple Syndication," which captures how straightforward it is to syndicate (distribute) content across the web.
Q: 6 Information from web page stored in server side is called _________.
Cookies
Session
Servlet
Credentials
[ Option B ]
In web applications, user-related information can be stored either on the client side or the server side.
A session is a server-side storage mechanism used to store user data temporarily while the user interacts with a website. The data is stored on the server and is associated with a unique Session ID.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.