
D15B/ Web X.0 / Ca / Quiz 1 / 23-24 Even
Authored by Sukanya Roychowdhury
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the "null" and "undefined" types in TypeScript?
They represent boolean values
They indicate absence of a value
They are used for type casting
They are interchangeable with the "any" type
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
'keyof' can be used with index signatures to extract the index type
True
False
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the difference between interface and abstract class in TypeScript inheritance?
Interfaces define structure, abstract classes define behavior and partial structure.
Both define structure, but interfaces cannot have implementations.
Both define behavior, but interfaces cannot be instantiated.
There's no difference, they are interchangeable.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the $valid property in AngularJS form validation?
It indicates whether the form is visible.
It checks if the form is submitted.
It checks if the form is in a valid state based on defined validation rules.
It controls the visibility of form elements.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following popular frameworks is primarily written in TypeScript?
jQuery
React
Angular
Bootstrap
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a dependency in the context of Dependency Injection?
The AngularJS module
A service, object, or function that a component needs
The HTML template of a component
A type of directive in AngularJS
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the ng-view directive in ngRoute?
It defines the structure of the HTML template
It specifies the controller for a particular view
It is a placeholder where the content of the current route will be inserted
It handles AJAX requests in AngularJS
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?