Midterm - CS499: Mobile Apps Dev.

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

In the widget tree created by the Dart code below, how many child nodes does the Scaffold widget have? void main () {PARENT runApp { MaterialApp { home: Scaffold { backgroundColor: Colors.blueGray, appBar: AppBar { title: Text ('I Am Rich'), backgroundColor: Colors.blueGray[900], }, //AppBar body: Center{ child: Image{ image: NetworkImage('http://www.w3schools.com/w3css/img_lights.jpeg'), }, // Image }, // Center }, // Scaffold }, // MaterialApp };}

(3)

What is the height of the widget tree created by the Dart code below? void main () { runApp { MaterialApp { home: Scaffold { backgroundColor: Colors.blueGray, appBar: AppBar { title: Text ('I Am Rich'), backgroundColor: Colors.blueGray[900], }, //AppBar body: Center{ child: Image{ image: NetworkImage('http://www.w3schools.com/w3css/img_lights.jpeg'), }, // Image }, // Center }, // Scaffold }, // MaterialApp };}

(4)

What is the number of the leaf nodes in the widget tree created by the Dart code below? void main () { runApp { MaterialApp { home: Scaffold { backgroundColor: Colors.blueGray, appBar: AppBar { title: Text ('I Am Rich'), backgroundColor: Colors.blueGray[900], }, //AppBar body: Center{ child: Image{ image: NetworkImage('http://www.w3schools.com/w3css/img_lights.jpeg'), }, // Image }, // Center }, // Scaffold }, // MaterialApp };}

(4) Theory: all // nodes So, in this case, the leaf nodes are: Scaffold, Center, Image, and AppBar

What does this line of Dart code declare? class Apple extends Fruit { (a) a new class Apple that is inherited from the class Fruit (b) a new class Fruit that is inherited from the class Apple (c) class Apple and Fruit have the same constructor (d) class Apple and class Fruit are aggregates

(a) a new class Apple that is inherited from the class Fruit

Which concept of object-oriented programming is displayed by breaking a large system to smaller components where each component has a defined role? (a) abstraction (b) encapsulation (c) polymorphism (d) inheritance

(a) abstraction

Which relationship between classes is referred to as a "has a" relationship? (a) aggregation (b) many-to-many (c) inheritance (d) one-to-many

(a) aggregation

Which one of the statements below about Flutter widgets is not correct? (a) A widget may display something on the screen. (b) A widget cannot have behavior. (c) A widget may be used for positioning of other widgets on the screen. (d) All the three statement are correct.

(b) A widget cannot have behavior.

Two aspects of keeping your installed version of Android Studio up-to-date are keeping the version of Android Studio software and _______ up-to-date. (a) Android Studio Libraries (b) Android Studio Plugins (c) Android Studio Tools (d) None of the above

(b) Android Studio Plugins

The hierarchical structure of information in a Flutter project yaml configuration file is based on: (a) Markup (b) Indentation (c) Markup or indentation (d) Markup and indentation

(b) Indentation

This is used to demonstrate/confirm a package can be incorporated in a Flutter/Dart application and the package behaves as expected. (a) Prototyping (b) Proof of concept (c) Unit Testing (d) Simulation

(b) Proof of concept

To specify theme for a materialized application: (a) Set the theme property of the application to a Theme widget (b) Set the theme property of the application to a ThemeData widget (c) Wrap the application in a Theme widget (d) Wrap the application in a ThemeData widget

(b) Set the theme property of the application to a ThemeData widget

Which concept of object-oriented programming is displayed by building boundaries around components such that internal details of the components are hidden from other components. (a) abstraction (b) encapsulation (c) polymorphism (d)inheritance

(b) encapsulation

Which one of the followings is not a top-level property in a Flutter project pubspec.yaml configuration file? (a) description (b) owner (c) version (d) dependencies

(b) owner

In Android Studio to run a program on an emulator the following selections are required. (a) The SDK version (b) The Virtual version (c) Both SDK version and the Virtual Device (d) No selection is required

(c) Both SDK version and the Virtual Device

This feature of Flutter platform tremendously improves efficiency of the iterative software development process. (a) Open Source (b) Emulator (c) Hot Reload (d) Simulator

(c) Hot Reload

This feature of the Android Studio helps breakdown a large project to smaller more manageable parts during implementation and coding. (a) Intension Action (b) Flutter Observer (c) The //TODO: Comment (d) Dart Analysis

(c) The //TODO: Comment

Flutter takes advantage of the techniques used in ________ development to support flexible UI layout supporting various screen sizes and aspect ratios. (a) iOS application (b) Desktop application (c) Web application (d) Notepad application

(c) Web application

Which concept of object-oriented programming is displayed when operations on the instances of a class take different forms based on the specific subclass of the instance? (a) abstraction (b) encapsulation (c) polymorphism (d) inheritance

(c) polymorphism

Which relationship is a good candidate for superclass and subclass? (a) Automobile - truck (b) book-notebook (c) student-graduate student (d) car-airplane

(c) student-graduate student

Which one of the followings is not an advantage of Flutter platform? (a) Single code base for applications targeting IOS and Android devices with various screen sizes and aspect ratios. (b) Simple and flexible layout system for UI design. (c) Hot Reload (d) Low licensing fee

(d) Low licensing fee

Versions of Android SDK are uniquely identified by: (a) Version Number (b) Version Name (c) API Level (d) Version Name, Version Number and API Level all uniquely identify a version of SDK. (b)

(d) Version Name, Version Number and API Level all uniquely identify a version of SDK. (b)

Which concept of object-oriented programming is displayed by using the "is a kind of" comparison between 2 classes? (a) abstraction (b) encapsulation (c) polymorphism (d) inheritance

(d) inheritance

Select the Dart function in fat arrow notation equivalent to: int add (int n1, int n2) { return n1+n2; } (a) int add (n1, n2) => return (n1 + n2); (b) int add (n1, n2) => n1 + n2; (c) int add (int n1, int n2) {n1 + n2;} (d) int add (int n1, int n2) => n1 + n2;

(d) int add (int n1, int n2) => n1 + n2;

What is the name of the configuration file for Flutter application projects? (a) The name depends on the project name. (b) configuration.xml (c) configuration (d) pubspec.yaml

(d) pubspec.yaml

This step for including a Flutter/Dart package in your Flutter application requires change in the application's pubspec.yaml file. 1) Depend on it; 2) Install it; 3) Import it

1) Depend on it;

Among the items listed below select any item that is required for assigning an AssetImage to an Image Widget. 1) An images directory under the Flutter project directory 2) Image file in the Flutter project directory structure 3) The pubspec.yaml file to include location of the image files 1 and 3 1 and 2 1, 2 and 3 None of the options is correct.

1, 2 and 3

This step for including a Flutter/Dart package in your Flutter application is done by running flutter pub get command. 1) Depend on it; 2) Install it; 3) Import it

2) Install it;

This step for including a Flutter/Dart package in your Flutter application requires change in the application's Dart file. 1) Depend on it; 2) Install it; 3) Import it

3) Import it

Which one of the followings are properties of Scaffold widget. body appBar backgroundColor All items listed are properties of Scaffold widget.

All items listed are properties of Scaffold widget.

Which one of the followings can be assigned to the image property of an Image widget? AssertImage NetworkImage FileImage All options are correct

All options are correct

Which of the following is a valid way of specifying a theme for a materialized app: (a) Set the application theme property to a packaged theme such as ThemeData.dark theme. (b) Set the application theme property to a ThemeData widget and customize the widget by setting its properties. (c) Use the copyWith function ___ (d) All selections are ___ ?

All selections are ___ Is this entire question?

Feature helps breakdown a large project to a smaller more manageable parts during implementation and coding: Intension action TODO device manager

All three

Which color is not part of the RGB hexcode coloring scheme? Red Black Green Blue

Black

When _____ some image files under iOS and Android directories in Flutter Application projct must be changed

Change app icon for application

Which one of the followings is not a multichild widget? Stack Column Container Row

Container

This Android Studio tool shows coding errors at development time. Flutter Outline Tab Dart Analysis Tab Flutter Inspector Tab Run Tab Tab

Dart Analysis Tab

Steps to 1) extract widget for the column - extract root of the widget hierarchy to be abstracted out into a named custom widget, called reusable content. 2) ?

Don;t have entire question

________ is not one of the four pillars of object-oriented programming

Dynamic Binding

An iOS mobile application developed using Flutter and tested using Android Emulator is ready to be deployed to App Store. (True/False)

False

Constraint based UI design is ideal for creation of flexible UI layouts for small and large screen sizes. (True/False)

False

To use this Android Studio tool your application must be running on an emulator, simulator or a physical device. Flutter Outline Tab Dart Analysis Tab Flutter Inspector Tab Nome of the options is correct.

Flutter Inspector Tab

This Android Studio tool provides a tree structure of the entire application code base, available during development time. Flutter Outline Tab Dart Analysis Tab Flutter Inspector Tab Run Time Tab

Flutter Outline Tab

The state of the Flutter application is maintained after rebuilding the application by __________. Hot Reload Hot Restart Cold Restart Compilation

Hot Reload

This Android Studio platform feature allows to automatically wrap a Flutter widget around another widget in Dart code. Auto code generation Auto format Intension Action Dart Analyzer

Intension Action

EdgeInsets is used with: Margin and Padding Padding SafeArea Margin

Margin and Padding

Required for assigning NetworkImage to Image Widget o Images directory o Public.yaml include location o Image file in flutter project directory o None

None

Among the items listed below select any item that is required for assigning an NetworkImage to an Image Widget. 1) An images directory under the Flutter project directory 2) Image file in the Flutter project directory structure 3) The pubspec.yaml file to include location of the image files 1 and 3 1 and 2 1, 2 and 3 None of the options is correct.

