
Quiz 1
Authored by Abhishek Chaudhari
Computers
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
26 questions
Show all answers
1.
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.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which component in TypeScript compiles .ts files into .js files?
TypeScript Parser
TypeScript Compiler
JavaScript Engine
TypeScript Module
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare a block-scoped variable in TypeScript?
var
let
const
Both b and c
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you import a module in TypeScript?
import { myModule } from './myModule';
require('./myModule');
load('./myModule');
fetch('./myModule');
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is not allowed in TypeScript because of strict type checking?
==
===
!==
All are allowed
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary advantage of TypeScript over JavaScript?
Faster execution time
Enhanced type safety during development
More concise syntax
Built-in support for browser execution
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for defining a named function in TypeScript?
function myFunction() {}
let myFunction = () => {}
const myFunction = function() {}
All of the above
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?
Similar Resources on Wayground
25 questions
CSC134_Chapter 1: Introduction to Computers
Quiz
•
University
25 questions
Ôn tập học kỳ 1 môn Tin học lớp 5
Quiz
•
5th Grade - University
29 questions
TMK TAHUN 5
Quiz
•
KG - University
21 questions
Microsoft word
Quiz
•
University
22 questions
Router Quiz for the Layer 3 connoisseur
Quiz
•
University
21 questions
DataCom 2
Quiz
•
University
23 questions
Los sistemas de información en los negocios globales contemporan
Quiz
•
University
22 questions
Weekly Quiz Privacy and Security in HIM
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University