Cross Platform Application Development

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 57

CROSS PLATFORM APPLICATION DEVELOPMENT

ASSIGNMENT :

Assignment Title: Flutter App with Back4App Integration

Assignment Description:

In this assignment, you will create a Flutter app that connects to Back4App, a Backend-as-a-Service (BaaS)
platform, to manage tasks. You will be responsible for setting up the Back4App backend, creating the
Flutter app, and implementing the necessary functionality to interact with the backend.

Assignment Steps:

Step 1: Set Up Back4App

Sign up for a Back4App account (if not already done).

Create a new Back4App app.

Create a class in Back4App named Task with columns title (String) and description (String).

Step 2: Flutter Setup

Create a new Flutter project.

Add the required dependencies to your pubspec.yaml file.

Initialize the Parse SDK in your Flutter app.

Step 3: Task List

Create a screen in your Flutter app to display a list of tasks.

Implement a function to fetch tasks from Back4App using the Back4App API.

Display the tasks in a list view with titles and descriptions.

Step 4: Task Creation (10 points)

Create a screen for adding new tasks.


Implement functionality to create and save tasks to Back4App.

Verify that newly created tasks appear in the task list.

Step 5: Task Details

Add a feature to view task details when a task is tapped in the task list.

Display the title and description of the selected task.

Step 6: Bonus Features

Add a feature to edit and update existing tasks.

Implement a feature for task deletion.

Add any additional features or enhancements you like.

Submission:

Submit the link to your GitHub repository where you've hosted your Flutter app code.

Include a short README explaining how to set up and run your app.

Provide a brief overview of any bonus features you've implemented (if any).

EC-1
QUIZ-1
what all searching supported in MongoDB

Question 1Answer

a.

All of the mentioned

b.

Field
c.

Regular expression searches

d.

Range queries

Feedback
The correct answer is: All of the mentioned

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text
PWA will work on Multiple platforms

Question 2Answer

a.

True

b.

False

Feedback
The correct answer is: True

Question 3
Correct

Mark 1.00 out of 1.00


Flag question

Question text
which of the following is true with respect to server-side rendering (a) Rendering apps with more static
content (b) Initial loads are slow (c) Full request-response cycle for each action

Question 3Answer

a.

a&c

b.

c.

d.

Feedback
The correct answer is: a & c

Question 4
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
Server-side scripting is? (a) programming that is executed on the server (b) programming that is executed
on the server and browser (c) browser will simply display the results

Question 4Answer
a.

b.

c.

a&b

d.

a & c

Feedback
The correct answer is: a & c

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text
what is true with respect to Monolithic architecture (a) Service startup takes time (b) It is loosely coupled
architecture. (c) Any changes in the data model affect the entire database (d) Monolithic put emphasis on
the whole project

Question 5Answer

a.

a b and d
b.

a b c and d

c.

a b and c

d.

a c and d

Feedback
The correct answer is: a c and d

Question 6
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
gRPC stands for

Question 6Answer

a.

google-proposed RPC

b.

google RPC

c.

Golang RPC
d.

general-purpose RPC

Feedback
The correct answer is: general-purpose RPC

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Ionic Framework will support a. Angular b. React

Question 7Answer

a.

b.

c.

a&b

d.

Non of these

Feedback
The correct answer is: a & b
Question 8
Correct

Mark 1.00 out of 1.00

Flag question

Question text
In micro services (a) Microservices always don't rely on each other. Therefore, no need to communicate
with each other. (b) As it is distributed system, it is a heavily involved model. (c) If you are using
Microservice architecture, you need to be ready for operations overhead. (d) You need skilled
professionals to support heterogeneously distributed microservices.

Question 8Answer

a.

a b c and d

b.

b c and d

c.

a b and c

d.

a c and d

Feedback
The correct answer is: b c and d

Question 9
Correct

Mark 1.00 out of 1.00


Flag question

Question text
Amongst which of the following is/are true about MongoDB?

Question 9Answer

