++92 313 8389893
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Graphic Designing
Web Development
Digital Marketing
WordPress + SEO
Artificial Intelligence (AI)
Shopify + WordPress Development
Tutorials
Feedback
Programming Notes
Enroll Now
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 aspects describes Gson?
Similar to JSON and XML
Does not serialize objects
Is a Java library
None of them
View Answer
2. Which of the following PHP functions decodes JSON structures?
json_decode
json_encode
php_json_decode
none of them
View Answer
3. Identify the Errors in the following code
{
"peripherals" [{
"Mouse": [{
"brand" : "Logitech",
"price" : 300,
}]
}] }
Colon missing after Peripheral
P of Peripherals in Small Case
All of Them
Remove comma after the last member of Mouse
View Answer
4. Which of the following function converts a JavaScript value into a JSON string?
JSON.tovalue()
JSON.string()
JSON.stringify()
JSON.convert()
View Answer
5. Which of the following Gson methods are useful for implementing JSON?
toJson()
None of them
Both toJson() & fromJson()
fromJson()
View Answer
6. A series of zero or other Unicode characters within double quotes and backslash escapes is termed as ________.
Object
String
Number
Array
View Answer
7. What does DTD stand for?
Dynamic Type Definition
Document Type Definition
Direct Type Definition
None of these
View Answer
8. Strings are delimited with ________ and support a backslash escaping syntax.
Single-quotation
Colon
Comma
Double-quotation
View Answer
9. Prefixing an element in a XML document, with a unique prefix, prevents it from being ___________.
Duplicated
Accessed
Deleted
Overridden
View Answer
10. Which JSON feature ensures communication between two applications designed in different programming languages?
Interoperability
Extensibility
Reusability
Scalability
View Answer