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]

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

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

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)

10.
Consider the following snippet code
namespace McqsMentorConsoleApplication
var string1 = "123";
var intvalue = 123;
alert( string1 + intvalue );
The result would be

123246

246

123123

Exception

12.
The property of a primary expression is

Stand-alone expressions

Basic expressions containing all necessary functions

Contains variable references alone

Complex expressions

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

Text==pattern

Text.equals(pattern)

Text.test(pattern)

Pattern.test(text)

14.
What kind of an expression is “new Point(2,3)”?

Primary Expression

Object Creation Expression

Invocation Expression

Constructor Calling Expression

0Shares
0
Scroll to Top