a.

MongoDB is a cross-platform database

b.

High-performance database

c.

All of the mentioned above

d.

Document-oriented database

Feedback
The correct answer is: All of the mentioned above

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is a relation in RDBMS?

Question 10Answer
a.

Row

b.

Data Types

c.

Table

d.

Key

Feedback
The correct answer is: Table

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text
half of the web traffic is covered by mobile device

Question 11Answer

a.

True

b.

False
Feedback
The correct answer is: True

Question 12
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which one is correct with respect to MVC? (a) Model logic acts as a business layer. (b) View logic acts as a
display layer. (C) Controller logic acts as input control.

Question 12Answer

a.

b.

a, b & c

c.

d.

Feedback
The correct answer is: a, b & c

Question 13
Correct

Mark 1.00 out of 1.00


Flag question

Question text
Which of the following systems use RDMS?
a. Oracle
b. Microsoft SQLServer
c. Mangod DB
d. IBM

Question 13Answer

a.

a b c and d

b.

a b and d

c.

a and d are correct

d.
a and c are correct

Feedback
The correct answer is: a b and d

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text
which of the following is true with respect to Client-side rendering (a) More dynamism is involved (b)
More dynamism is involved (c) After the initial load, the response comes in fast or is computed locally

Question 14Answer

a.

b.

c.

a&b

d.

a ,b and c

Feedback
The correct answer is: a ,b and c
Question 15
Correct

Mark 1.00 out of 1.00

Flag question

Question text
browser without a user interface is called

Question 15Answer

a.

dos not exist

b.

Headless browser

c.

No UI browser

d.

No browser

Feedback
The correct answer is: Headless browser

Question 16
Correct

Mark 1.00 out of 1.00

Flag question
Question text
what is true with respect to Microservices (a) Service Startup is fast (b) Microservices are loosely coupled
architecture. (c) Changes done in a single data model do not affect other Microservices. (d) Microservices
focuses on products, not projects

Question 16Answer

a.

a b and c

b.

a c and d

c.

a b and d

d.

a b c and d

Feedback
The correct answer is: a b c and d

Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text
true with respect to Grpc (a) REST APIs use HTTP 1.1 (b) gRPC is 7 to 10 Times faster Message
Transmission (c) gRPC APIs use HTTP 2 and also HTTP 1.1 (d) gRPC APIs use HTTP 2 protocol and uses
binary format encapsulation

Question 17Answer
a.

a b and c

b.

a b and d

c.

b c and d

d.

a b c and d

Feedback
The correct answer is: a b and d

Question 18
Correct

Mark 1.00 out of 1.00

Flag question

Question text
what is true with respect to Hybrid Apps (a) Much slower than native apps (b) With hybrid app
development, dependent on a third-party platform to deploy the app’s wrapper (c) Customization support
is limited

Question 18Answer

a.

b and c
b.

a b and c

c.

d.

a and c

Feedback
The correct answer is: a b and c

Question 19
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Hybrid app (a) will not have full device access without a plugin (b) Code reusable

Question 19Answer

a.

only b correct

b.

a and b are correct

c.

None of these
d.

only a correct

Feedback
The correct answer is: a and b are correct

Question 20
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Monolithic architecture is like a big container in which all the software components of an application are
clubbed inside a single package.

Question 20Answer

a.

False

b.

True

Feedback
The correct answer is: True

Question 21
Correct

Mark 1.00 out of 1.00

Flag question

Question text
A document is a set of
Question 21Answer

a.

None of the mentioned

b.

Application pairs

c.

Activity pair set

d.

Key-value pairs

Feedback
The correct answer is: Key-value pairs

Question 22
Correct

Mark 1.00 out of 1.00

Flag question

Question text
The reason why I chose hybrid apps over native apps is, it works across multiple platforms

Question 22Answer

a.

True
b.

False

Feedback
The correct answer is: True

Question 23
Correct

Mark 1.00 out of 1.00

Flag question

