Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What are pipes in Angular?
A. Functions that transform data in templates
B. Routing features
C. Data connectors
D. HTTP interceptors
Direction: Choose the correct option

Q2.

Which pipe converts text to uppercase?
A. capitalize
B. titlecase
C. lowercase
D. uppercase
Direction: Choose the correct option

Q3.

How do you chain multiple pipes?
A. Using pipe symbol multiple times: `{{ value | pipe1 | pipe2 }}`
B. Using comma: `{{ value, pipe1, pipe2 }}`
C. Using dots: `{{ value.pipe1().pipe2() }}`
D. Not possible
Direction: Choose the correct option

Q4.

What does the `async` pipe do?
A. Subscribes to an observable or promise and returns the latest value
B. Handles asynchronous operations
C. Creates async functions
D. Manages HTTP requests
Direction: Choose the correct option

Q5.

What is the purpose of the `date` pipe?
A. Converts strings to dates
B. Parses dates
C. Creates new dates
D. Formats dates according to locale rules
Direction: Choose the correct option

Q6.

What is the `currency` pipe used for?
A. Converts to currency
B. Creates currency
C. Adds dollar sign
D. Formats a number as currency
Direction: Choose the correct option

Q7.

What does the `json` pipe do?
A. Parses JSON
B. Creates JSON
C. Validates JSON
D. Converts a value to JSON string
Direction: Choose the correct option

Q8.

Can pipes accept parameters?
A. Only with async pipe
B. Only built-in pipes
C. Yes, using colon `:` after pipe name
D. No, only one parameter
Direction: Choose the correct option

Q9.

What is the `slice` pipe used for?
A. Slices arrays
B. Creates a new array or string containing a subset of elements
C. Slices strings
D. All of the above
Direction: Choose the correct option

Q10.

What is the `percent` pipe used for?
A. Formats a number as percentage
B. Converts to percent
C. Calculates percentage
D. Adds percent sign