• No results found

Answer the following questions

Python - Control Structures

F. Answer the following questions

2. Wireless transmission media send communication signals through the air. Many people use this media because it is more convenient than installing cables. Types of wireless transmission media used in communications include infrared, broadcast radio, cellular radio, microwaves, and communication satellites.

3. i. Setting a Default Value: You can speed up data entry for fields that usually contain the same value by making that value as the default.

ii. Setting the Field Format: You can change the format of a field to update its appearance in datasheet, form, and report.

iii. Creating Validation Rules: A Validation rule is used to limit a field entry to meet certain criteria. By Validation Rules, you can ensure that the correct value is entered into the field.

4. Design View is used for greater control on table structure. You can 1. A server, sometimes called the host computer, controls access to the hardware and software on the network, and provides a centralized storage area for programs, data, and information. Some servers are called dedicated servers which perform a specific task. For example, a file server, print, database server, network server and web server.

5. The various types of basic forms are:

i. Multiple Items Form: In the Multiple-Items form, you will see multiple records appear at the same time in it.

ii. Datasheet Form: Datasheet Form just looks like a regular datasheet, but it is actually a form. This form is useful when you want to show a datasheet on a subform.

iii. Split Form: Split Form shows two parts: Upper part shows the Form, and lower part shows the datasheet for the table.

iv. Modal Dialog Form: This form is useful for creating navigational menu systems. This form looks just like a dialog box, but it is actually a form.

describe the structure of the table before creating it. Here, you enter your own field names and descriptions, and choose your own data type to associate with each field.

6. Split Form shows two parts: Upper part shows the Form, and lower part shows the datasheet for the table.

7. Text Data criteria: While using queries, you usually look for the records that satisfy some criterion. You might want to find the list of students who are learning Kathak dance. To enter criteria, enter the name of dance in the Criteria row in the design grid below the field name to which the criterion applies.

8. The capability of querying a database is one of the most powerful database features. In other words, a Query is simply a question represented in a way that Access can understand. If you want to find the answer to a question, you will have to create a corresponding query first. Once your query has been created, you instruct Access to run the query that is to perform the steps through which you can obtain your answer. The answer will then be displayed in the Datasheet View.

9. Inkscape offers the tools you need to create accurate and professional looking page layouts. It is used in advertising, printing, publishing, sign making or manufacturing.

10. For creating a rounded rectangle, you have to draw a rectangle or square. After you create a square or a rectangle, three handles appear on the shape. Two handles are Resize handles, which are used to change the size of the shape, and the other handle is Corner shape handle, which is used to round the corner of the shape.

D. Define the following.

Chapters 6 - 10

Worksheet - 2

5. a. 6. c. 7. a. 8. c.

1. a. 2. a. 3. b. 4. b.

A. Tick [ü] the correct answer.

B. Write ‘T’ for True and ‘F’ for False statements.

C. Fill in the blanks.

5. F 6. T 7. F 8. F

1. T 2. F 3. T 4. T

9. Indentation 10. Loops

7. String 8. Reserve

4. Blogger 5. Google Earth 6. Native

1. Cloud Computing 2. Google Drive 3. Cloud

4. SaaS (Software as a Service) is a method for delivering software applications over the Internet, on demand and typically on a , subscription basis.

5. App Store is a popular app store which contain many app categories as well as subcategories for different purposes.

6. Emulator is a hardware or software that enables one computer system to behave like another computer system.

2. Google Pixel is an Android smartphone designed and marketed by Google. It includes all your favorite Google apps to bring you a fast, seamless, and easy-to-use experience.

7. Delimiters are the characters and their combinations in expressions, list, dictionary, and various statements.

1. Resource pooling allows cloud providers to pool large-scale IT resources to serve multiple cloud consumers.

3. Google Glass is a wearable, voice-controlled Android device which looks like a pair of eyeglasses. It enables the user to view information or take photos and videos that are projected to a miniature screen in the user's field of vision.

E. Differentiate between the following.

4. Arithmetic Operators: Arithmetic operators are used to perform mathematical operations. For example: Addition and concatenation in strings, Subtraction.