Question text
what is true with respect to Native apps (a) Can be Used offline - faster to open and access anytime (b)
Allow direct access to device hardware that is either more difficult or impossible with web apps (c) Allow
the user to use device-specific hand gestures o Gets the approval of the app store they are intended for
(d) User can be assured of improved safety and security of the app

Question 23Answer

a.

a and b

b.

c and a

c.

b c and d

d.

a b c and d

Feedback
The correct answer is: a b c and d
Question 24
Correct

Mark 1.00 out of 1.00

Flag question

Question text
In Microservice (a) Microservices require a heavy investment. (b) It requires a less or no infrastructure
setup also. (c) We need excessive planning for managing operations overhead. (d) It cost a lot in staff
selection and maintenance.

Question 24Answer

a.

a b and c

b.

a b c and d

c.

a c and d

d.

b c and d

Feedback
The correct answer is: a c and d

Question 25
Correct

Mark 1.00 out of 1.00

Flag question
Question text
A record in MongoDB is a

Question 25Answer

a.

Table

b.

None of the mentioned above

c.

Document

d.

Application

Feedback
The correct answer is: Document

QUIZ-2
Which of the following is true about Flutter's layout system?
Question 1Answer

a.

It uses a fixed layout system

b.

It uses a relative layout system


c.

It is based on HTML and CSS

d.

It uses a constraint-based layout system

Flutter's layout system is based on constraints, which are essentially rules that define the size and position
of widgets. Widgets can have constraints on their width, height, aspect ratio, and alignment.
When a widget is laid out, its parent widget provides it with constraints. The child widget then attempts to
satisfy those constraints, possibly by adjusting its own size and position. This process is repeated
recursively until all of the widgets in the widget tree have been laid out.
The constraint-based layout system is very flexible and allows for a wide variety of layouts. It is also very
efficient, as it only needs to be called once per frame.
Options a, b, and c are incorrect. Flutter's layout system is not based on HTML and CSS. It is not a fixed
layout system, and it does not use a relative layout system.
Therefore, the most accurate statement is that Flutter's layout system is based on constraints, making it
flexible, efficient, and well-suited for building complex user interfaces.

Feedback
The correct answer is: It uses a constraint-based layout system

Question 2
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Which layer in the Android architecture provides pre-built code for common functions such as networking
and graphics?
Question 2Answer

a.

Application layer
b.

Kernel layer

c.

Framework layer

The framework layer in the Android architecture provides pre-built code for common functions such as
networking and graphics. This code is available to developers through Android modules, which are
packages of code that can be included in Android apps.

The framework layer also provides a number of other important services, such as:

A view system for creating and managing user interfaces


A lifecycle manager for managing the lifecycle of app components
A resource manager for managing app resources, such as images and strings
A package manager for managing app installations and updates

The library layer in the Android architecture provides a set of libraries that can be used by developers to
extend the functionality of their apps. These libraries include:

The Android Support Library, which provides a number of useful classes and features that are not part
of the core Android framework
The Google Play Services SDK, which provides a number of APIs for accessing Google Play services,
such as Google Maps and Google Play Games
The Android Jetpack libraries, which provide a modern and modular way to build Android apps

The application layer in the Android architecture is where developers write the code for their own apps.
This code uses the classes and services provided by the framework and library layers to create the app's
user interface, handle user input, and access data.
The kernel layer in the Android architecture is the lowest layer of the Android platform. It provides a
number of essential services, such as:

Memory management
Process management
Device drivers
The Android runtime

d.

Library layer

Feedback
The correct answer is: Library layer

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is not a key feature of Flutter?


Question 3Answer

a.

Support for only iOS devices

b.

Native performance
c.

Widget-based architecture

d.

Hot Reload

Feedback
The correct answer is: Support for only iOS devices

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is not a key feature of Flutter?


Question 4Answer

a.

Support for only iOS devices


Flutter is a cross-platform development framework that can be used to create apps for iOS, Android, and
the web. It is not limited to iOS devices.

