wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Mixed Training Assignment

Total questions: 54

Worksheet time: 27mins

Name
Class
Date
1.

How do you implement communication between sibling components?

a)

Using @Input decorator

b)

Using @Output decorator

c)

Using @EventEmitter decorator

d)

Using Custom Services

2.

Choose the correct form available in Angular Framework which offers model validations.

a)

Template Form

b)

Reactive Form

c)

Simple Form

d)

All of above

3.

Choose the different ways of using custom services in Angular application.

a)

Register the service as Root

b)

Register the service in providers array of component

c)

Register the service as platform

d)

All of above

4.

What is eager loading in Angular?

a)

Eager loading is loading all the modules at once when you render first Angular element on your browser

b)

Eager loading is loading the modules on demand

c)

Eager loading is loading required modules when the first request is sent to an application

d)

None of above

5.

What is property binding in Angular framework?

a)

Using ng-bind you can bind the model properties to HTML elements

b)

Using DOM properties you can bind the model properties to HTML elements

c)

Using {{interpolation}} you can bind the model properties to HTML elements

d)

None of above

6.

Choose different relative sizes.

a)

centimeter

b)

points

c)

rem

d)

Pixel

7.

Choose the correct form input states.

a)

:selection

b)

:invalid

c)

:optional

d)

:required

8.

What do you use for interpolation syntax?

a)

# {expression}

b)

$ {expression}

c)

{{expression}}

d)

{expression}

9.

How do you declare the placeholder in SCSS?

a)

Using #

b)

Using $

c)

Using %

d)

Using {variable-name} directive

10.

What is the use of Promise.all()?

a)

a. Promise.all() will execute the logic only after completing the given list of promises assuming all promises are resolved

b)

a. Promise.all() returns a boolean value only when all the promises are completed in a given list

c)

a. Promise.all() will execute the logic immediately when one of the promise is completed from a given list

d)

none of the above

11.

What is the use of Promise.race()?

a)

Promise.race() will execute the logic only after completing the given list of promises assuming all promises are resolved

b)

Promise.race() returns a boolean value only when all the promises are completed in a given list

c)

Promise.race() will execute the logic immediately when one of the promise is completed from a given list

d)

None of above

12.

How do you implement an AJAX request in ECMA2015?

a)

By using XmlHttpRequest API

b)

By using $.ajax() function

c)

By using fetch() function

d)

All of above

13.

What is the return type of fetch() function?

a)

A promise object

b)

A promise object of type response

c)

Void

d)

None of above

14.

Choose the new methods of string type in ECMA2015?

a)

startsWith(), includes(), endsWith()

b)

startsWith(), contains(), endsWith()

c)

find(), remove(), truncate()

d)

None of above

15.

What is transpiling in Typescript?

a)

Transpiling is taking a source code of JavaScript and convert it to another version of JavaScript

b)

Transpiling is taking a source code of Typescript and convert it to specific version of JavaScript

c)

Transpiling is taking a source code of one language and produce its equivalent in another language.

d)

None of above

16.

What is superset in Typescript?

a)

Define the robust language which fills the gap of JavaScript during the development of large scale applications

b)

it is a tool

c)

it is a template page

d)

None of above

17.

Does let keyword get hoisted?

a)

YES

b)

NO

c)

None of above

18.

How to declare a heterogeneous array in Typescript?

a)

To define heterogeneous array do not use type annotation

b)

To define heterogeneous array use any type

c)

To define heterogeneous array use let keyword

d)

To define heterogeneous array use const keyword

19.

Choose the options which you can not declared in JavaScript but can be declared in Typescript.

a)

Generics

b)

Variables

c)

Classes

d)

Call back functions

20.

Which of the following best describes a Hybrid App?

a)

Built purely using native SDKs.

b)

Runs entirely in a browser without native code.

c)

Combines web technologies with a native wrapper using WebView.

d)

Written only in Kotlin.

21.

Which of the following does NOT use a WebView internally for UI rendering?

a)

Ionic

b)

Cordova

c)

React Native

d)

Capacitor

22.

Which of the following is NOT a suitable use case for WebView?

a)

Internal enterprise dashboard.

b)

Simple Terms & Conditions page.

c)

3D gaming app with heavy graphics.

d)

Embedded privacy policy.

23.

Why is @JavascriptInterface annotation required?

a)

To expose Kotlin/Java methods to JavaScript running in WebView.

b)

To load a JavaScript file from assets.

c)

To enable debugging in Chrome DevTools.

24.

Which tool allows debugging of WebView content in Chrome?

a)

Android Monitor

b)

chrome://inspect/#devices

c)

logcat only

d)

Gradle Console

25.

Which app type provides instant updates without app store resubmissions?

a)

Native

b)

Hybrid

c)

Web / PWA

d)

Cross-native

26.

If your app needs pixel-perfect platform UX and advanced sensors, you should choose:

a)

WebView hybrid

b)

PWA

c)

Native

d)

Ionic

27.

