OpenSource Programming

Descripción

ThirdYear Third Year Test sobre OpenSource Programming, creado por Faheem Ahmed el 23/03/2018.
Faheem Ahmed
Test por Faheem Ahmed, actualizado hace más de 1 año
Faheem Ahmed
Creado por Faheem Ahmed hace más de 6 años
998
0

Resumen del Recurso

Pregunta 1

Pregunta
How can you create an e-mail link?
Respuesta
  • <mail href="a@b.com">
  • <mail>a@b.com</mail>
  • <a href="a@b.com">
  • <a href="mailto:a@b.com">

Pregunta 2

Pregunta
colspan=n can be added to only what tag?
Respuesta
  • <table>
  • <td>
  • <tr>

Pregunta 3

Pregunta
The following elements <header>, <footer>, <article>, <section> are the new elements in HTML5. These elements are called,
Respuesta
  • Control attributes
  • Semantic elements
  • Graphic elements
  • Multimedia elements

Pregunta 4

Pregunta
Which is not suited for game applications?
Respuesta
  • Canvas
  • Svg
  • Both A & B
  • None of the above

Pregunta 5

Pregunta
The canvas element has a DOM method it is called.
Respuesta
  • getContext
  • getId
  • getElement
  • None of the above

Pregunta 6

Pregunta
The default value of "position" attribute is _________.
Respuesta
  • inherit
  • relative
  • fixed
  • absolute

Pregunta 7

Pregunta
Which css property you will use if you want to add some margin between a border and its inner text ?
Respuesta
  • spacing
  • margin
  • padding
  • inner-margin

Pregunta 8

Pregunta
p {line-height: 150%;}. What type of selector is used in this case?
Respuesta
  • class Selectors
  • element Selectors
  • id Selectors
  • none of the mentioned

Pregunta 9

Pregunta
By applying an ___________ a style can be applied to just a single tag.
Respuesta
  • class rule
  • element rule
  • id rule
  • none of the mentioned

Pregunta 10

Pregunta
A ___________ is used to define a special state of an element.
Respuesta
  • pseudo-tag
  • pseudo-element
  • pseudo-id
  • pseudo-class

Pregunta 11

Pregunta
Which of the following JavaScript function of String object returns the character at the specified index?
Respuesta
  • charAt()
  • charCodeAt()
  • concat()
  • indexOf()

Pregunta 12

Pregunta
What is the correct JavaScript syntax to write "Hello World"?
Respuesta
  • System.out.println("Hello World");
  • println ("Hello World");
  • document.write("Hello World");
  • response.write("Hello World");

Pregunta 13

Pregunta
Which of the following is not considered a JavaScript operator?
Respuesta
  • new
  • this
  • delete
  • typeof

Pregunta 14

Pregunta
Which of the looping statements is/are supported by PHP? i) for loop ii) while loop iii) do-while loop iv) foreach loop
Respuesta
  • (i) and (ii)
  • (i), (ii) and (iii)
  • All of the mentioned
  • None of the mentioned

Pregunta 15

Pregunta
What will be the output of the following php code < ?php $num = 1; $num1 = 2; print $num . "+". $num1 ; ?>
Respuesta
  • 3
  • 1+2
  • 1.+.2
  • Error

Pregunta 16

Pregunta
What will be the output of the following code? < ?php function track() { static $count = 0; $count++; echo $count ; } track(); track(); track(); ?>
Respuesta
  • 123
  • 111
  • 000
  • 011

Pregunta 17

Pregunta
PHP scripts are executed on _________
Respuesta
  • ISP Computer
  • Client Computer
  • Server Computer
  • It depends on PHP scripts

Pregunta 18

Pregunta
What will be the output of the following code? $var = 10; function fn () { $var = 20; return $var; } fn (); echo $var;
Respuesta
  • 10
  • 20
  • Undefined Variable
  • Syntax Error

Pregunta 19

Pregunta
What will be the output of the following PHP code? echo 30*5 . 7;
Respuesta
  • 150.7
  • 1507
  • 171
  • error will occur

Pregunta 20

Pregunta
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:
Respuesta
  • include()
  • require()
  • nowarn()
  • getFile(false)

Pregunta 21

Pregunta
Which of the following is used in perl?
Respuesta
  • else if
  • elseif
  • elsif
  • elif

Pregunta 22

Pregunta
What will be printed by the Perl code below? my @a = (0, 1, 2); my $b = @a; print $b;
Respuesta
  • 0
  • 1
  • 2
  • 3
  • 0 1 2

Pregunta 23

Pregunta
What gets printed in Perl? my $str = 'a\\b\n'; print $str;
Respuesta
  • ab(newline)
  • a\b(newline)
  • a\b\n
  • a\\b(newline)
  • a\\b\n

Pregunta 24

Pregunta
What gets printed in Perl? my $a = '123'; my $b = '0123'; if ($a == $b) { print "same"; } else { print "different"; }
Respuesta
  • same
  • different
  • the code is ill-formed

Pregunta 25

Pregunta
What will the @b array consist of in Perl? my @a = (10, 5, 1); my @b = sort @a;
Respuesta
  • (1, 5, 10)
  • (10, 5, 1)
  • (1, 10, 5)
  • (5, 10, 1)
  • ( )

Pregunta 26

Pregunta
What will be printed in Perl? print 'a'; BEGIN { print 'b'; } sub foo { print 'c'; }
Respuesta
  • abc
  • bac
  • ab
  • ba
  • bca

