Questão 1
Questão
How can you create an e-mail link?
Questão 2
Questão
colspan=n can be added to only what tag?
Questão 3
Questão
The following elements <header>, <footer>, <article>, <section> are the new elements in HTML5. These elements are called,
Responda
-
Control attributes
-
Semantic elements
-
Graphic elements
-
Multimedia elements
Questão 4
Questão
Which is not suited for game applications?
Responda
-
Canvas
-
Svg
-
Both A & B
-
None of the above
Questão 5
Questão
The canvas element has a DOM method it is called.
Responda
-
getContext
-
getId
-
getElement
-
None of the above
Questão 6
Questão
The default value of "position" attribute is _________.
Responda
-
inherit
-
relative
-
fixed
-
absolute
Questão 7
Questão
Which css property you will use if you want to add some margin between a border and its inner text ?
Responda
-
spacing
-
margin
-
padding
-
inner-margin
Questão 8
Questão
p {line-height: 150%;}.
What type of selector is used in this case?
Responda
-
class Selectors
-
element Selectors
-
id Selectors
-
none of the mentioned
Questão 9
Questão
By applying an ___________ a style can be applied to just a single tag.
Responda
-
class rule
-
element rule
-
id rule
-
none of the mentioned
Questão 10
Questão
A ___________ is used to define a special state of an element.
Responda
-
pseudo-tag
-
pseudo-element
-
pseudo-id
-
pseudo-class
Questão 11
Questão
Which of the following JavaScript function of String object returns the character at the specified index?
Responda
-
charAt()
-
charCodeAt()
-
concat()
-
indexOf()
Questão 12
Questão
What is the correct JavaScript syntax to write "Hello World"?
Responda
-
System.out.println("Hello World");
-
println ("Hello World");
-
document.write("Hello World");
-
response.write("Hello World");
Questão 13
Questão
Which of the following is not considered a JavaScript operator?
Questão 14
Questão
Which of the looping statements is/are supported by PHP?
i) for loop ii) while loop iii) do-while loop iv) foreach loop
Responda
-
(i) and (ii)
-
(i), (ii) and (iii)
-
All of the mentioned
-
None of the mentioned
Questão 15
Questão
What will be the output of the following php code
< ?php
$num = 1;
$num1 = 2;
print $num . "+". $num1 ;
?>
Questão 16
Questão
What will be the output of the following code?
< ?php
function track() {
static $count = 0;
$count++;
echo $count ;
}
track();
track();
track();
?>
Questão 17
Questão
PHP scripts are executed on _________
Questão 18
Questão
What will be the output of the following code?
$var = 10;
function fn ()
{
$var = 20;
return $var;
}
fn ();
echo $var;
Responda
-
10
-
20
-
Undefined Variable
-
Syntax Error
Questão 19
Questão
What will be the output of the following PHP code?
echo 30*5 . 7;
Responda
-
150.7
-
1507
-
171
-
error will occur
Questão 20
Questão
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:
Responda
-
include()
-
require()
-
nowarn()
-
getFile(false)
Questão 21
Questão
Which of the following is used in perl?
Responda
-
else if
-
elseif
-
elsif
-
elif
Questão 22
Questão
What will be printed by the Perl code below?
my @a = (0, 1, 2);
my $b = @a;
print $b;
Questão 23
Questão
What gets printed in Perl?
my $str = 'a\\b\n';
print $str;
Responda
-
ab(newline)
-
a\b(newline)
-
a\b\n
-
a\\b(newline)
-
a\\b\n
Questão 24
Questão
What gets printed in Perl?
my $a = '123';
my $b = '0123';
if ($a == $b) {
print "same";
} else {
print "different";
}
Responda
-
same
-
different
-
the code is ill-formed
Questão 25
Questão
What will the @b array consist of in Perl?
my @a = (10, 5, 1);
my @b = sort @a;
Responda
-
(1, 5, 10)
-
(10, 5, 1)
-
(1, 10, 5)
-
(5, 10, 1)
-
( )
Questão 26
Questão
What will be printed in Perl?
print 'a';
BEGIN {
print 'b';
}
sub foo {
print 'c';
}
Questão 27
Questão
what does the following python code do?
def a(b, c, d): pass
Responda
-
defines a list and initializes it
-
defines a function, which does nothing
-
defines a function, which passes its parameters through
-
defines an empty class
Questão 28
Questão
What is the output of the following python code ?
print(type([1,2]))
Responda
-
<class 'tuple'>
-
<class 'int'>
-
<class 'set'>
-
<class 'dictionary'>
-
<class 'list'>
Questão 29
Questão
what is the output of the below program in python?
a = [1,2,3,None,(),[],]
print(len(a))
Questão 30
Questão
What gets printed in python?
x = 4.5
y = 2
print(x//y)
Questão 31
Questão
What gets printed in Python?
print(r"\nwoow")
Responda
-
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
Questão 32
Questão
What gets printed in Python?
print(0xA + 0xa)
Responda
-
0xA + 0xa
-
0xA 0xa
-
14
-
20
-
0x20
Questão 33
Questão
What gets printed in Python?
name = "snow storm"
print(name[6:8])
Responda
-
st
-
sto
-
to
-
tor
-
Syntax Error
Questão 34
Questão
Which numbers are printed in Python?
for i in range(2):
print(i)
for i in range(4,6):
print(i)
Responda
-
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
Questão 35
Questão
What gets printed in Python?
x = "foo "
y = 2
print(x + y)
Responda
-
foo
-
foo foo
-
foo 2
-
2
-
An exception is thrown
Questão 36
Questão
What gets printed in Python?
foo = (3, 4, 5)
print(type(foo))
Responda
-
<class 'int'>
-
<class 'list'>
-
<class 'tuple'>
-
<class 'dict'>
-
<class 'set'>
Questão 37
Questão
What gets printed in Python?
names = ['Amir', 'Barry', 'Chales', 'Dao']
print(names[-1][-1])
Questão 38
Questão
What gets printed in Python?
numbers = [1, 2, 3, 4]
numbers.append([5,6,7,8])
print(len(numbers))
Responda
-
4
-
5
-
8
-
12
-
An exception is thrown
Questão 39
Questão
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?
Responda
-
list
-
set
-
dictionary
-
All of the above
-
None of the above
Questão 40
Questão
What gets printed in Python?
my_tuple = (1, 2, 3, 4)
my_tuple.append( (5, 6, 7) )
print(len(my_tuple))
Responda
-
1
-
2
-
5
-
7
-
An exception is thrown
Questão 41
Questão
What gets printed in Python?
x = sum(range(5))
print(x)
Responda
-
4
-
5
-
10
-
15
-
An exception is thrown
Questão 42
Questão
Which of the following is the way to create comments in PHP?
Responda
-
// commented code to end of line
-
/* commented code here */
-
# commented code to end of line
-
all of the above
Questão 43
Questão
What gets printed in PHP?
$var = 'false';
if ($var) {
echo 'true';
} else {
echo 'false';
}
Questão 44
Questão
Which of the following is used to declare a constant in PHP?
Responda
-
const
-
constant
-
define
-
#pragma
-
def
Questão 45
Questão
What gets printed?
<?php
$RESULT = 11 + 011 + 0x11;
echo "$RESULT";
?>
Questão 46
Questão
Which tags are most commonly used by search engines?
Responda
-
Paragraph
-
Heading
-
Title
-
All of above
Questão 47
Questão
Banners, buttons, dividers, clipart and other simple images usually work best as ?
Questão 48
Questão
Which built-in method returns the character at the specified index?
Responda
-
characterAt()
-
getCharAt()
-
charAt()
-
None of the above
Questão 49
Questão
var city = new Array("delhi", "agra", "akot", "aligarh","palampur");
console.log(city.pop());
Questão 50
Questão
What does isNaN function do?
Responda
-
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.
-
None of the above
Questão 51
Questão
CDN stands for_______
Responda
-
Content Distribution Network
-
Common Distribution Network
-
Collective Distribution Network
-
None of these