MCQ Bank
Associative arrays are also called __________.
- A) hashes
- B) smashes.
- C) slashes.
- D) mashes
Which of the following is NOT a jQuery Sliding Methods?
- A) slideUp()
- B) slideDown()
- C) slideToggle()
- D) slideSwitch()
Which of the following is true about Bit operators?
- A) Bit operators work on 256-bit numbers
- B) Bit operators work on 32-bit numbers.
- C) Bit operators work on 128-bit numbers.
- D) Bit operators work on 64-bit numbers.
Java script code is written within the file having extension of____________.
- A) .jvs
- B) .js
- C) .jvm
- D) .j
JavaScript is ______ side scripting language.
- A) ISP
- B) Server Side
- C) Both Client and Server Side
- D) Client Side
What will be the resulting array after execution of the following commands? var colour = ["Blue", "Pink", "Purple", "Black"]; colour.pop();
- A) ["Blue", "Purple", "Black"];
- B) ["Blue", "Pink", "Purple"];
- C) ["Pink", "Purple", "Black"];
- D) ["Blue", "Pink", "Black"];
Java Script is designed to ____________.
- A) Execute database queries on webpages
- B) To add server side operations
- C) Add interactivity on HTML pages
- D) Style HTML pages
The $(document).ready() method allows us to execute a function when,
- A) None of the given options
- B) Document is fully loaded
- C) Document is partially loaded
- D) Document is about to load
What is the function of responseText in AJAX?
- A) get the response data as XML data
- B) All of the given options
- C) get the response data as a string
- D) get the response data as an integer
To sort an array in descending order, sort() function can be used with the combination of __________ function.
- A) Concat()
- B) Reverse()
- C) Slice()
- D) Shift()
Which of the following function is used to remove last element of the array?
- A) Delete()
- B) Shift()
- C) Pop()
- D) Push()
Choose the correct syntax to create an array students in JavaScript?
- A) var students = {"Ali", "Ahmed", "Noor"};
- B) var students[] = {"Ali", "Ahmed", "Noor"};
- C) var students ["Ali", "Ahmed", "Noor"];
- D) var students = ["Ali", "Ahmed", "Noor"];
Which of the following is NOT a way to join multiple words into one variable name in JavaScript?
- A) Camel Case
- B) Underscore
- C) Semicolon
- D) Hyphens
Which of the following value will JavaScript return if we calculate a number outside the largest possible number?
- A) Invalid
- B) Infinity
- C) Exceeded
- D) Outofrange
____________ is a lightweight data-interchange format.
- A) HTML
- B) JSON
- C) Java
- D) CSS
What does JSON stand for?
- A) Java Standard Object Notation
- B) JavaScript Object Notation
- C) JavaScript Online Notation
- D) JavaScript Object Network
How can JSON data be converted into native JavaScript objects?
- A) Using the JSON.stringify() function
- B) Using the XMLHttpRequest function
- C) Using the XMLParser function
- D) Using the JSON.parse() function
Why are XML Schemas considered more powerful than DTD?
- A) They support data types and namespaces
- B) They are less complex than DTDs
- C) They use CSS for styling
- D) They support JavaScript
Which of the following is not a benefit of using XML Schemas?
- A) It is easier to describe document content.
- B) It is easier to define restrictions on data
- C) It is only used for styling purposes
- D) It is easier to convert data between different data types.
What is an XML Schema?
- A) An XML-based alternative to DTD (Document Type Defination)
- B) A structure for representing the data in a database
- C) A language used to style XML documents
- D) A method for transferring data over the internet