stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
TypeScript Flashcards | StudBud
Explore
/
TypeScript
TypeScript
24 terms
·
StudBud Administration
·
265 plays
Imported from external platform
Flashcards
24 cards
F
Practice quiz
P
Host live
L
Questions
24
Answers
1
Interfaces are instantiated with the `new` keyword
True
False
2
What company developed Angular?
Google
Amazon
Microsoft
Facebook
3
Which of these is NOT initially defined in the @Component decorator?
selector
templateUrl
styleUrls
providers
4
Which of the following is NOT an out of the box pipe in Angular?
titlecase
lowercase
capitalize
currency
5
Which code snippet is most correct?
1
4
3
2
6
Compilation errors...
Can still allow the code to compile
Instantly break everything
7
_____ members cannot be accessed outside the class they are defined in.
Public
Private
Protected
All of these
8
What will happen with this code?
Compilation error
Compilation error and runtime error
john === {id: 1, name: 'Papa John', subject: 'math'}
Runtime error
9
Which function gives you access to data within an Observable?
subscribe()
tap()
of()
pipe()
10
What are the benefits of Typescript?
Impose coding guidelines
Use class based object oriented programming
It helps in code structuring
All of the above
11
Angular pipes let you declare display-value transformations in your template HTML.
False
True
12
Which Object Oriented concepts are supported by Typescript?
All of the above
Interfaces
Classes
Modules
13
Which of these are NOT a type of directive in Angular?
Models
Structural
Components
Attribute
14
Which company developed and designed TypeScript?
Amazon
Microsoft
Google
Oracle
15
Which is NOT provided with Angular?
DOM Manipulation for you
Built in Routing
A production web server
An HTTP Client
16
_____ members can be accessed from derived classes.
All of these
Protected
Private
Public
17
What will happen with this code?
john.name === 'Papa John'
Logic error
Compilation error
Runtime error
18
Angular fundamentally makes you think in terms of ________
Models
Widgets
Components
Pages
19
When using routing, the entire page refreshes when you navigate to a different url within your application.
True
False
20
Which programming languages influenced the creation of TypeScript?
Python, Ruby, Java
C#, Java, JavaScript
C, PHP, JavaScript
Rust, Scala, Go
21
What CLI command would you use to create a new component?
ng generate component <component-name>
ng generate <component-name>
ng new component <component-name>
ng create component <component-name>
22
What Angular-Cli command creates a new project
ng make <app-name>
ng new <app-name>
ng generate <app-name>
ng create <app-name>
23
How would you display a const called 'greeting' on your DOM in Angular?
${greeting}
[[ greeting ]]
{{ greeting }}
<%= greeting %>
24
What will be the value of message?
Compilation error
2345
'hello world'
2345 and compilation error