Interview Questions

Q:

How JavaScript timers work? What is a drawback of JavaScript timers?

Answer

Timers allow you to execute code at a set time or repeatedly using an interval. This is accomplished with the setTimeout, setInterval, and clearInterval functions. The setTimeout(function, delay) function initiates a timer that calls a specific function after the delay; it returns an id value that can be used to access it later. The setInterval(function, delay) function is similar to the setTimeout function except that it executes repeatedly on the delay and only stops when cancelled. The clearInterval(id) function is used to stop a timer. Timers can be tricky to use since they operate within a single thread, thus events queue up waiting to execute.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 4490
Q:

What’s the difference between accessing a class method via -> and via ::?

Answer :: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 4487
Q:

How many types of constructor are there in C++?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: C) 3

Explanation:

There are three types of constructor in C++. They are Default constructor, Parameterized constructor, Copy constructor.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4476
Q:

Why is it expensive to use objects for exception?

A) Exception object is created only if an error actually happens B) Because of execution time
C) Memory space involved in creating an exception object D) None of the mentioned
 
Answer & Explanation Answer: A) Exception object is created only if an error actually happens

Explanation:

If an error occurs in program, then only exception object is created otherwise, It will not be created. So it’s expensive to use in the program.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 4471
Q:

How much the bug is affecting the functionality of the application?

Answer

EX:


- High Priority and Low Severity:


Company logo is not properly displayed on their website.


- High Priority and High Severity:


Suppose you are doing online shopping and filled payment information, but after submitting the form, you get a message like "Order has been cancelled."


- Low Priority and High Severity:


If we have a typical scenario in which the application get crashed, but that scenario exists rarely.


- Low Priority and Low Severity:


There is a mistake like "You have registered success" instead of successfully, success is written.

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

6 4468
Q:

What is SQLCA?

Answer

- SQLCA stands for SQL Communication Area


- SQLCA is a structure of variables which are updated after every SQL statement’s execution


- Exactly only one SQLCA need to be provided to an application that contains executable SQL statements


- SQLCA is not applicable to JAVA application


- More than one SQLCA need to be provided for FORTRAN application

Report Error

View answer Workspace Report Error Discuss

0 4462
Q:

Cash Reserve Ratio ( CRR) and Stautory Liquidity Ratio (SLR ) are terms most closely related to which of the following industries/markets :

A) Mutual Fund B) Income Tax
C) Stock Exchange D) Banking
 
Answer & Explanation Answer: D) Banking

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Bank Interview
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

7 4460
Q:

What is JSON ?

Answer

* JSON full form is JavaScript Object Notation.
* JSON is a lightweight text-based open standard designed for human-readable data interchange.
* It is derived from the JavaScript programming language for representing simple data structures and associative arrays, called objects.
* And JSON is language-independent, with parsers available for virtually every programming language.
* Uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python,php
* The JSON format is often used for serializing and transmitting structured data over a network connection.
* When third party data interchane(REST Services) then JSON may used there LIKE SHOP.
* It is primarily used to transmit data between a server and web application, serving as an alternative to XML.


 

Report Error

View answer Workspace Report Error Discuss

2 4455