Hot Reload is a feature that allows developers to make changes to their code and see the results in the
app immediately, without having to recompile the app. Native performance means that Flutter apps can
run just as fast as native apps on iOS and Android devices. Widget-based architecture means that Flutter
apps are built using a series of reusable widgets, which makes them easy to create and maintain.

Therefore, the most accurate statement is that support for only iOS devices is not a key feature of Flutter.
Flutter is a cross-platform development framework that can be used to create apps for iOS, Android, and
the web.
b.

Native performance

c.

Hot Reload

d.

Widget-based architecture

Feedback
The correct answer is: Support for only iOS devices

Question 5
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
Which of the following is a valid data format for RML mappings?
Question 5Answer

a.

YAML

b.

JSON

c.

RDF/XML
d.

XML

Feedback
The correct answer is: RDF/XML

Question 6
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which widget in Flutter is used for building the basic building block of the user interface?
Question 6Answer

a.

MaterialApp

b.

AppBar

c.

Scaffold

d.

Container
Container.

A container is the basic building block of the user interface in Flutter. It is used to hold other widgets and
to apply properties such as padding, margin, and decoration. A container can be used to create a variety
of layouts, such as a row, column, or grid.
A scaffold is a widget that provides a basic structure for an app, such as a header, body, and drawer. A
MaterialApp is a widget that provides a number of features for building an app, such as navigation and
routing. An AppBar is a widget that is typically used at the top of an app to provide a title and other
controls.

Therefore, the most accurate statement is that a container is the basic building block of the user interface
in Flutter. It is used to hold other widgets and to apply properties such as padding, margin, and
decoration.

Here is an example of how to use a container to create a simple layout:


Dart

Container(
padding: EdgeInsets.all(16.0),
child: Column(
children: <Widget>[
Text('Hello, World!'),
Image.asset('images/image.png'),
],
),
)

This code will create a container with a padding of 16 pixels on all sides. The container will also hold a
column, which is a layout that arranges its children vertically. The column will contain two widgets: a text
widget and an image widget.

Feedback
The correct answer is: Container

Question 7
Incorrect

Mark 0.00 out of 1.00


Flag question

Question text

Which of the following is NOT a constraint of REST?


Question 7Answer

a.

Encryption

Session management.

REST (REpresentational State Transfer) is an architectural style for designing loosely coupled applications
over the network. It is based on a set of constraints that define how APIs should be designed and
implemented. One of the key constraints of REST is that APIs should be stateless. This means that each
request from a client to a server must contain all of the information that the server needs to process the
request. The server should not store any information about the client's previous requests.

As a result, REST APIs are not typically used for session management. Session management is the process
of tracking a user's session across multiple requests. This is typically done by storing a session ID in a
cookie on the user's browser. The server can then use the session ID to track the user's state and to
personalize the user's experience.

Options a, b, and c are all constraints of REST. A uniform interface means that all resources in an API
should be accessed using the same set of URLs and HTTP methods. Statelessness means that each request
from a client to a server must contain all of the information that the server needs to process the request.
Cacheability means that clients can cache responses from the server to improve performance.

Therefore, the most accurate statement is that session management is not a constraint of REST. REST APIs
are typically stateless and do not use session management.

b.

Session management
c.

Uniform interface

d.

Statelessness

Feedback
The correct answer is: Session management

Question 8
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is an advantage of using RESTful APIs?


Question 8Answer

a.

They are slow and inefficient

b.

They are difficult to implement.

c.

They require complex session management.

d.
They are language and platform-independent.
RESTful APIs are a popular type of API that is used to access and manipulate data over the internet. They
are based on a set of principles that define how APIs should be designed and implemented. One of the
key advantages of RESTful APIs is that they are language and platform-independent. This means that they
can be accessed by any programming language or platform that can understand HTTP requests and
responses.

RESTful APIs can be difficult to implement, as they require careful adherence to the REST principles. They
can also require complex session management, as they are typically stateless. And, while RESTful APIs can
be efficient, they can also be slow, as they require a lot of round-trips between the client and the server.

