138
81.9k
Chapter:

30+ XML Solved MCQs

in Advanced Web Technologies

These multiple-choice questions (MCQs) are designed to enhance your knowledge and understanding in the following areas: Bachelor of Computer Applications (BCA) , Bachelor of Business Administration in Computer Applications (BBA [CA]) .

Chapters

Chapter: XML
1.

XML is used to data.

A. design
B. store
C. delete
D. none of these
Answer» B. store
2.

XML tags are predefined -----------

A. true
B. false
C. not know
D. both true and false
Answer» B. false
3.

Xml separate the data from presentation

A. true
B. false
C. not know
D. both true and false
Answer» A. true
4.

Xml document are formed by trees

A. structure
B. element
C. Attribute
D. html
Answer» B. element
5.

An XML tree start at root element and end at its child elements,

A. true
B. false
C. not know
D. both true and false
Answer» A. true
6.

We can create our own tags in Xml , but it must properly defined and end.

A. true
B. false
C. not know
D. both true and false
Answer» A. true
7.

An XML element can contain ___

A. text elements attribute
B. only attribute
C. element
D. none of these
Answer» A. text elements attribute
8.

________ define the properties and method for accessing and editing xml & html document

A. Xml_DOM
B. XML-Persor
C. HTMl
D. none of these
Answer» A. Xml_DOM
9.

Xml is use to separate the_____ form design.

A. Data
B. table
C. file
D. none of these
Answer» A. Data
10.

CSS is use to separate data from _____.

A. tag
B. data
C. file
D. table
Answer» A. tag
11.

The _______ defines a standard way for accessing and manipulating HTML documents. It presents an HTML document as a tree-structure.

A. HTML DOM
B. CSS
C. XML
D. Form
Answer» A. HTML DOM
12.

__________ is used to display data and focuses on how data looks.

A. HTML
B. xml
C. css
D. none of these
Answer» A. HTML
13.

_________ is a software and hardware independent tool used to transport and store data. It focuses on what data is.

A. XML
B. HTML
C. CSS
D. none of these
Answer» A. XML
14.

XML is neither a presentation language nor a programming language.

A. true
B. false
C. both
D. none of these
Answer» A. true
15.

In XML we can define/create the tags according to your need.

A. true
B. false
C. both
D. none of these
Answer» A. true
16.

______is designed to read the XML and create a way for programs to use XML.

A. XML PERSOR
B. CSS
C. XML-TREE
D. None of these
Answer» A. XML PERSOR
17.

An_________starts at a root element and branches from the root to child elements.

A. XML PERSOR
B. CSS
C. XML-TREE
D. None of these
Answer» C. XML-TREE
18.

The abs() function returns the absolute (positive) value of a number:

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
19.

the sqrt() function returns the square root of a number:

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
20.

The round() function rounds a floating-point number to its nearest integer:

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
21.

The rand() function generates a random number:

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
22.

________ is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.

A. PHP
B. java script
C. Angular js
D. none of these
Answer» A. PHP
23.

_______ is a object oriented programming language , it is used to create the object…

A. PHP
B. java script
C. Angular js
D. none of these
Answer» A. PHP
24.

A ________ script can be placed anywhere in the document.

A. PHP
B. java script c
C. Angular js
D. none of these
Answer» A. PHP
25.

The default file extension for PHP files is _________

A. .PHP
B. .js
C. .Ajs
D. none of these
Answer» A. .PHP
26.

__________ is used to show the out put …or give message..same as printf in c language…

A. Echo
B. java script
C. Angular js
D. none of these
Answer» A. Echo
27.

A PHP script starts with <?php and ends with ?>: <?php // PHP code goes here ?>

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
28.

PHP code is executed on the server, and the result is returned to the browser as plain HTML

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
29.

PHP files can contain text, HTML, CSS, JavaScript, and PHP code

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
30.

PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
31.

PHP is compatible with almost all servers used today (Apache, IIS, etc.)

A. true
B. false
C. both a and b
D. none of these
Answer» A. true
32.

PHP supports a ___________ range of databases

A. wide
B. small
C. short
D. none of these
Answer» A. wide
33.

PHP supports the following data types:

A. String
B. Integer
C. Float (floating point numbers - also called double)
D. all of the above .
Answer» D. all of the above .
34.

PHP divides the operators in the following groups:

A. Increment/Decrement operators
B. Logical operators
C. String operators
D. all of the above
Answer» D. all of the above
35.

The basic assignment operator in PHP is __________ It means that the left operand gets set to the value of the assignment expression on the right.

A. =
B. ++
C. ==
D. ?
Answer» A. =
36.

the _________ statement is used to perform different actions based on different conditions

A. switch
B. if condition
C. foreach
D. while
Answer» B. if condition
37.

In php, A ___________ is a block of statements that can be used repeatedly in a program.

A. function
B. procedure
C. block
D. loop
Answer» A. function
38.

In php A function will not execute automatically when a page loads.

A. true
B. false
C. both a and b
D. none of these
Answer» A. true

Done Studing? Take A Test.

Great job completing your study session! Now it's time to put your knowledge to the test. Challenge yourself, see how much you've learned, and identify areas for improvement. Don’t worry, this is all part of the journey to mastery. Ready for the next step? Take a quiz to solidify what you've just studied.