Explore topic-wise MCQs in Technical Programming.

This section includes 49 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the implicit keyword that is available in each function to access the arguments passed?

A. args
B. object
C. arguments
D. prototype
Answer» D. prototype
2.

Which keyword is used for inheritance?

A. extends
B. inherits
C. <
D. extend
Answer» B. inherits
3.

Which of the following is true for declaring a multiline string using backtick operators?

A. String should be enclosed within a pair of three backtick operators
B. String should be enclosed within a pair of four backtick operators
C. String should be enclosed within a pair of two backtick operators
D. Preserves white-space characters
Answer» E.
4.

'let' variables are

A. function scoped
B. block scoped
C. global scoped
D. read-only
Answer» C. global scoped
5.

How do you write an inline style specifying the font-size:12px and color:red; in JSX

A. style={{font-size:12,color:red}}
B. style={{fontSize:12px,color:red}}
C. style={fontSize:12px,color:red}
D. style={{font-size:12px,color:red}}
Answer» C. style={fontSize:12px,color:red}
6.

What happens when you call setState() inside render() method?

A. Repetitive output appears on the screen
B. Stack overflow error
C. Duplicate key error
D. Nothing happens. Life goes on!
Answer» C. Duplicate key error
7.

Which of the following is correct syntax for a button click event handler, foo?

A. <button onclick={this.foo()}>
B. <button onclick={this.foo}>
C. <button onClick={this.foo()}>
D. <button onClick={this.foo}>
Answer» E.
8.

Which method in a React Component is called after the component is rendered for the first time?

A. componentDidUpdate
B. componentDidMount
C. componentMounted
D. componentUpdated
Answer» C. componentMounted
9.

What's used to pass data to a component from outside?

A. setState
B. render with arguments
C. PropTypes
D. props
Answer» E.
10.

Which method in a React Component should you override to stop the component from updating?

A. willComponentUpdate
B. shouldComponentUpdate
C. componentDidUpdate
D. componentDidMount
Answer» C. componentDidUpdate
11.

How do you access a function fetch() from a h1 element in JSX?

A. <h1>{fetch()}</h1>
B. <h1>${fetch()}</h1>
C. <h1>{fetch}</h1>
D. <h1>${fetch}</h1>
Answer» B. <h1>${fetch()}</h1>
12.

Which Cordova Version Introduced Cordova CLI

A. 3.0
B. 2.0
C. 1.0
D. None of these
Answer» B. 2.0
13.

Which Mobile Platform is not Supported by Cordova

A. Android
B. IOS
C. Ubuntu
D. None of these
Answer» E.
14.

What technology does Cordova uses, for cross-platform mobile application development

A. JVM
B. Web
C. CLR
D. None of these
Answer» C. CLR
15.

Which of the following platform tools used to package Cordova application into a native application, runs on a single operating system only

A. Android SDK
B. BlackBarry SDKs
C. IOS SDK
D. None of these
Answer» D. None of these
16.

What type of license does Cordova projectis under

A. Creative Commons
B. BSD License
C. Apache License
D. Propritory
Answer» D. Propritory
17.

What is the typical filename of startup page file of an Cordova application.

A. index.html
B. index.htm
C. Config.xml
D. conf.xml
Answer» B. index.htm
18.

Angular 2 can detect when component data changes, and then automatically re-render the view to reflect that change.

A. True
B. False
C. Both
D. None
Answer» B. False
19.

Angular 2 is using . . . . . . . . to detect changes.

A. zone$.js
B. Scope.js
C. zone.js
D. zones.js
Answer» D. zones.js
20.

Which of the following is correct about Angular 2 Routing?

A. Routing helps in directing users to different pages based on the option they choose on the main page
B. Based on the option they choose, the required Angular Component will be rendered to the user
C. Both of the above
D. None
Answer» D. None
21.

A special mention is required about the children element marked with the . . . . . . . . . . . directive attribute. This attribute qualifies the template that will be displayed when no other value defined by its ngSwitchWhen siblings matches the parent conditional expression.

A. ngDefault
B. ngTemplateDefault
C. ngDefaultSwitch
D. ngSwitchDefault
Answer» E.
22.

On the opposite side of event bindings (()) lie Angular's square-bracket syntax ([]) which signify a . . . . . .

A. property binding
B. class binding
C. style binding
D. Both A & B
Answer» E.
23.

What are the new features of Angular2?

A. Component-Based
B. Directives
C. Dependency Injection
D. All of these
Answer» E.
24.

Since Angular 2 defines a set of built-in directives, the . . . . . . . . method passes them in a similar way in order to make them available in the entire application in order to prevent us from code duplications.

