Important Jee Main Solutions
Important Jee Main Solutions
Important Jee Main Solutions
a) RMI
b) Triggering Event
c) Preprocessor
d) Function/Method *
a) Syntax error
b) Missing of semicolons
c) Division by zero *
The snippet that has to be used to check if “a” is not equal to “null” is
a) if(a!=null)
b) if (!a)
c) if(a!null)
d) if(a!==null)*
a) 123246
b) 246
c) 123123 *
d) Exception
a) Primary expression
b) Functional expression
c) Invocation expression *
a) Primary Expression
c) Invocation Expression
a) +
b) :
c) –
d) ?: *
9
JavaScript is a _______________ language
a) Object-Oriented
b) High-level
c) Assembly-language
d) Object-Based *
10
The output for the following code snippet would most appropriately be
var obj = { a : 10 }
with(obj)
alert(b)
a) 10
b) Error
c) 1 *
d) 5
11
a) Alternate to if-else
b) Immediate if *
c) If-then-else statement
A statement block is a
a) conditional block
13
c) Throws an error
d) Throws an exception
14
a) Keywords
b) Declaration statements *
c) Datatypes
d) Prototypes
15
16
17
What will happen if a return statement does not have an associated expression?
18
var grand_Total=eval("10*10+5");
a) 10*10+5
b) 105 as a string
c) 105 as an integer value *
d) Exception is thrown
19
a) Yes, perfectly *
b) Error
d) Memory leak
20
var string2Num=parseInt("123xyz");
a) 123
b) 123xyz *
c) Exception
d) NaN
21
Why so JavaScript and Java have similar name?
22
Which of the following syntax is correct to refer an external script called “formValidation.js”?
23
Which of the following is correct to write “Hello World ” on the web page?
A. System.out.println(“Hello World”)
B. print(“Hello World”)
C. document.write(“Hello World”) *
D. response.write(“Hello World”)
24
A. Visibility *
B. Visible
C. Invisibility
D. Invisible
25
A.
head
B.
C.
D.
ANS=onclick
ANS=onmousedown
ANS=document.getElementById(“url”)value=window.location.href;
ANS=A
ANS=getElementByTagName(“li”)
ANS=innerHTML
ANS=D,B
ANS=B
ANS=document.value.credentials.username.innerHTML;
A A File Manager
B The Internet
C An Icon
D A Web Browser *
A None of these
B Content
C Definition
D Language
A Attributes
B Plain Text
C Tags
D All of these *
A Front Page
B Yellow Page
C Server Page
D Web Page *
A False
B True *
C NONE
D BOTH
A Compiler
B Web Browser *
C Server
D Interpreter
A Squart
B Round
C Angle *
D Curly
A HTML *
B BODY
C TITLE
D HEAD
9
a) class
b) id*
c) article
d) html
10
The _____________ attribute specifies an inline style associated with an element, which determines the
rendering of the affected element.
a) dir
b) style *
c) class
11
Which attribute is used to provide an advisory text about an element or its contents.
a) tooltip
b) dir
c) title *
12
Which of the following is the attribute that specifies additional horizontal space, in pixels, to be reserved
on either side of an embedded item like an iframe, applet, image, and so on?
a) height
b) hspace *
c) hidefocus
d) datasrc
13
a) h6
b) heading
c) h1 *
d) head
================================================================
CSS QUESTIONS
a) Selector *
b) Attribute
c) Value
d) Tag
3
a) Selector
b) Rule
c) Declaration *
Which of the following attributes is used to specify elements to bind style rules to?
a) id
b) class
c) tag
a) Selector
b) Rule
c) Property
d) Property-Name*
a) id
b) class *
c) tag
implementation that introduced text, list, box, margin, border, color, and background properties.
a) css *
b) html
c) ajax
d) php
Is it the best way to include H1 heading only one time in the web page. State true or false.
a) True *
b) False
9 Which of the following function adjust the brightness of an element’s color, for use by the filter
property?
a) contrast()
b) dark()
c) light()
d) brightness() *
10
Which of the following function converts an element’s color to a shade of gray, for use by the filter
property?
a) shade()
b) grayscale() *
c) black()
d) brightness()
11 If we want define style for an unique element, then which css selector will we use ?
A. Id *
B. text
C. class
D. name
12
If we want to use a nice looking green dotted border around an image, which css property will we use?
A. border-color
B. border-decoration
C. border-style *
D. border-line
13
Which element is used in the <HEAD> section on an HTML, if we want to use an external style sheet file
to decorate the page ?
A. <src>
B. <link> *
C. <style>
D. <css>
ANS=yes,no,no,no
ANS=A
ANS=innerHTML,innerHTML,value,toLowerCase();
ANS=SmpleStudent=HTmlStudent
Samplecourse=HTML
Samplecourse.grade=90;
ANS=100,20,40,60
ANS=line 2=undefined
Line04=String
Line 06=Array
Line08=number
ANS=B
ANS=YES
NO
ANS=vardate=new Date();var month=date.getMonth();date.setmonth(month+value);
ANS=[],push,j++,sum[i];
ANS=1=String
2=number
3=Boolean
4=undefine
ANS=101
101
101
ANS=2017,January,1;
ANS=&&,==;
ANS=if(age<5//age>=65);
ANS=if(age>=5//age<18)
ANS=switch(day)
ANS=case”wednesday”
ANS=case”wendnesday”
ANS=for,break,continue
ANS=if(a>=0)
ANS=esleif(b%2==0)AANAA
ANS=esleif(a>=0)
ANS=else{
ANS=var i=star
ANS=i<0
ANS=++i
ANS=switch(month)
ANS=break;
ANS=break;
ANS=no,no
ANS=TRUE,false,true,true
ANS=promt,alert,confire
ANS=try
ANS=catch()
ANS=B
ANS=3,5
ANS=E,B
ANS=yes,yes,yes,yes
ANS=yes,no,no,yes
ANS=n=10
C=55
A=25
D=5
1 JavaScript is …
A. subjective
B. objective
C. evil
D. object based *
var obj1 = {}; var obj2 = {}; What is the value of (obj1 === obj2)
A. true
B. false *
B. “6 bottles of milk” *
C. undefined. An exception is thrown
D. “5 bottles of milk”
A. Value *
B. Pointer
C. Reference
A. boolean
B. number
C. string
D. character *
To what type are values converted internally when evaluating a conditional statement?
A. positive
B. negative
C. integer
d. boolean *
A. !
B. & *
C. &&
D. ||
10
11
Which is the correct way to write a JavaScript array?
12
A. function fName: { }
C. function fName() { } *
D. new fName = { }
13
A. gettype(x);
B. x.__type;
C. Object.type(x);
D. typeof(x); *
14
What is the value of the array myArr after execution of the following code: var myArr = [1,2,3,4,5];
myArr.shift();
A. [1,2,3,4,5]
B. []
C. [2,3,4,5] *
D. [1,2,3,4]
16
B. function_expression { arguments_if_any }
C. arguments_if_any ( function_expression )
D. function_expression ( arguments_if_any ) *
17
A. undefined *
B. 7
C. 10
D. “bar”
18
What is the value of x.length after running this code? x = [“foo”]; x.quux = “Hello”; x[1] = “bar”;
C. 2 *
D. 1
19
Whats the output of the below : for(var i = 0; i < 10;i++){ setTimeout(function(){console.log(i) }, 10)}
A. 0 1 2 3 4 5 6 7 8 9
B. 10 10 10 10 10 10 10 10 10 10 *
C. 10 10 10 10 10 10 10 10 10
D. Error
20
What will we see in the console after the following code run: var a = ‘Bolt’; function f() { if (!a) { var a =
‘Nut’; } console.log(a); } f(); console.log(a);
21
What’s the correct syntax for creating a Date object for January 10, 1998?
22
A statement block is a
a) conditional block
23
var count = 0;
console.log(count);
count++;
c) An error is displayed
d) An exception is thrown
24
function printArray(a)
if (len == 0)
console.log("Empty Array");
else
do
console.log(a[i]);
25
console.log(o[p]);
console.log(a[i]);
console.log(a[i]);
console.log(a[i]);
console.log(a[i]);
26
while (a != 0)
if (a == 1)
continue;
else
a++;
What will be the role of the continue keyword in the above code snippet?
c) The continue keyword skips the rest of the statements in that iteration *
d) None of the mentioned
27
28
function hypotenuse(a, b)
function square(x)
return x*x;
var grand_Total=eval("10*10+5");
a) 10*10+5
b) 105 as a string
d) Exception is thrown
30
The one-liner code that concatenates all strings passed into a function is
a) function concatenate()
b) function concatenate()
c) function concatenate()
d) function concatenate() *
{
return String.prototype.concat.apply('', arguments);
31
function checkscope() {
function f()
return scope;
return f;
b) Returns exception
32
a) Document *
b) Element
c) Location
33
b) Current URL
34
35
function() {
var a = 10;
if(a > 5) {
a = 7;
alert(a);
}
A7*
B 10
C null
D undefined
36
var a = 5;
function first() {
a = 6;
function second() {
alert(a);
A0
B5
C6 *
D null
37
Variable can hold ________ value at a time
None of these
Multiple
Double
Single *
38
A Integer num;
B var num; *
C int num;
D integer num;
39
B None of these
<!DOCTYPE html>
<html>
<body>
<script>
var num1 = 1;
var num2 = 1;
document.write(num1 + "<br>");
document.write(num2 + "<br>");
document.write(num3 + "<br>");
</script>
</body>
</html>
113
1 1 12
None of these *
1 1 111
41
<html>
<body>
<script>
document.write(name + "<br>");
</script>
</body>
</html>
Yes !! It is possible. *
No
42
<script type="text/javascript">
function message() {
alert(name);
}
</script>
A Global
B Local *
43
<script type="text/javascript">
var name;
name = "Suhas";
</script>
<script type="text/javascript">
document.write(name);
</script>
A None of these
C Error
D Suhas
44
A Returns the value and continues executing rest of the statements, if any
A event type *
B even target
46
A function *
B interface
C event
D handler
47
A) window.reload
B) window.location *
C) page.location
D) url.newlocation
49
A ………………… mostly used to take users choice on any option and displays a dialog box with two buttons
Ok and Cancel.
50
<script language="javascript">
function x()
document.write(2+5+"8");
</script>
a) 258
b) Error
c) 7
d) 78 *