Therefore, the most accurate statement is that RESTful APIs are language and platform-independent. This
is one of their key advantages, as it allows them to be used by a wide variety of clients and servers.

Feedback
The correct answer is: They are language and platform-independent.

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is NOT a use case for RML?


Question 9Answer

a.

Integrating data from multiple sources

b.

Extracting data from web pages

c.
Converting data between different formats

d.

Visualizing data in a graph database


RML (RDF Mapping Language) is a language for mapping data from various formats to RDF (Resource
Description Framework). RDF is a standard language for representing information in a structured way. It is
typically used to create knowledge graphs, which are graphs of interconnected data items.

While RML can be used to convert data between different formats, it is not specifically designed for
visualizing data in a graph database. Graph databases are a type of database that is specifically designed
for storing and querying graph data. They provide a number of features that make them well-suited for
visualizing data, such as the ability to display the relationships between data items.

Therefore, the most accurate statement is that visualizing data in a graph database is not a use case for
RML. RML is a language for mapping data from various formats to RDF, and it does not provide the
features that are necessary for visualizing data in a graph database.

Feedback
The correct answer is: Visualizing data in a graph database

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is the main benefit of representing IoT data as RDF triples?
Question 10Answer

a.

It allows for easier integration of data from multiple sources.


RDF (Resource Description Framework) is a standard language for representing information in a
structured way. It is based on the idea of triples, which are statements that consist of a subject, a
predicate, and an object. For example, the RDF triple "SensorName" "has temperature" "25.5" represents
the statement that a sensor named "SensorName" has a temperature of 25.5 degrees Celsius.
Using RDF triples to represent IoT data has several advantages. One of the most important advantages is
that it makes it easier to integrate data from multiple sources. This is because RDF is a standard language
that can be understood by a wide variety of software applications. As a result, it is possible to combine
data from different IoT devices, different databases, and even different knowledge graphs. This can be
very valuable for analyzing IoT data, as it allows you to see the big picture and to identify patterns and
trends.

Therefore, the most accurate statement is that the main benefit of representing IoT data as RDF triples is
that it allows for easier integration of data from multiple sources. This is because RDF is a standard
language that can be understood by a wide variety of software applications.

b.

It allows for easier communication between IoT devices.

c.

It allows for easier control of IoT devices from a central location.

d.

It allows for easier visualization of data from multiple sources.

Feedback
The correct answer is: It allows for easier integration of data from multiple sources.

Question 11
Partially correct

Mark 0.50 out of 1.00

Flag question

Question text

What is the purpose of the Flutter Engine?


Question 11Answer
a.

To compile Dart code to native machine code

To handle platform-specific APIs and services.


While the Flutter Engine does play a role in compiling Dart code to native machine code, this is not its
primary purpose. The Flutter Engine is primarily responsible for providing a runtime environment for
executing Dart code and handling platform-specific APIs and services. This allows Flutter apps to run on a
variety of platforms without requiring developers to write platform-specific code.
The Flutter toolchain is responsible for compiling Dart code to native machine code. This is a two-step
process:

1. The Flutter build tool converts Dart code into an intermediate representation called the AST
(Abstract Syntax Tree).
2. The Ahead-of-Time (AOT) compiler then converts the AST into native machine code for the target
platform.

The Flutter Engine then executes the resulting native machine code. This ensures that Flutter apps run
with high performance on all supported platforms.
Here is a table summarizing the roles of the Flutter Engine and the Flutter toolchain:
Component Role

Provides a runtime environment for executing Dart code and handles platform-specific
Flutter Engine
APIs and services.

Flutter
Compiles Dart code to native machine code for the target platform.
toolchain

b.

To handle platform-specific APIs and services

c.

To provide a framework for server-side scripting

d.
To provide a set of UI widgets

Feedback
The correct answer is: To handle platform-specific APIs and services

