Safcode | Code Your Ideas by Sir Safder
+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Office Automation
Graphics Designing
Web Development
Software Development
Digital Marketing
App Development
Amazon Virtual Assistant
YouTube Earning
WordPress Development
Tutorials
Feedback
Programming Notes
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. Identify the Errors in the following code
{
"peripherals" [{
"Mouse": [{
"brand" : "Logitech",
"price" : 300,
}]
}] }
Remove comma after the last member of Mouse
P of Peripherals in Small Case
Colon missing after Peripheral
All of Them
View Answer
2. Choose the Correct Option
a) XSLT
b)XPath
3)XSL-FO
1) Language for navigation XML
2) Language for transforming XML
3) Language for formatting XML
a-3, b-1, c-2
a-2, b-1, c-3
a-2, b-3, c-1
a-3, b-2, c-1
View Answer
3. The top level XSLT elements can be occur directly the __________ element.
xmlfile
xsl:stylesheet
xsl:character
none of these
View Answer
4. Which JSON feature ensures communication between two applications designed in different programming languages?
Interoperability
Extensibility
Scalability
Reusability
View Answer
5. An_________, in XML, is a placeholder that consists of a name and a value.
DTD
Root Element
ELEMENT
ENTITY
View Answer
6. Which of the following aspects describes Gson?
Similar to JSON and XML
Does not serialize objects
Is a Java library
None of them
View Answer
7. _________ refers to adherence to basic XML syntax rules while _______ refers to adherence to the DTDs too.
Validity, Well-formed
None of these
Internal DTDs, Validity
Well-formed, Internal DTDs
View Answer
8. Identify the incorrect predefined attribute
xml:data
xml:lang
xml:space
all of them
View Answer
9. Which of the following aspects describes Gson?
Its a Java Library
Connects Java Objects into JSON
All of them
Open SOurce
View Answer
10. A series of zero or other Unicode characters within double quotes and backslash escapes is termed as ________.
Number
Object
String
Array
View Answer
11. Which of the following PHP functions decodes JSON structures?
json_decode
json_encode
none of them
php_json_decode
View Answer
12. Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.
Accessed
Overridden
Duplicated
Deleted
View Answer
13. Which of the following are the uses of JSON?
Facilitate between incompatible platforms
Preferred to sending web data
Serializing Data
All of them
View Answer
14. Which of the following does not make a DTD?
Root Element declarations
Entity declarations
Element declarations
Attribute declarations
View Answer
15. Which of the following function converts a JavaScript value into a JSON string?
JSON.tovalue()
JSON.string()
JSON.stringify()
JSON.convert()
View Answer
16. Which of the following objects is used to read a JSON file and display its contents in the browser?
XMLHttpRequest
XMLJSONRequest
JSONHttpRequest
JSONXMLHTTPRequest
View Answer
17. Which Protocol service is use JSON?
IP
HTTP
SOAP
GData
View Answer
18. Which of the following function resolves the XSS and CSRF issues?
jsonify()
jsoneval()
jsonstring()
jsonparse()
View Answer
19. Which of the following Gson methods are useful for implementing JSON?
None of them
Both toJson() & fromJson()
fromJson()
toJson()
View Answer
20. Strings are delimited with ________ and support a backslash escaping syntax.
Comma
Single-quotation
Double-quotation
Colon
View Answer