Which framework uses a Skia GPU-based canvas for rendering UI?

a)

Flutter

b)

React Native

c)

Cordova

d)

WebView

28.

What is the main limitation of WebView compared to React Native or Flutter?

a)

Cannot access internet

b)

Browser-engine performance and JS single-thread limitations

c)

No support for JavaScript

d)

Cannot render HTML

29.

Which type of developer team is best suited for Hybrid apps?

a)

Native Android/iOS experts

b)

Web developers

c)

Game developers

d)

DevOps engineers

30.

What is the best practice for protecting against JavaScript Injection?

a)

Always enable JavaScript

b)

Disable JavaScript unless required

c)

Enable file access

d)

Allow mixed content

31.

Which setting blocks HTTP content on HTTPS pages?

a)

settings.blockMixedContent()

b)

settings.mixedContentMode = WebSettings.MIXED_CONTENT_NEVER_ALLOW

c)

settings.secureMode = true

d)

webViewClient.secureOnly()

32.

What’s the recommended method for running JS code from Kotlin?

a)

webView.loadUrl("javascript:...")

b)

evaluateJavascript()

c)

webView.runJS()

d)

webView.injectScript()

33.

Which Gradle file defines dependencies and build settings for a specific module?

a)

build.gradle (Project-level)

b)

gradle-wrapper.properties

c)

build.gradle (Module: app)

d)

settings.gradle

34.

Which of the following is a feature of ES6?

a)

None of above

b)

Function hoisting

c)

Arrow functions

d)

Global variables

35.

Which of the following is a feature of TypeScript?

a)

Static typing

b)

Dynamic typing

c)

None of above

d)

Both a and b

36.

What is the purpose of the 'await' keyword in JavaScript?

a)

None of above

b)

To create a new promise

c)

To define a function that returns a promise

d)

To pause the execution of a function until a promise is resolved

37.

How do you create a service in Angular?

a)

By using the @Module decorator

b)

By using the @Service decorator

c)

By using the @Component decorator

d)

By using the @Injectable decorator

38.

Which of the following decorators is used to define a component in Angular?

a)

@Component

b)

@Directive

c)

@Injectable

d)

@NgModule

39.

What is the purpose of the 'ngFor' directive in Angular?

a)

To handle events

b)

To bind data to a component

c)

To iterate over a collection

d)

To create a form

40.

What is the primary purpose of the 'async' keyword in JavaScript?

a)

To pause the execution of a function until a promise is resolved

b)

None of the above

c)

To indicate that a function will return a promise

d)

To define a function that runs synchronously

41.

Which of the following is a feature of React?

a)

Direct DOM manipulation

b)

Two-way data binding

c)

None of the above

d)

Virtual DOM

42.

How do you define a mixin in SCSS?

a)

Using @mixin directive

b)

Using @extend directive

c)

Using @include directive

d)

Using @function directive

43.

What is the purpose of the 'async' keyword in JavaScript?

a)

To create a new promise

b)

To handle errors in promises

c)

To pause the execution of a function

d)

To define a function that runs asynchronously

44.

What is the primary purpose of Angular's Dependency Injection?

a)

To handle routing

b)

To manage application state

c)

To create reusable components

d)

To provide services to components

45.

Which lifecycle hook is called after Angular has initialized all data-bound properties of a directive?

a)

ngOnInit

b)

ngOnChanges

c)

ngOnDestroy

d)

ngAfterViewInit

46.

What is the purpose of the 'ngFor' directive in Angular?

a)

To handle events

b)

To iterate over a collection

c)

To bind data to a component

d)

To create a form

47.

What is the main advantage of using promises in JavaScript?

a)

They allow for synchronous code execution

b)

None of above

c)

They simplify error handling in asynchronous operations

d)

They eliminate the need for callbacks

48.

What is the purpose of the 'bind' method in JavaScript?

a)

To create a new function with a specific 'this' value

b)

To merge two objects

c)

None of above

d)

To bind an event listener to an element

49.

What is Android?

a)

a) A Programming Language

b)

b) A Web Browser

c)

c) An Operating System

d)

d) A Graphics Editor

50.

11. What is the purpose of the `onCreate()` method in an Android Activity?

a)

a) Destroy the Activity

b)

b) Save data to the database

c)

c) Initialize the Activity components

d)

d) Pause the Activity

51.

What is the Android SDK?

a)

a) A collection of Android app guidelines

b)

b) A software development kit for creating Android apps

c)

c) A web-based app store

d)

d) A device for running Android apps

52.

What is `View Binding` in Android development?

a)

a) A system service manager

b)

b) Link UI components directly to code

c)

c) A layout animator

d)

d) A way to connect database tables

53.

23. Which method is used to display a Toast message in Android?

a)

a) makeText()

b)

b) showToast()

c)

c) displayToast()

d)

d) createToast()

54.

. What is the Android Emulator used for?

a)

Running apps on real devices

b)

Emulating Android devices on a computer for testing purposes

c)

Creating Android apps

d)

Generating app code