This is a timed quiz.
You have 1 hour 30 minutes to complete the 51 questions in this quiz.
How can you create an e-mail link?
<mail href="a@b.com">
<mail>a@b.com</mail>
<a href="a@b.com">
<a href="mailto:a@b.com">
colspan=n can be added to only what tag?
<table>
<td>
<tr>
The following elements <header>, <footer>, <article>, <section> are the new elements in HTML5. These elements are called,
Control attributes
Semantic elements
Graphic elements
Multimedia elements
Which is not suited for game applications?
Canvas
Svg
Both A & B
None of the above
The canvas element has a DOM method it is called.
getContext
getId
getElement
The default value of "position" attribute is _________.
inherit
relative
fixed
absolute
Which css property you will use if you want to add some margin between a border and its inner text ?
spacing
margin
padding
inner-margin
p {line-height: 150%;}. What type of selector is used in this case?
class Selectors
element Selectors
id Selectors
none of the mentioned
By applying an ___________ a style can be applied to just a single tag.
class rule
element rule
id rule
A ___________ is used to define a special state of an element.
pseudo-tag
pseudo-element
pseudo-id
pseudo-class
Which of the following JavaScript function of String object returns the character at the specified index?
charAt()
charCodeAt()
concat()
indexOf()
What is the correct JavaScript syntax to write "Hello World"?
System.out.println("Hello World");
println ("Hello World");
document.write("Hello World");
response.write("Hello World");
Which of the following is not considered a JavaScript operator?
new
this
delete
typeof
Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop
(i) and (ii)
(i), (ii) and (iii)
All of the mentioned
None of the mentioned
What will be the output of the following php code < ?php $num = 1; $num1 = 2; print $num . "+". $num1 ; ?>
3
1+2
1.+.2
Error
What will be the output of the following code? < ?php function track() { static $count = 0; $count++; echo $count ; } track(); track(); track(); ?>
123
111
000
011
PHP scripts are executed on _________
ISP Computer
Client Computer
Server Computer
It depends on PHP scripts
What will be the output of the following code? $var = 10; function fn () { $var = 20; return $var; } fn (); echo $var;
10
20
Undefined Variable
Syntax Error
What will be the output of the following PHP code? echo 30*5 . 7;
150.7
1507
171
error will occur
In your PHP application you need to open a file. You want the application to issue a warning and continue execution, in case the file is not found. The ideal function to be used is:
include()
require()
nowarn()
getFile(false)
Which of the following is used in perl?
else if
elseif
elsif
elif
What will be printed by the Perl code below? my @a = (0, 1, 2); my $b = @a; print $b;
0
1
2
0 1 2
What gets printed in Perl? my $str = 'a\\b\n'; print $str;
ab(newline)
a\b(newline)
a\b\n
a\\b(newline)
a\\b\n
What gets printed in Perl? my $a = '123'; my $b = '0123';
if ($a == $b) { print "same"; } else { print "different"; }
same
different
the code is ill-formed
What will the @b array consist of in Perl? my @a = (10, 5, 1); my @b = sort @a;
(1, 5, 10)
(10, 5, 1)
(1, 10, 5)
(5, 10, 1)
( )
What will be printed in Perl? print 'a'; BEGIN { print 'b'; } sub foo { print 'c'; }
abc
bac
ab
ba
bca
what does the following python code do? def a(b, c, d): pass
defines a list and initializes it
defines a function, which does nothing
defines a function, which passes its parameters through
defines an empty class
What is the output of the following python code ? print(type([1,2]))
<class 'tuple'>
<class 'int'>
<class 'set'>
<class 'dictionary'>
<class 'list'>
what is the output of the below program in python? a = [1,2,3,None,(),[],] print(len(a))
syntax error
7
6
4
5
What gets printed in python? x = 4.5 y = 2 print(x//y)
2.0
2.25
9.0
20.25
21
What gets printed in Python? print(r"\nwoow")
new line then the string: woow
the text exactly like this: r"\nwoow"
the text like exactly like this: \nwoow
the letter r and then newline then the text: woow
the letter r then the text like this: nwoow
What gets printed in Python? print(0xA + 0xa)
0xA + 0xa
0xA 0xa
14
0x20
What gets printed in Python? name = "snow storm" print(name[6:8])
st
sto
to
tor
Which numbers are printed in Python? for i in range(2): print(i) for i in range(4,6): print(i)
2, 4, 6
0, 1, 2, 4, 5, 6
0, 1, 4, 5
0, 1, 4, 5, 6, 7, 8, 9
1, 2, 4, 5, 6
What gets printed in Python? x = "foo " y = 2 print(x + y)
foo
foo foo
foo 2
An exception is thrown
What gets printed in Python? foo = (3, 4, 5) print(type(foo))
<class 'dict'>
What gets printed in Python? names = ['Amir', 'Barry', 'Chales', 'Dao'] print(names[-1][-1])
A
r
Amir
Dao
o
What gets printed in Python? numbers = [1, 2, 3, 4] numbers.append([5,6,7,8]) print(len(numbers))
8
12
Which of the following data structures in Python can be used with the "in" operator to check if an item is in the data structure?
list
set
dictionary
All of the above
What gets printed in Python? my_tuple = (1, 2, 3, 4) my_tuple.append( (5, 6, 7) ) print(len(my_tuple))
What gets printed in Python? x = sum(range(5)) print(x)
15
Which of the following is the way to create comments in PHP?
// commented code to end of line
/* commented code here */
# commented code to end of line
all of the above
What gets printed in PHP? $var = 'false'; if ($var) { echo 'true'; } else { echo 'false'; }
true
false
Which of the following is used to declare a constant in PHP?
const
constant
define
#pragma
def
What gets printed? <?php $RESULT = 11 + 011 + 0x11; echo "$RESULT"; ?>
11
22
33
37
39
Which tags are most commonly used by search engines?
Paragraph
Heading
Title
All of above
Banners, buttons, dividers, clipart and other simple images usually work best as ?
png
gif
jpg
Which built-in method returns the character at the specified index?
characterAt()
getCharAt()
var city = new Array("delhi", "agra", "akot", "aligarh","palampur"); console.log(city.pop());
delhi
palampur
agra
akot
What does isNaN function do?
Returns false if the argument is not a number.
Returns true if the argument is not a number.
Returns true if the argument is a number.
CDN stands for_______
Content Distribution Network
Common Distribution Network
Collective Distribution Network
None of these