TypeScript Quiz

TypeScript Quiz

1 / 28

What is TypeScript?

2 / 28

Which of the following is the correct way to declare a variable in TypeScript?

3 / 28

How do you define an interface in TypeScript?

4 / 28

Which keyword is used to specify that a class implements an interface?

5 / 28

What is the purpose of the readonly modifier in TypeScript?

6 / 28

Which of the following types is not a basic type in TypeScript?

7 / 28

How do you specify an optional property in an interface?

8 / 28

Which of the following statements is true about TypeScript?

9 / 28

What is the output type of the following function in TypeScript?

function greet(): string {    return "Hello, World!";}

Click on Extem for view full code

10 / 28

What is the result of 5 + '5' in JavaScript?

11 / 28

Which function is used to print something in the console in JavaScript?

12 / 28

What keyword is used to declare a variable in JavaScript?

13 / 28

What does DOM stand for in JavaScript?

14 / 28

What does the CSS property "transition" do?

15 / 28

Which CSS selector targets elements based on their attribute values?

16 / 28

Which CSS property is used to create a shadow effect around an element?

17 / 28

What does the CSS property "display: none;" do?

18 / 28

Which CSS property is used to control the spacing between lines of text within an element?

19 / 28

What is the default value of the "position" property in CSS?

20 / 28

How do you comment in CSS?

21 / 28

How can you include CSS in your HTML document?

22 / 28

What does the "float" property in CSS do?

23 / 28

Which CSS property is used to add rounded corners to an element?

24 / 28

What does the "box-sizing" property in CSS control?

25 / 28

  1. How do you select an element with the id "example" in CSS?

26 / 28

Which CSS property is used to change the text color of an element?

27 / 28

What does CSS stand for?

28 / 28

What is the correct HTML tag for inserting a line break?

Your score is

The average score is 92%

0%

Scroll to Top