Javascript
- Arrays and Functions
- Basics of JavaScript
- Caching and Debugging
- Classes and Modules
- Document Object Model and Event Handling
- Graphics and Rendering
- Invocation and Performance
- JavaScript Animation
- Parsing, Benchmarking and Logging
- Performance Measures in JavaScript
- Server Side and Client Side Scripting
- Socket Programming with JavaScript
Computer MCQS
Sciences MCQS
2.
A hexadecimal literal begins with
00
0x
0X
Both 0x and 0X
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
3.
The generalised syntax for a real number representation is
[digits][.digits][(E|e)[(+|-)]digits]
[digits][+digits][(E|e)[(+|-)]digits]
[digits][(E|e)[(+|-)]digits]
[.digits][digits][(E|e)[(+|-)]digits]
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
4.
When there is an indefinite or an infinity value during an arithmetic value computation, javascript
Prints an exception error
Prints an overflow error
Displays "Infinity"
Prints the value as such
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
5.
Which of the following is not considered as an error in JavaScript?
Syntax error
Missing of semicolons
Division by zero
All of the mentioned
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
6.
The escape sequence “f” stands for
Floating numbers
Representation of functions that returns a value
F is not present in JavaScript
Form feed
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
7.
The snippet that has to be used to check if “a” is not equal to “null” is
If(a!=null)
If (!a)
If(a!null)
If(a!==null)
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
8.
The statement a===b refers to
Both a and b are equal in value, type and reference address
Both a and b are equal in value
Both a and b are equal in value and type
There is no such statement
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
9.
Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
False.toString()
String(false)
String newvariable="false"
Both false.toString() and String(false)
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
10.
Consider the following snippet code
namespace McqsMentorConsoleApplication
var string1 = "123";
var intvalue = 123;
alert( string1 + intvalue );
The result would be
namespace McqsMentorConsoleApplication
var string1 = "123";
var intvalue = 123;
alert( string1 + intvalue );
The result would be
123246
246
123123
Exception
11.
A function definition expression can be called
Function prototype
Function literal
Function definition
Function declaration
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
12.
The property of a primary expression is
Stand-alone expressions
Basic expressions containing all necessary functions
Contains variable references alone
Complex expressions
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
13.
Consider the following statements:
namespace McqsMentorConsoleApplication
var text = "testing: 1, 2, 3"; // Sample text
var pattern = /d+/g // Matches all instances of one or more digits
In order to check if the pattern matches with the string "text", the statement is
namespace McqsMentorConsoleApplication
var text = "testing: 1, 2, 3"; // Sample text
var pattern = /d+/g // Matches all instances of one or more digits
In order to check if the pattern matches with the string "text", the statement is
Text==pattern
Text.equals(pattern)
Text.test(pattern)
Pattern.test(text)
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
14.
What kind of an expression is “new Point(2,3)”?
Primary Expression
Object Creation Expression
Invocation Expression
Constructor Calling Expression
Answer & Solution
No Solution for this Answer..! Report or Discus this Question
15.
Which of the operator is used to test if a particular property exists or not?
In
Exist
Within
Exists