2. Google Docs is an online Office Suite, in which we can create, edit and share three types of documents. These include Document, Spreadsheet and Presentation.

Communication Apps: Communication apps enable us to impart or interchange thoughts, opinions, or information by speech, writing, or signs. For example: WhatsApp and Skype.

Community Cloud: In community cloud, the services are offered to a group of organizations and community having common interests.

Google Drive is cloud storage developed by Google. We can store our files online in Google Drive and can access them from anywhere in the whole world.

1. Hybrid Cloud: In a hybrid cloud, the services are offered to a limited and well-defined number of users. The hybrid cloud allows the Internet to be used as a desktop. It is a combination of private and public cloud.

Logical Operators: Logical operators perform Logical AND, Logical OR and Logical NOT operations. For example: or & and

3. Educational Apps: Educational apps are making things easier for children to understand and make children more interactive. These apps are useful for teachers as well—organizing a teaching process, better educating themselves, etc.

5. Nested if statement: Nested-if statement are based on nesting, which is the process of placing the if or if-else or elif statement in another statement. It enables us to make complex decisions based on different inputs.

8. Literals are the data items which never change their value throughout the program run.

9. When a program breaks the sequential flow and jumps to another part of the code, it is called branching.

if condition:

statements

statements

Syntax:

if test expression:

else:

Body of if

Syntax:

if condition:

elif statement: The if...else statement is an extension of the simple if statement. The if..else statement evaluates test expression and will execute body of if only when test condition is True. If the condition is False, body of else is executed. Indentation is used to separate the blocks.

else:

statements

Body of else

else:

F. Answer the following questions.

iii. It allows users to access files on the Internet from any computer that has Internet access.

ii. Public Cloud: A public cloud is not proprietary of any organization. The services provided in these clouds can be accessed by any organization or individual.

i. It is probably the most cost-efficient method to use, maintain and upgrade. It eliminates the capital expense of buying hardware and software and other infrastructure.

ii. It allows users to get unlimited storage capacity for storing information.

1. There are many advantages of cloud computing:

2. Types of Cloud computing are:

i. Private Cloud: A private cloud is a proprietary architecture subscribed to by an organization. It provides hosted services to the users within the organization. This is protected by a security to form a barrier against the outside world and to access hosted services from the private cloud.

iv. Community Cloud: In community cloud, the services are offered to a group of organizations and community having common interests.

4. Google+ is a social networking site that enables you to connect with people, who share similar personal or professional interests. On most social networking sites, the members are connected to each other as friends, friends of friends and so on.

iii. Hybrid Cloud: In a hybrid cloud, the services are offered to a limited and well-defined number of users. The hybrid cloud allows the Internet to be used as a desktop. It is a combination of private and public cloud.

3. Google Maps work in a very simple way. While going somewhere, it provide directions when a user enters a starting and destination point.

5. Blocks Editor is used to instruct the components what to do and when to do it. Main parts of Blocks Editor are given below:

ii. Components Blocks: This area shows blocks you have chosen for our app.

iv. Trash: It is used for deleting not needed blocks.

v. Bagpack: We can drag blocks into the Backpack icon so that we can use them later by dragging items out of the backpack and use them between the apps. Backpack retains a copy of our blocks even when we exit App Inventor.

6. If we need to use an app on mobile device, we have to run it. We can run any app from the Apps screen of android mobile phone. We can run multiple apps at once. Each app appears full screen, so we work in a single app at a time, but we can switch from one app to another as needed. We can switch apps quickly by using the Recent Apps list.

7. Interpreter plays an important role as python is an interpreted language which executes the code line by line at a time. This makes the debugging process easy.

i. Built-in Blocks: This area shows block to use them in our app.

iii. Block Viewer: This is the place where we assemble the blocks for our app.

8. Script mode is used as python shell for saving a program, you need to open and write anytime in future.

9. You can convert a string value to integer value in this way:

Example: >>> int('23')

>>> float('23')

To convert this into a number we can use int() or float() functions.

23.0 #entered value 23.0 is a float

10. The while Loop in python is used to repeat a block of statements for given number of times, until the given condition is False.

Syntax: while test_expression:

23 #entered value 23 is a number, not a string

Related documents