Coding Test
Coding Test
Write a JavaScript function to check whether given value types are same or not.
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%
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]
Write a Python function which prints a list with square of all even numbers between
10 and 20 (both included).
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 Code.org 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.