Which of the following is the correct syntax to display “Hi I am Shalini” in an
alert box using JavaScript?
1 point
alertbox(“Hi I am Shalini”);
msg(“Hi I am Shalini”);
msgbox(“Hi I am Shalini”);
alert(“Hi I am Shalini”);
What will be the output of the following JavaScript code?
<script type="text/javascript"> a = 4 + "2"; [Link](a); </script>
1 point
6
Compilation Error
42
Run Time Error
What will be the output of the following javacript code?
<script> var cars = ["blue", "red", "green", "orange"]; var text = ""; var i; for
(i = 0; i < [Link]; i++) { text += cars[i] +" "; }
[Link]("demo").innerHTML = text; </script>
1 point
blue red green orange
blue red green
Compilation Error
Run Time Error
Write a JavaScript function to check whether given value types are same or not.
Write a JavaScript program to sort the items of an array in descending order.
To enable slideshow, what should not be included in HTML?
1 point
[Link]
button
[Link]
[Link]
Which tag is used to allow control over the viewport in HTML5?
1 point
<meta>
<acronym>
<em>
<address>
What value should we set for background-size property in CSS such that image will
stretch to cover entire content area?
1 point
100%100%
cover
contain
100%
What does bootstrap not use from the following ?
1 point
HTML
JQuery
PHP
CSS
What creates a carat arrow icon?
1 point
.carousel
.caret
.carousel-caption
.caption
How to find the last element of list in Python? Assume `Whitehat` is the name of
list.
1 point
Whitehat[0]
Whitehat[-1]
Whitehat[pos]
Whitehat[:-1]
Find the output of the following Python code.
1 point
Captionless Image
a
b
c
d
Which statement is correct about Lists and Tuples in Python?
1 point
List is mutable & Tuple is immutable
List is immutable & Tuple is mutable
Both are Immutable
Both are Mutable.
Write a Python function which prints a list with square of all even numbers between
10 and 20 (both included).
Syntax of constructor in Python?
1 point
def _init_()
def __init__()
_init_()
def int()
In the image given consider there is a ball sprite then what will be the output of
this given control structure?
1 point
Captionless Image
The ball glides to a random position in 1 second
The ball glides to 10 random positions taking 1 second to reach each position
The ball glides to a random position and waits there for 10 seconds
The ball glides to 10 random positions within 1 second
What will be the output in Debug console of [Link] for the given code snippet?
1 point
Captionless Image
a=10 b=20
a=30 b=20
a=20 b=20
a=20 b=10
What will be the output of given code snippet?
1 point
Captionless Image
It will print the value of factorial of number 4 onto the label.
It will print the value of factorial of number 5 onto the label.
Code will run in infinite loop so it will generate a garbage value
It will print the integer value 1 onto the label
Consider the below code snippet for Password Checker. What should be added into the
Key-value pair of Data section of this code for getting a true value in an
if...else condition?
1 point
Captionless Image
KEY = paswd VALUE= "ABC"
KEY= password VALUE=White
KEY= password VALUE= "WHITE"
KEY= paswd VALUE= ABC
Which string operation will get executed on getting a true value of the if
condition for the given code snippet?
1 point
Captionless Image
String length.
String compare
String concatenation
Substring of a String.