NEW
Font size
WorksheetsMixed Training Assignment
Total questions: 54
Worksheet time: 27mins
How do you implement communication between sibling components?
Using @Input decorator
Using @Output decorator
Using @EventEmitter decorator
Using Custom Services
Choose the correct form available in Angular Framework which offers model validations.
Template Form
Reactive Form
Simple Form
All of above
Choose the different ways of using custom services in Angular application.
Register the service as Root
Register the service in providers array of component
Register the service as platform
All of above
What is eager loading in Angular?
Eager loading is loading all the modules at once when you render first Angular element on your browser
Eager loading is loading the modules on demand
Eager loading is loading required modules when the first request is sent to an application
None of above
What is property binding in Angular framework?
Using ng-bind you can bind the model properties to HTML elements
Using DOM properties you can bind the model properties to HTML elements
Using {{interpolation}} you can bind the model properties to HTML elements
None of above
Choose different relative sizes.
centimeter
points
rem
Pixel
Choose the correct form input states.
:selection
:invalid
:optional
:required
What do you use for interpolation syntax?
# {expression}
$ {expression}
{{expression}}
{expression}
How do you declare the placeholder in SCSS?
Using #
Using $
Using %
Using {variable-name} directive
What is the use of Promise.all()?
a. Promise.all() will execute the logic only after completing the given list of promises assuming all promises are resolved
a. Promise.all() returns a boolean value only when all the promises are completed in a given list
a. Promise.all() will execute the logic immediately when one of the promise is completed from a given list
none of the above
What is the use of Promise.race()?
Promise.race() will execute the logic only after completing the given list of promises assuming all promises are resolved
Promise.race() returns a boolean value only when all the promises are completed in a given list
Promise.race() will execute the logic immediately when one of the promise is completed from a given list
None of above
How do you implement an AJAX request in ECMA2015?
By using XmlHttpRequest API
By using $.ajax() function
By using fetch() function
All of above
What is the return type of fetch() function?
A promise object
A promise object of type response
Void
None of above
Choose the new methods of string type in ECMA2015?
startsWith(), includes(), endsWith()
startsWith(), contains(), endsWith()
find(), remove(), truncate()
None of above
What is transpiling in Typescript?
Transpiling is taking a source code of JavaScript and convert it to another version of JavaScript
Transpiling is taking a source code of Typescript and convert it to specific version of JavaScript
Transpiling is taking a source code of one language and produce its equivalent in another language.
None of above
What is superset in Typescript?
Define the robust language which fills the gap of JavaScript during the development of large scale applications
it is a tool
it is a template page
None of above
Does let keyword get hoisted?
YES
NO
None of above
How to declare a heterogeneous array in Typescript?
To define heterogeneous array do not use type annotation
To define heterogeneous array use any type
To define heterogeneous array use let keyword
To define heterogeneous array use const keyword
Choose the options which you can not declared in JavaScript but can be declared in Typescript.
Generics
Variables
Classes
Call back functions
Which of the following best describes a Hybrid App?
Built purely using native SDKs.
Runs entirely in a browser without native code.
Combines web technologies with a native wrapper using WebView.
Written only in Kotlin.
Which of the following does NOT use a WebView internally for UI rendering?
Ionic
Cordova
React Native
Capacitor
Which of the following is NOT a suitable use case for WebView?
Internal enterprise dashboard.
Simple Terms & Conditions page.
3D gaming app with heavy graphics.
Embedded privacy policy.
Why is @JavascriptInterface annotation required?
To expose Kotlin/Java methods to JavaScript running in WebView.
To load a JavaScript file from assets.
To enable debugging in Chrome DevTools.
Which tool allows debugging of WebView content in Chrome?
Android Monitor
chrome://inspect/#devices
logcat only
Gradle Console
Which app type provides instant updates without app store resubmissions?
Native
Hybrid
Web / PWA
Cross-native
If your app needs pixel-perfect platform UX and advanced sensors, you should choose:
WebView hybrid
PWA
Native
Ionic
Which framework uses a Skia GPU-based canvas for rendering UI?
Flutter
React Native
Cordova
WebView
What is the main limitation of WebView compared to React Native or Flutter?
Cannot access internet
Browser-engine performance and JS single-thread limitations
No support for JavaScript
Cannot render HTML
Which type of developer team is best suited for Hybrid apps?
Native Android/iOS experts
Web developers
Game developers
DevOps engineers
What is the best practice for protecting against JavaScript Injection?
Always enable JavaScript
Disable JavaScript unless required
Enable file access
Allow mixed content
Which setting blocks HTTP content on HTTPS pages?
settings.blockMixedContent()
settings.mixedContentMode = WebSettings.MIXED_CONTENT_NEVER_ALLOW
settings.secureMode = true
webViewClient.secureOnly()
What’s the recommended method for running JS code from Kotlin?
webView.loadUrl("javascript:...")
evaluateJavascript()
webView.runJS()
webView.injectScript()
Which Gradle file defines dependencies and build settings for a specific module?
build.gradle (Project-level)
gradle-wrapper.properties
build.gradle (Module: app)
settings.gradle
Which of the following is a feature of ES6?
None of above
Function hoisting
Arrow functions
Global variables
Which of the following is a feature of TypeScript?
Static typing
Dynamic typing
None of above
Both a and b
What is the purpose of the 'await' keyword in JavaScript?
None of above
To create a new promise
To define a function that returns a promise
To pause the execution of a function until a promise is resolved
How do you create a service in Angular?
By using the @Module decorator
By using the @Service decorator
By using the @Component decorator
By using the @Injectable decorator
Which of the following decorators is used to define a component in Angular?
@Component
@Directive
@Injectable
@NgModule
What is the purpose of the 'ngFor' directive in Angular?
To handle events
To bind data to a component
To iterate over a collection
To create a form
What is the primary purpose of the 'async' keyword in JavaScript?
To pause the execution of a function until a promise is resolved
None of the above
To indicate that a function will return a promise
To define a function that runs synchronously
Which of the following is a feature of React?
Direct DOM manipulation
Two-way data binding
None of the above
Virtual DOM
How do you define a mixin in SCSS?
Using @mixin directive
Using @extend directive
Using @include directive
Using @function directive
What is the purpose of the 'async' keyword in JavaScript?
To create a new promise
To handle errors in promises
To pause the execution of a function
To define a function that runs asynchronously
What is the primary purpose of Angular's Dependency Injection?
To handle routing
To manage application state
To create reusable components
To provide services to components
Which lifecycle hook is called after Angular has initialized all data-bound properties of a directive?
ngOnInit
ngOnChanges
ngOnDestroy
ngAfterViewInit
What is the purpose of the 'ngFor' directive in Angular?
To handle events
To iterate over a collection
To bind data to a component
To create a form
What is the main advantage of using promises in JavaScript?
They allow for synchronous code execution
None of above
They simplify error handling in asynchronous operations
They eliminate the need for callbacks
What is the purpose of the 'bind' method in JavaScript?
To create a new function with a specific 'this' value
To merge two objects
None of above
To bind an event listener to an element
What is Android?
a) A Programming Language
b) A Web Browser
c) An Operating System
d) A Graphics Editor
11. What is the purpose of the `onCreate()` method in an Android Activity?
a) Destroy the Activity
b) Save data to the database
c) Initialize the Activity components
d) Pause the Activity
What is the Android SDK?
a) A collection of Android app guidelines
b) A software development kit for creating Android apps
c) A web-based app store
d) A device for running Android apps
What is `View Binding` in Android development?
a) A system service manager
b) Link UI components directly to code
c) A layout animator
d) A way to connect database tables
23. Which method is used to display a Toast message in Android?
a) makeText()
b) showToast()
c) displayToast()
d) createToast()
. What is the Android Emulator used for?
Running apps on real devices
Emulating Android devices on a computer for testing purposes
Creating Android apps
Generating app code
