Skip to main content

Technical Quiz July 11, 2016


1. Are JVM's Platform Independent?
Answer : JVM'S are not platform Independent. JVM'S are platform Specific.

2. What is the base class of all classes?
Answer : java.lang.Object

3. Can we mark constructors final?
Answer : No, Constructor cannot be declared final.

4. Is it possible to overload main() method of a class?
Answer : Yes, we can overload main() method as well. But every time public static main(String[] args) will be called automatically by JVM. Other methods need to call explicitly.

5. Can we inherit the constructors?
Answer : No, we cannot inherit constructors.
We can call super class constructors from subclass constructor by using super() call.

6. Is null a keyword?
Answer : "null"  is not a keyword. .null is a literal.

7. what is the value of variable "currentDate" of this javaScript Code if current Date of System is 6-July-2015 -
var date=new Date();
var currentDate=date.getDate()+'-'+date.getMonth+'-'+date.getFullYear();

(A) 6-7-2016             (B)6-6-2016
(C) 6-july-2016          (D)null

8. What state does a thread enter when it terminates its processing?
Answer : When a thread terminates its processing, it enters the dead state.

9. Can we write empty interface?
Answer : Yes it is possible it is marker interface.

10. When we need to use extends and implements?
Answer : A class will implements an interface.
A class will extends another class.
An interface extends another interface.

11. full form of JSON ?
Answer : JavaScript Object Notation.

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.


12. Which language use strictfp keyword ?

Java (strictfp is a keyword in the Java programming language that restricts floating-point calculations to ensure portability. The strictfp command was introduced into Java with the Java virtual machine (JVM) version 1.2 and is available for use on all currently updated Java VMs.Without using strictfp keyword, the floating point precision depends on target platform’s hardware, i.e. CPU’s floating point processing capability. In other words, using strictfp ensures result of floating point computations is always same on all platforms. )

The strictfp keyword can be applied for classes, interfaces and methods.

Rules
strictfp cannot be applied for constructors.
If an interface or class is declared with strictfp, then all methods and nested types within that interface or class are implicitly strictfp.
strictfp cannot be applied for interface methods.
read more

13. which type of keyword is not allowed if we use strict keyword in javascript?
Answer : Future reserved keywords are not allowed in strict mode. These are:

implements
interface
let
package
private
protected
public
static
yield

The purpose of "use strict" is to indicate that the code should be executed in "strict mode".

Strict mode makes it easier to write "secure" JavaScript.

Strict mode changes previously accepted "bad syntax" into real errors.

As an example, in normal JavaScript, mistyping a variable name creates a new global variable. In strict mode, this will throw an error, making it impossible to accidentally create a global variable.

In normal JavaScript, a developer will not receive any error feedback assigning values to non-writable properties.

Strict mode is supported in:
Internet Explorer from version 10. Firefox from version 4.
Chrome from version 13. Safari from version 5.1. Opera from version 12.

Winner is Neha Gupta, Taruna Kunwar, Chetan Bharti, Mehander

Comments

Popular posts from this blog

Debate on Studying grammar is more important than practising conversation skills. July 12, 2016

Favor : Grammar is important than the communication skills because it is the language that makes it possible for us to talk about language. by Grammar you are write names the different of words, and you make sentences, so you can use your grammar skills when you are want communicate, if you Know grammar, your speech will be very obvious, and you will follow by the structure. We all know how to build a sentence, but we do not know how to build a beauty sentence so for this we need to learn by grammar. And knowing about grammar offers a window into the human mind and into our amazingly complex mental capacity. while someone practice grammar become more friendly & he make the maximum output of it. But on conversation he/she may do face some current situation and that time also he/she may not perform perfectly as required. Grammar skilled guy can go anywhere means any type communication - oral or written , face to face or behind, man to man or in a group, personal or corporate w

Quiz on JAIPUR FACTS July 4, 2016

All are waiting for question. 1. WHO IS FOUNDER OF JAIPUR ANSWER - Jai Singh II 2. The one of the popular sweet dish from Jaipur is the……. ANSWER : Ghewar 3. Ghewar. The sweet is associated with the ……….festival.  Tell me festival name ANSWER : Teej 4. How many windows HAWA-MAHAL has ? ANSWER : 953 5. How many stories HAWAMAHAL has ? ANSWER : 5 6. Birla Mandir is established in which year ANSWER : 1988 7. When Jaipur Metro commercial service started between chandpol and mansarovar , tell me month and year ANSWER : June 2015 Only our team know answer : Subhash Garhwal , Rajeev Jain 8. How much length is covered by Jaipur metro - ANSWER : 9.63KM Our team know this answer : Avanish Kumar 9.  what is the lake name where JAL MAHAL is situated ANSWER : Man Sagar Lake 10. famous food in jaipur ANSWER : dal bati churma Is it question : Subhash Garhwal 11. short Code decided by IRCTC for jaipur ANSWER : JP Explanation : fyi when we book

Game Lemon & Spoon race June 1, 2016

Objective: To hold a spoon in your mouth with a lemon on the spoon and run/walk the distance between the start and finish line. The person that crosses the finish line first is declared the winner. Here are the rules for the lemon & spoon race... Rules: Can only use the lemon and spoon provided to you on race day. Spoon may not be bent or altered in any way. Should hold the spoon in your mouth throughout the race. Hands may not be used to adjust the spoon once the race starts. If the lemon falls off the spoon you will be eliminated. Lemon cannot be altered in any way so as to make it sit right on the spoon. Judges decision is final. I am trying to win : Saurabh Kumar No Saurabh you are wrong : Taruna Yeah, I know but I can hope to win : Sauarbh Hey winner, Please help me : Rajeev Jain Okay : Subhash Garhwal I am trying to do some experiment with lemon : Bhavi Sharma Wow, I am winner : Subhash Garhwal