Question 12
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
Which of the following is true about Flutter's architecture?
Question 12Answer

a.

It is based on the Model-View-ViewModel (MVVM) design pattern

b.

It is based on the Reactive programming model

c.

It is based on the Flux architecture

d.

It is based on the Model-View-Controller (MVC) design pattern

Feedback
The correct answer is: It is based on the Reactive programming model

Question 13
Correct

Mark 1.00 out of 1.00

Flag question
Question text

Which component in the Android architecture is responsible for managing the memory and process
management?
Question 13Answer

a.

Application framework

b.

User interface

c.

Database engine

d.

Linux kernel

Feedback
The correct answer is: Linux kernel

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is the Swagger UI?
Question 14Answer

a.
A tool for generating client code

b.

A tool for testing APIs

c.

A web application that displays API documentation


Swagger UI is a web application that provides a graphical user interface (GUI) for viewing and interacting
with API documentation. It is based on the OpenAPI Specification, which is a standard for describing
RESTful APIs.

Swagger UI can be used to:

View API documentation: Swagger UI can display API documentation in a human-readable format. This
includes information about API endpoints, parameters, and responses.
Interact with APIs: Swagger UI can be used to send requests to APIs and view the responses. This can
be helpful for testing APIs or for learning how to use them.
Generate client code: Swagger UI can be used to generate client code for a variety of programming
languages. This can be helpful for developers who want to quickly start using an API.

Swagger UI is a popular tool for developers who work with RESTful APIs. It is easy to use and provides a
number of useful features.

Option b is incorrect because Swagger UI is not primarily used for generating client code. Option c is
incorrect because Swagger UI is not primarily used for testing APIs. Option d is incorrect because Swagger
UI is not an integrated development environment (IDE) for API development.

Therefore, the most accurate statement is that Swagger UI is a web application that displays API
documentation. It is a popular tool for developers who work with RESTful APIs and provides a number of
useful features.
d.

An integrated development environment (IDE) for API development

Feedback
The correct answer is: A web application that displays API documentation

Question 15
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is an example of an IoT device that could be integrated using RML?

Question 15Answer

a.

A desktop computer

b.

A refrigerator

c.

A television

d.

A smart thermostat
RML (RDF Mapping Language) is a language for mapping data from various formats to RDF (Resource
Description Framework). RDF is a standard language for representing information in a structured way. IoT
(Internet of Things) devices generate a vast amount of data, which can be represented in various formats,
such as JSON, XML, or CSV.
A smart thermostat is an IoT device that generates data about the temperature and humidity in a room.
This data can be mapped to RDF triples using RML mappings. An RDF triple is a statement that consists of
a subject, a predicate, and an object. For example, the RDF triple "ThermostatName" "has temperature"
"25.5" represents the statement that a smart thermostat named "ThermostatName" has a temperature of
25.5 degrees Celsius.

By mapping the data generated by a smart thermostat to RDF triples, RML can be used to make the data
more interoperable and easier to analyze. RDF triples can be queried using SPARQL (SPARQL Protocol and
RDF Query Language), a standard query language for RDF data. This makes it possible to analyze the data
from a smart thermostat in conjunction with data from other sources, such as databases and knowledge
graphs.

Therefore, the most accurate statement is that a smart thermostat is an example of an IoT device that
could be integrated using RML. RML can be used to map the data generated by a smart thermostat to
RDF triples, making the data more interoperable and easier to analyze.

Feedback
The correct answer is: A smart thermostat

Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is true about Flutter's internationalization support?
Question 16Answer

a.

It only supports left-to-right languages

b.

It requires developers to manually translate all app text


c.

It only supports English-language apps

d.

It provides built-in support for over 50 languages


Flutter has built-in support for internationalization (i18n), which allows developers to create apps that can
be localized for different languages and cultures. Flutter provides a number of features for i18n, including:

A localization API that allows developers to load and use localized resources, such as strings, images,
and fonts
A set of widgets that support different cultures, such as a Text widget that can automatically apply text
direction (LTR or RTL)
A command-line tool called flutter gen-l10n that can generate Dart code for managing localized
resources

