Sie sind auf Seite 1von 11

HTML5

Q 1 - Is HTML5 backward compatible with old browsers?

A - true

B - false

Q 2 - Which of the following tag represents a section of the document intended for navigation in
HTML5?

A - footer

B - nav

C - section

D - dialog

Q 3 - Which of the following input control accepts only numerical value in Web Form 2.0?

A - week

B - time

C - number

D - range

Q 4 - Which of the following is true about Cookies?

A - Cookies are included with every HTTP request, thereby slowing down your web application by
transmitting the same data.

B - Cookies are included with every HTTP request, thereby sending data unencrypted over the
internet.

C - Cookies are limited to about 4 KB of data . Not enough to store required data.

D - All of the above.

Q 5 - Which of the following is correct about WebSockets in HTML5?

A - Web Sockets is a next-generation bidirectional communication technology for web applications


which operates over a single socket and is exposed via a JavaScript interface in HTML 5 compliant
browsers.

B - Once you get a Web Socket connection with the web server, you can send data from browser to
server by calling a send() method, and receive data from server to browser by an onmessage event
handler.
C - Both of the above.

D - None of the above.

Q 6 - Which of the following is correct about geolocation api in HTML5?

A - The geolocation APIs work with a new property of the global navigator object.

B - The geolocation object is a service object that allows widgets to retrieve information about the
geographic location of the device.

C - Both of the above.

D - None of the above.

Q 7 - Which of the following attribute specifies whether or not a user is allowed to drag an element?

A - drag

B - content

C - context

D - draggable

Q 8 - Which of the following attribute triggers event when a context menu is triggered?

A – oncontextmenu

B - ondrag

C - ondragend

D - ondragenter

Q 9 - Which of the following attribute triggers event when dragged element is being dropped?

A - ondrop

B - ondurationchange

C - onemptied

D - onended

Q 10 - Which of the following attribute triggers event when the document goes offline?

A - onloadedmetadata

B - onloadstart

C - onmessage
D - onoffline

ECMA6
1) var declares a block-scoped variable
True
False

const declares a block-scoped variable


True
False

let declares a block-scoped variable


True
False

What is the final value of obj in the following example?


const obj = { foo: 1 }

obj.bar = 2

{ foo: 1 }
N/A, the above throws an error
{ foo: 1, bar: 2 }
{ foo: 1, 2: bar }

Which of the following statements is not true about this example?


const obj = {
outer: function() {
const self1 = this

const inner1 = () => {


const self2 = this

const inner2 = () => {


const self3 = this
}
}
}
}
self1 === self3
self2 === self3
self1 === self2
self2 !== self3

Which of the following statements is not true about this example?


const obj = {
outer: function() {
const self1 = this

function inner1() {
const self2 = this

function inner2() {
const self3 = this
}
}
}
}
self1 !== self3
self2 !== self3
self1 === self2
self2 !== self3

What would be the constructor of roger in the example below?


class Animal {
constructor(noise) {
this.noise = noise
}

speak() {
console.log(this.noise)
}
}

class Dog extends Animal {


constructor(size) {
super('bark!')

this.size = size
}
}

const roger = new Dog('large')

Animal
Dog
Object
Function

What is the result of the following?


const speed = 'quick'

`The ${speed} brown fox jumps over the lazy dog.`


TypeError
SyntaxError
'The speed brown fox jumps over the lazy dog.'
'The quick brown fox jumps over the lazy dog.'

Select the value of obj[123]


const obj = {

}
undefined
'party!'

What is the final value of array below?


const array = [1, 2, 3]
const extension = [4, 5, 6]

array = [...extension, ...array]

[1, 2, 3]
[1, 2, 3, 4, 5, 6]
[4, 5, 6, 1, 2, 3]

CCS3

1. Which of the following selector selects all elements of E that have the attribute attr that end with
the given value?
a) E[attr^=value]
b) E[attr$=value]
c) E[attr*=value]
d) none of the mentioned

2. Which of the following selector selects the elements that are checked?
a) E ~ F
b) ::after
c) :checked
d) none of the mentioned
3. Which of the following selector selects the elements that are the default among a set of similar
elements?
a) :default
b) :%
c) :disabled
d) none of the mentioned

4. Which of the following selector selects an element that has no children?


a) :empty
b) :nochild
c) :inheritance
d) :no-child

5. Which of the following selector selects the elements that are currently enabled?
a) :element
b) :empty
c) :enabled
d) none of the mentioned

6. Which of the following selector selects the element that is the first child of its parent that is of its
type?
a) :first-of-type
b) :last-child
c) ::first-line
d) ::first-letter

7. Which of the following selector selects elements that do not match the selector s?
a) :!(s)
b) :nth-child(s)
c) :not(s)
d) none of the mentioned

8. Which of the following selector selects an element if it’s the only child of its parent?
a) :root
b) :nth-oftype(n)
c) :only-child
d) none of the mentioned

9. Which of the following selector selects the element that is the target of a referring URI?
a) :target
b) :selection
c) ::selection
d) :URI

10. Which of the following selector applies styles to elements that are valid per HTML5 validations
set either with the pattern or type
attributes?
a) :valid
b) :required
c) :optional
d) :invalid

TYPESCRIPT

1) typescript is a language
a) open source
b) closed
c) free
d) a & c

2) TypeScript is influenced by
a) JavaScript
b) c#
c) java
d) all of them

3) typescript is of JavaScript
a) subset
b) superset
c) both of above
d) none of above

4) typescript is developed under


a) Oracle
b) Microsoft
c) Individually developed
d) None of above

5) typescript is available on which OS


a) LINUX
b) Windows
c) Both

6) Why typescript is developed


a) For short comings of JavaScript
b) For trans compiling Java
c) Both of above
d) None of above

7) typescript is supported in only without plugins


a) visual Studio
b) eclipse
c) NetBeans
d) none of them

8) which are additional features of typescript


a) type Inference
b) type erasure
c) interfaces
d) all of them

9) with typescript it is possible to use existing JavaScript code


a) true
b) false

10) typescript provides type checking at


a) run time
b) compile time
c) load time
d) none of above

11) typescript compiler use to check type when type is not given
a) type erasure
b) type inference
c) type annotations
d) none of above

12) is a feature backported from ECMAScript 6 in typescript


a) Classes
b) Modules
c) Both of them
d) None of them

13) For anonymous functions typescript use


a) “arrow” syntax
b) “dot” syntax
c) None of them

14) The “declaration file” .d.ts in typescript functions as an


a) Interface
b) Assembly
c) Both
d) None of them
15) A command line utility is provided install declaration files from the repositories.
a)
Casti
ngs
b)
Typin
g
c) Bindings
d) None of them

16) to encapsulate code Namespaces utilizes of javaScript


a) delayed-invoked function expression
b) immediately-invoked function expression
c) Runtime-invoked function expression
d) None

17) Name of typescript


compiler is a) Tsc
b) Tsp
c) Tcp
d) Scp

18) In typescript weakly or dynamically-typed structures are of type


a) Complex
b) Any
c) Dynamic
d) Var

19) Integers are represented by type


a) Int
b) Number
c) Int32
d) Int64

20) Syntactically, TypeScript is very similar to


a) javaScript
b) .Net
c) C#
d) Jscript.Net

Das könnte Ihnen auch gefallen