Pregunta 27

Pregunta
what does the following python code do? def a(b, c, d): pass
Respuesta
  • defines a list and initializes it
  • defines a function, which does nothing
  • defines a function, which passes its parameters through
  • defines an empty class

Pregunta 28

Pregunta
What is the output of the following python code ? print(type([1,2]))
Respuesta
  • <class 'tuple'>
  • <class 'int'>
  • <class 'set'>
  • <class 'dictionary'>
  • <class 'list'>

Pregunta 29

Pregunta
what is the output of the below program in python? a = [1,2,3,None,(),[],] print(len(a))
Respuesta
  • syntax error
  • 7
  • 6
  • 4
  • 5

Pregunta 30

Pregunta
What gets printed in python? x = 4.5 y = 2 print(x//y)
Respuesta
  • 2.0
  • 2.25
  • 9.0
  • 20.25
  • 21

Pregunta 31

Pregunta
What gets printed in Python? print(r"\nwoow")
Respuesta
  • 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

Pregunta 32

Pregunta
What gets printed in Python? print(0xA + 0xa)
Respuesta
  • 0xA + 0xa
  • 0xA 0xa
  • 14
  • 20
  • 0x20

Pregunta 33

Pregunta
What gets printed in Python? name = "snow storm" print(name[6:8])
Respuesta
  • st
  • sto
  • to
  • tor
  • Syntax Error

Pregunta 34

Pregunta
Which numbers are printed in Python? for i in range(2): print(i) for i in range(4,6): print(i)
Respuesta
  • 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

Pregunta 35

Pregunta
What gets printed in Python? x = "foo " y = 2 print(x + y)
Respuesta
  • foo
  • foo foo
  • foo 2
  • 2
  • An exception is thrown

Pregunta 36

Pregunta
What gets printed in Python? foo = (3, 4, 5) print(type(foo))
Respuesta
  • <class 'int'>
  • <class 'list'>
  • <class 'tuple'>
  • <class 'dict'>
  • <class 'set'>

Pregunta 37

Pregunta
What gets printed in Python? names = ['Amir', 'Barry', 'Chales', 'Dao'] print(names[-1][-1])
Respuesta
  • A
  • r
  • Amir
  • Dao
  • o

Pregunta 38

Pregunta
What gets printed in Python? numbers = [1, 2, 3, 4] numbers.append([5,6,7,8]) print(len(numbers))
Respuesta
  • 4
  • 5
  • 8
  • 12
  • An exception is thrown

Pregunta 39

Pregunta
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?
Respuesta
  • list
  • set
  • dictionary
  • All of the above
  • None of the above

Pregunta 40

Pregunta
What gets printed in Python? my_tuple = (1, 2, 3, 4) my_tuple.append( (5, 6, 7) ) print(len(my_tuple))
Respuesta
  • 1
  • 2
  • 5
  • 7
  • An exception is thrown

Pregunta 41

Pregunta
What gets printed in Python? x = sum(range(5)) print(x)
Respuesta
  • 4
  • 5
  • 10
  • 15
  • An exception is thrown

Pregunta 42

Pregunta
Which of the following is the way to create comments in PHP?
Respuesta
  • // commented code to end of line
  • /* commented code here */
  • # commented code to end of line
  • all of the above

Pregunta 43

Pregunta
What gets printed in PHP? $var = 'false'; if ($var) { echo 'true'; } else { echo 'false'; }
Respuesta
  • true
  • false

Pregunta 44

Pregunta
Which of the following is used to declare a constant in PHP?
Respuesta
  • const
  • constant
  • define
  • #pragma
  • def

Pregunta 45

Pregunta
What gets printed? <?php $RESULT = 11 + 011 + 0x11; echo "$RESULT"; ?>
Respuesta
  • 11
  • 22
  • 33
  • 37
  • 39

Pregunta 46

Pregunta
Which tags are most commonly used by search engines?
Respuesta
  • Paragraph
  • Heading
  • Title
  • All of above

Pregunta 47

Pregunta
Banners, buttons, dividers, clipart and other simple images usually work best as ?
Respuesta
  • png
  • gif
  • jpg

Pregunta 48

Pregunta
Which built-in method returns the character at the specified index?
Respuesta
  • characterAt()
  • getCharAt()
  • charAt()
  • None of the above

Pregunta 49

Pregunta
var city = new Array("delhi", "agra", "akot", "aligarh","palampur"); console.log(city.pop());
Respuesta
  • delhi
  • palampur
  • agra
  • akot

Pregunta 50

Pregunta
What does isNaN function do?
Respuesta
  • 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

Pregunta 51

Pregunta
CDN stands for_______
Respuesta
  • Content Distribution Network
  • Common Distribution Network
  • Collective Distribution Network
  • None of these
Mostrar resumen completo Ocultar resumen completo

Similar

Web Designing & Development Full Tutorial
Nandkishor Dhekane
Test I. Introduction to web technologies
Angel Martínez Rodriguez
Front-End Web Development
Chanthy Ngin
Coding Quiz
ryanseaborne
front end developer test
joni jiniani
Intro to HTML
Balikkoftesi
Interview questions
Ryan O'Connor
ฺBootstraps 's pretest.
Wachirawit Jiwanit
HTML + CSS
Justina Sadikova
BGE HTML + CSS
Ian Simpson