Flutter's i18n support is very flexible and allows developers to create apps that can be easily localized for a
wide range of languages and cultures.

Feedback
The correct answer is: It provides built-in support for over 50 languages

Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text

How can RML be used in conjunction with IoT devices?


Question 17Answer

a.
By converting the data generated by IoT devices to CSV format using RML.

b.

By generating RML mappings from the data generated by IoT devices.

c.

By mapping the data generated by IoT devices to RDF triples using RML mappings.

d.

By using RML to control the behavior of IoT devices.

Feedback
The correct answer is: By mapping the data generated by IoT devices to RDF triples using RML mappings.

Question 18
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is NOT a use case for Swagger?


Question 18Answer

a.

Designing and developing APIs

b.

Debugging APIs

c.
Documenting APIs

d.

Testing APIs

Feedback
The correct answer is: Debugging APIs

Question 19
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
Which of the following is true about Flutter's performance?
Question 19Answer

a.

It depends on the platform being used

b.

It is slower than native app development

c.

It depends on the complexity of the app


It is faster than native app development.

Flutter is a high-performance development framework that can be used to create apps that are as fast as
or even faster than native apps. This is because Flutter apps are compiled to native code using the Ahead-
of-Time (AOT) compiler. The AOT compiler is able to optimize the code for the target platform, which can
improve performance.
In addition, Flutter apps are able to take advantage of hardware acceleration, which can further improve
performance. For example, Flutter apps can use the GPU to render graphics, which can free up the CPU for
other tasks.

Here are some of the reasons why Flutter apps can be faster than native apps:

JIT (Just-In-Time) compilation: Flutter uses JIT compilation to convert Dart code into native machine
code. This means that the app can be optimized for the target device at runtime, which can improve
performance.
Hot reload: Flutter's hot reload feature allows developers to make changes to their code and see the
results in the app immediately, without having to recompile the app. This can save developers a lot of
time and can help them to develop apps more quickly.
Skia: Flutter uses the Skia graphics library to render graphics. Skia is a high-performance graphics
library that is used by a number of popular apps, such as Google Chrome and Mozilla Firefox.

Of course, the performance of a Flutter app will also depend on the complexity of the app and the
hardware that it is running on. However, in general, Flutter apps can be as fast as or even faster than
native apps.

d.

It is faster than native app development

Feedback
The correct answer is: It is faster than native app development

Question 20
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text
Which type of data format is commonly used in RESTful APIs?

Question 20Answer
a.

YAML

b.

XML

c.

All of the above

d.

JSON
All of the above.

JSON (JavaScript Object Notation), YAML (YAML Ain't Markup Language), and XML (Extensible Markup
Language) are all commonly used data formats in RESTful APIs.

JSON is a lightweight data-interchange format that is easy to read and write. It is a popular choice for
RESTful APIs because it is very efficient and can be parsed by a wide variety of programming languages.

YAML is another lightweight data-interchange format that is similar to JSON. It is also easy to read and
write, and it can be parsed by a wide variety of programming languages. YAML is a good choice for
RESTful APIs that need to represent complex data structures.

XML is a more verbose data-interchange format than JSON or YAML. It is a good choice for RESTful
APIs that need to represent data that is very structured and hierarchical.

The choice of data format for a RESTful API will depend on a number of factors, such as the complexity of
the data, the desired level of efficiency, and the programming languages that will be used to consume the
API.
Here is a table summarizing the pros and cons of each data format:
Data format

Pros

Cons

JSON

Easy to read and write, efficient, can be parsed by a wide variety of programming languages

Less verbose than XML, not as well-suited for representing complex data structures

YAML

Easy to read and write, can be parsed by a wide variety of programming languages, good for representing
complex data structures

Less verbose than XML, not as well-supported as JSON

XML

Very structured and hierarchical, good for representing complex data

