Home
Current Affairs January 2024

What is the correct answer?

4

The main purpose of a Live Wire in NetScape is to ________

A. Create linkage between client side and server side

B. Permit server side, JavaScript code, to connect to RDBMS

C. Support only non relational database

D. To interpret JavaScript code

Correct Answer :

B. Permit server side, JavaScript code, to connect to RDBMS


Explanation: A Live Wire database driver also supports a number of non-relational databases.

Related Questions

What is the correct answer?

4

The web development environment (JavaScript) offers which standard construct for data validation of the input entered by the user.

A. Controlled loop constructs

B. Case checking constructs

C. Validation constructs

D. All of the mentioned

What is the correct answer?

4

What will be the possible output of the following JavaScript code?
var a = [1,2,3,4,5];
a.slice(0,3);

A. Returns [1,2,3]

B. Returns [4,5]

C. Returns [1,2,3,4]

D. Returns [1,2,3,4,5]

What is the correct answer?

4

What will be the output of the following JavaScript code?
string a = hi;
string b =there;
alert(a+b);

A. hi

B. there

C. hithere

D. undefined

What is the correct answer?

4

Which of the operator is used to test if a particular property exists or not?

A. in

B. exist

C. within

D. exists

What is the correct answer?

4

What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?

A. The property will be stored in a cache

B. The loop will not run

C. That property will not be enumerated

D. The property will be enumerated

What is the correct answer?

4

A conditional expression is also called a _______________

A. Alternative to if-else

B. Immediate if

C. If-then-else statement

D. Switch statement

What is the correct answer?

4

What will be the output of the following JavaScript code?
function output(option)
{
return (option ? yes : no);
}
bool ans=true;
console.log(output(ans));

A. Yes

B. No

C. Runtime error

D. Compilation error

What is the correct answer?

4

What will be the output of the following JavaScript code?
const obj1 =
{
property1: 21
}
const descriptor1 = Object.getOwnPropertyDescriptor(obj1, 'property1');
console.log(descriptor1.configurable);
console.log(descriptor1.enumerable);

A. true 21

B. true false

C. true true

D. false false

What is the correct answer?

4

Consider the following code snippet :
var string2Num=parseInt(123xyz);

The result for the above code snippet would be :

A. 123

B. 123xyz

C. Exception

D. NaN

What is the correct answer?

4

The reduce and reduceRight methods follow a common operation called __________

A. filter and fold

B. inject and fold

C. finger and fold

D. fold

What is the correct answer?

4

Which of the following is not considered as an error in JavaScript?

A. Syntax error

B. Missing of semicolons

C. Division by zero

D. Missing of Bracket

What is the correct answer?

4

Do functions in JavaScript necessarily return a value?

A. It is mandatory

B. Not necessary

C. Few functions return values by default

D. some functions do not return any value

What is the correct answer?

4

Consider the following code snippet :
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()

The state stored in d is :

A. 1

B. 0

C. Null

D. Undefined

What is the correct answer?

4

The statement a===b refers to _________

A. Both a and b are equal in value, type and reference address

B. Both a and b are equal in value

C. Both a and b are equal in value and type

D. There is no such statement

What is the correct answer?

4

What will be the output of the following Javascript code?
int a=0;
for(a;a<5;a++);
console.log(a);

A. 0

B. error

C. 4

D. 5

What is the correct answer?

4

What is the prototype represents in the following JavaScript code snippet?
function f() {};

A. Function f

B. A custom constructor

C. Prototype of a function

D. Not valid

What is the correct answer?

4

A function definition expression can be called as __________

A. Function prototype

B. Function literal

C. Function calling

D. Function declaration

What is the correct answer?

4

The enumeration order becomes implementation dependent and non-interoperable if ___________

A. If the object inherits enumerable properties

B. The object does not have the properties present in the integer array indices

C. The delete keyword is never used

D. Object.defineProperty() is not used

What is the correct answer?

4

What will be the output of the following JavaScript code?
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2

A. true false

B. false true

C. true true

D. false true

What is the correct answer?

4

The type of a variable that is volatile is _______________

A. Volatile variable

B. Mutable variable

C. Immutable variable

D. Dynamic variable

What is the correct answer?

4

A hexadecimal literal begins with __________

A. 00

B. 0x

C. 0X

D. Both 0x and 0X

What is the correct answer?

4

What will be the output of the following JavaScript code?
var grade='B';
var result;
switch(grade)
{
case 'A':
{
result+=10;
break;
}
case 'B':
{
result+= 9;
break;
}
case 'C':
{
result+= 8;
break;
}
default:
result+= 0;
}
document.write(result);

A. 10

B. 9

C. 8

D. 0

What is the correct answer?

4

What is a block statement in JavaScript?

A. conditional block

B. block that contains a single statement

C. both conditional block and a single statement

D. block that combines multiple statements into a single compound statement

What is the correct answer?

4

The function definitions in JavaScript begins with _____________

A. Identifier and Parentheses

B. Return type and Identifier

C. Return type, Function keyword, Identifier and Parentheses

D. Identifier and Return type

What is the correct answer?

4

What will be the output of the following JavaScript code?
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}

A. 10

B. Error

C. 1

D. 5

What is the correct answer?

4

A JavaScript program developed on a Unix Machine ________

A. will throw errors and exceptions

B. must be restricted to a Unix Machine only

C. will work perfectly well on a Windows Machine

D. will be displayed as a JavaScript text on the browser

What is the correct answer?

4

What will be the step of the interpreter in a jump statement when an exception is thrown?

A. The interpreter stops its work

B. The interpreter throws another exception

C. The interpreter jumps to the nearest enclosing exception handler

D. The interpreter throws an error

What is the correct answer?

4

JavaScript is ideal to ________

A. make computations in HTML simpler

B. minimize storage requirements on the web server

C. increase the download time for the client

D. increase the loading time of the website

What is the correct answer?

4

What will be the firstname and surname of the following JavaScript code?
var book = {
main title: JavaScript,
'sub-title': The Definitive Guide,
for: all audiences,
author: {
firstname: David,
surname: Flanagan
}
};

A. properties

B. property values

C. property names

D. objects

What is the correct answer?

4

What will be the output of the following JavaScript code?
var string1 = 123;
var intvalue = 123;
alert( string1 + intvalue );

A. 123246

B. 246

C. 123123

D. Exception