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
Tutorials
Softwares
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. Which of the following function converts a JavaScript value into a JSON string?
JSON.string()
JSON.stringify()
JSON.tovalue()
JSON.convert()
View Answer
2. Strings are delimited with ________ and support a backslash escaping syntax.
Comma
Double-quotation
Colon
Single-quotation
View Answer
3. Which of the following PHP functions decodes JSON structures?
json_decode
php_json_decode
json_encode
none of them
View Answer
4. Which Protocol service is use JSON?
IP
SOAP
GData
HTTP
View Answer
5. Which of the following are the uses of JSON?
Preferred to sending web data
Serializing Data
All of them
Facilitate between incompatible platforms
View Answer
6. What does DTD stand for?
Document Type Definition
Direct Type Definition
Dynamic Type Definition
None of these
View Answer
7. _________ refers to adherence to basic XML syntax rules while _______ refers to adherence to the DTDs too.
Internal DTDs, Validity
None of these
Validity, Well-formed
Well-formed, Internal DTDs
View Answer
8. Which of the following aspects describes Gson?
All of them
Open SOurce
Its a Java Library
Connects Java Objects into JSON
View Answer
9. Which of the following function resolves the XSS and CSRF issues?
jsonify()
jsonstring()
jsonparse()
jsoneval()
View Answer
10. Which of the following aspects describes Gson?
Similar to JSON and XML
None of them
Is a Java library
Does not serialize objects
View Answer
11. Which JSON feature ensures communication between two applications designed in different programming languages?
Extensibility
Reusability
Interoperability
Scalability
View Answer
12. 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
13. Which of the following Gson methods are useful for implementing JSON?
toJson()
fromJson()
Both toJson() & fromJson()
None of them
View Answer
14. A series of zero or other Unicode characters within double quotes and backslash escapes is termed as ________.
String
Array
Object
Number
View Answer
15. The top level XSLT elements can be occur directly the __________ element.
xmlfile
xsl:character
xsl:stylesheet
none of these
View Answer
16. An_________, in XML, is a placeholder that consists of a name and a value.
Root Element
ENTITY
DTD
ELEMENT
View Answer
17. Which of the following is the limitation of JSON?
Support for only C language
No limit on array and objects
Complicated debugging
Too many data types
View Answer
18. Identify the Errors in the following code
{
"peripherals" [{
"Mouse": [{
"brand" : "Logitech",
"price" : 300,
}]
}] }
All of Them
P of Peripherals in Small Case
Colon missing after Peripheral
Remove comma after the last member of Mouse
View Answer
19. Identify the incorrect predefined attribute
xml:lang
all of them
xml:data
xml:space
View Answer
20. Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.
Overridden
Accessed
Duplicated
Deleted
View Answer