More verbose than JSON or YAML, not as easy to read and write

Feedback
The correct answer is: All of the above
Question 21
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following layers in the Android architecture is responsible for managing the user interface?
Question 21Answer

a.

Application layer

b.

Library layer

c.

Kernel layer

d.

Framework layer

Feedback
The correct answer is: Framework layer

Question 22
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is an example of a resource in a RESTful API?

Question 22Answer
a.

A search bar

b.

An about us page

c.

A login page

d.

A user profile
A RESTful API is a type of API that follows the REST architectural style. REST is a set of principles that
define how APIs should be designed and implemented. One of the key principles of REST is that resources
are the fundamental building blocks of an API.

A resource is any information that can be identified by a unique identifier, such as a URL. Resources can
be represented in a variety of formats, such as JSON, XML, or HTML. RESTful APIs typically use HTTP
methods to perform operations on resources. For example, the GET method can be used to retrieve a
resource, the POST method can be used to create a new resource, and the PUT method can be used to
update an existing resource.

A user profile is a resource that represents a user of an application. It typically includes information about
the user, such as their name, email address, and preferences. User profiles can be retrieved, created,
updated, and deleted using HTTP methods.

Therefore, the most accurate statement is that a user profile is an example of a resource in a RESTful API.
User profiles represent users of an application and can be retrieved, created, updated, and deleted using
HTTP methods.

Feedback
The correct answer is: A user profile
Question 23
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following platforms is supported by Flutter?

Question 23Answer

a.

iOS

b.

Web

c.

Android

d.

All of the above


Flutter is a cross-platform development framework that can be used to create apps for iOS, Android, the
web, and other platforms. It is written in Dart, a programming language developed by Google.

Flutter apps are built using a declarative syntax that describes the desired UI state. Flutter then takes care
of rendering the UI on the target platform. This makes it possible to create apps that look and feel native
on each platform.

Flutter is a popular choice for developers who want to create high-quality apps that can be deployed to
multiple platforms. It is easy to learn and use, and it has a large and active community.
Here is a table summarizing the platforms that Flutter supports:
Platform Description
iOS The operating system for Apple mobile devices, such as iPhones and iPads.
AndroidThe operating system for Google mobile devices, such as smartphones and tablets.
Web The platform for web applications, which can be accessed from any web browser.
macOS The operating system for Apple desktop computers.
Windows The operating system for Microsoft desktop computers.
Linux The operating system for a variety of desktop and server computers.

Feedback
The correct answer is: All of the above

Question 24
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is an example of a RESTful API endpoint?


Question 24Answer

a.

https://example.com/about_us

b.

https://example.com/search?q=rest

c.

https://example.com/api/get_user
d.

https://example.com/login

Feedback
The correct answer is:

https://example.com/api/get_user

Question 25
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following components is not a part of the Android architecture?


Question 25Answer

a.

User interface

b.

Linux kernel

c.

Application framework

d.

Database engine
The answer is a. Database engine.
The Android architecture consists of four main layers:

Linux kernel: The Linux kernel is the core of the Android operating system and provides a number of
essential services, such as memory management, process management, and device drivers.
Hardware abstraction layer (HAL): The HAL provides an abstraction layer between the Android
framework and the hardware. This allows the Android framework to run on a variety of devices without
having to be modified for each specific device.
Android framework: The Android framework is a set of APIs that provide the basic functionality for
Android apps. This includes the application framework, which provides the basic building blocks for apps,
such as activities, views, and services.
User interface: The user interface is the part of the Android platform that users interact with. It is made
up of a number of different components, such as the home screen, the app drawer, and the notifications
bar.

The database engine is not a part of the Android architecture. It is a separate piece of software that can
be used to store and manage data for Android apps.

Therefore, the most accurate statement is that the database engine is not a part of the Android
architecture. It is a separate piece of software that can be used to store and manage data for Android
apps.

Feedback
The correct answer is: Database engine

EC-2
EC-3
1.
2.
3.
4.

You might also like