None of the options is correct.

A Generic Collection (e.g. List) can be restricted to hold elements of a specific class and its subclasses by using the <> notation. True / False

True

A Generic Collection (e.g. List) can store any type of object. True / False

True

A generic collection (i.e. list) can store any type of object True/False

True

A generic collection can be restricted to hold elements of a specific class by using the <> notation True/False

True

In Flutter Applications you can specify Theme both at application level and at widget level True/False

True

The Scaffold widget is an abstract widget that allows to place common items onto your screen. True/False

True

Which of the following is a valid expression for setting the color property of a widget using hex color code

color: Color(0xFF1D1E33)

To specify theme for a widget (a) Set the theme property of the application to a Theme widget (b) Set the theme property of the application to a ThemeData widget (c) Wrap the application in a Theme widget (d) Wrap the application in a ThemeData widget

don;t have answer

What is the name of the Image widget property that takes an image file to be displayed by the widget? body image url content

image

Which of the followings is a way to include app icons for iOS and Adroid mobile applications for a Flutter project in Android Studio. use Android Studio image asset configuration wizard use appicon.cp website Both a and b None of the options is correct

use appicon.cp website

When _____________________, some Image files under iOS and Android directories in Flutter application project must be changed. we change an image used in the application we use an image on the internet we change the app icon for the application Both a and b

we change the app icon for the application


संबंधित स्टडी सेट्स

Microbiology Ch 21: Infectious Diseases Affecting the Genitourinary Systems

View Set

(7) Flammable & Combustible Liquids

View Set

Study Guide Chapter 1.8 (Emphasis and Focal Point)

View Set

6.1 Exchange between organisms and their environment

View Set

exercise 6 - classification of tissues *CONNECTIVE TISSUE*

View Set

Diversity in the Workplace Final

View Set