A. startup
B. bootstrap
C. constructor
D. initialization
Answer» C. constructor
25.

The ______ directive substitutes the normal href property and makes it easier to work with route links in Angular 2.

A. RouterLink
B. RouterRend
C. RouterLike
D. RouterLayer
Answer» B. RouterRend
26.

Angular 2 components can be described using ________is a way to do some meta-programming.

A. controllers, controller
B. loaders, loader
C. typescripts, typescript
D. decorators, decorator
Answer» E.
27.

Angular 2 integrates easily with NativeScript, allowing you to code your native app in a . . . . . . . . . style that can run on any mobile device platform.

A. declarative
B. imperative
C. interrogative
D. exclamatory
Answer» B. imperative
28.

Which of the following are the simplest NoSQL databases

A. Key-value
B. Wide-column
C. Document
D. All of the mentioned
Answer» B. Wide-column
29.

Most NoSQL databases support automatic __________, meaning that you get high availability and disaster recove

A. processing
B. scalability
C. replication
D. All of the mentioned
Answer» D. All of the mentioned
30.

NoSQL databases is used mainly for handling large volumes of ______________ dat

A. unstructured
B. structured
C. semi-structured
D. All of the mentioned
Answer» B. structured
31.

________ stores are used to store information about networks, such as social connection

A. Key-value
B. Wide-column
C. Document
D. Graph
Answer» E.
32.

In controllers, model data is accessed via $scope object.

A. false
B. True
Answer» C.
33.

AngularJS Expressions are written inside double braces like {{ expression}}.

A. false
B. true
Answer» C.
34.

Scope act as glue between controller and view.

A. true
B. false
Answer» B. false
35.

Using factory method, we first define a factory and then assign method to it.

A. false
B. true
Answer» C.
36.

Use novalidate with a form declaration to disable any browser specific validation.

A. true
B. false
Answer» B. false
37.

Which of the following is true about $dirty flag?

A. $dirty flag states that value has been changed.
B. $dirty flag states that form has invalid data.
C. Both of the above.
D. None of the above.
Answer» B. $dirty flag states that form has invalid data.
38.

AngularJS expressions behave in same way as ng-bind directives.

A. True
B. False
Answer» C.
39.

What is deep linking in AngularJS?

A. Deep linking allows you to encode the state of application in the URL so that it can be bookmarked.
B. Deep linking is a SEO based technique.
C. Deep linking refers to linking various views to a central page.
D. None of the above.
Answer» B. Deep linking is a SEO based technique.
40.

Which of the following API is a MUST for every ReactJS component?

A. getInitialState
B. render
C. renderComponent
D. None
Answer» D. None
41.

Props are __________ into other components

A. Injected
B. Methods
C. Both A and B
D. All of these
Answer» C. Both A and B
42.

How can you access the state of a component from inside of a member function?

A. this.getState()
B. this.prototype.stateValue
C. this.state
D. this.values
Answer» E.
43.

What are the limitations of ReactJS?

A. React is only for view layer of the app so we still need the help of other technologies to get a complete tooling set for development
B. React is using inline templating and JSX. This can seem awkward to some developers
C. The library of react is too large
D. All of these
Answer» E.
44.

What is ReactJS?

A. Server-side Framework
B. User-interface framework
C. Both
D. None
Answer» D. None
45.

At the highest level, React components have lifecycle events that fall into

A. Initialization
B. State/Property Updates
C. Destruction
D. All of these
Answer» E.
46.

What are the advantages of React JS?

A. React can be used on client and as well as server side too
B. Using React increases readability and makes maintainability easier. Component, Data patterns improves readability and thus makes it easier for manitaining larger apps
C. React can be used with any other framework (Backbone.js, Angular.js) as it is only a view layer
D. All of the above
Answer» E.
47.

How does React handle Web Accessibility Initiative - Accessible Rich Internet Applications (WAI-ARIA) standard?

A. aria-* HTML attributes are fully supported in JSX. Where most DOM properties and attributes in React are camelCased, these attributes should be lowercased
B. ria-* attributes should be converted to camelCase like other attributes eg. className, onChange and so on
C. React processes aria-* attributes separately and update the DOM for accessibility if the user requires it
D. React is yet to support WAI-ARIA standard
Answer» E.
48.

What does the “webpack” command do?

A. Transpiles all the Javascript down into one file
B. Runs react local development server
C. Both A and B
D. None
Answer» B. Runs react local development server
49.

What is a react.js in MVC?

A. Controller
B. Middleware
C. Model
D. Router
Answer» B. Middleware