C++ Programs(CONDITIONAL CONSTRUCTS & LOOPS)

Similar documents
Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Creating a Crosstab Query in Design View

Introduction to Microsoft Access 2016

Microsoft Office Illustrated Introductory, Building and Using Queries

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

Tutorial 1. Creating a Database

CHAPTER 6 SUMMARY. Objective 1: Identify Good Database Design

SOFTWARE SKILLS BUILDERS

More Skills 14 Use a Query to Find Unmatched Data. To complete this database, you will need the following file:

Microsoft Access 2010

Microsoft Access 2003

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

K Hinds Page 1. Information Communication Technology Microsoft Access

COMM 391 Winter 2014 Term 1

Index. B backing up 76 7

AUSTIN COMMUNITY COLLEGE CONTINUING EDUCATION. INTRODUCTION TO DATABASE/FILE MANAGEMENT (Access Introduction) (12 hours) ITSW 1053 COURSE SYLLABUS

Computer Skills MS Access Work Sheet # 1

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE

Microsoft Access Illustrated. Unit B: Building and Using Queries

Microsoft Certified Application Specialist Exam Objectives Map

Access 2016 Essentials Syllabus

Microsoft Office Specialist Access 2016

Microsoft Access 2013

Microsoft Access 2013

Complete Quick Reference Summary

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

Microsoft Office Access 2007: Intermediate Course 01 Relational Databases

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only)

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only)

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Test Bank Database Processing Fundamentals Designand Implementation 14th Edition Kroenke

Open. Select the database and click. Print. Set printing options using the dropdown menus, then click the

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

Open an existing database Sort records in a table Filter records in a table Create a query Modify a query in Design view

Follow these steps to get started: o Launch MS Access from your start menu. The MS Access startup panel is displayed:

Microsoft Access 2010

Microsoft Access 2013

GO! with Microsoft Access 2016 Comprehensive

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

2. Distinguish between a unary, a binary and a ternary operator. Give examples of C++ operators for each one of them.

ICDL & OOo BASE. Module Five. Databases

MIS Cases: Decision Making With Application Software, Second Edition. Database Glossary

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification.

Word Module 5: Creating and Formatting Tables

Access Module 2: Building and Using Queries

Exam Name: MOS: Microsoft Office Access 2010

Microsoft Access 2010

Database Tables Lookup Wizard Relationships Forms Subforms Queries Reports

MICROSOFT WORD. MS. Office includes the following application:

Access 2016: Core Database Management, Manipulation, and Query Skills; Exam

Microsoft Access 5: Reports & Other Useful Functions

Links to Activities ACTIVITY 2.1. Links to Activities

Simple Invoicing Desktop Database with MS Access 2013/2016. David W. Gerbing School of Business Administration Portland State University

Access 2013 Introduction to Forms and Reports

Access Groups. Collect and Store. Text Currency Date/Time. Tables Fields Data Type. You Your Friend Your Parent. Unique information

To complete this database, you will need the following file:

Table of Contents COURSE OVERVIEW... 5

Section 1 Creating Mail Merge Files

More Skills 11 Export Queries to Other File Formats

Exploring Microsoft Office Access Chapter 2: Relational Databases and Multi-Table Queries

MS Access Let s begin by looking at the toolbar and menu of Access.

COMM 391. Objectives. Introduction to Microsoft Access. What is in an Access database file? Introduction to Microsoft Access 2010

Let s create another simple report from one of our queries available: Author Age query.

AVANTUS TRAINING PTE LTD

Database Design Practice Test JPSFBLA

Microsoft Access 2007 Module 1

HKTA TANG HIN MEMORIAL SECONDARY SCHOOL SECONDARY 3 COMPUTER LITERACY. Name: ( ) Class: Date: Databases and Microsoft Access

The specific steps to build Wooden Crafts database are here: 1. Create New Database. i. After opening Access, click Blank Desktop Database :

Access ComprehGnsiwG. Shelley Gaskin, Carolyn McLellan, and. Nancy Graviett. with Microsoft

Creating Reports in Access 2007 Table of Contents GUIDE TO DESIGNING REPORTS... 3 DECIDE HOW TO LAY OUT YOUR REPORT... 3 MAKE A SKETCH OF YOUR

MS-Access : Objective Questions (MCQs) Set 1

Word 2007 Mail Merge

Productivity Tools Objectives 1

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

Working with Data in Microsoft Excel 2010

Microsoft Access XP Queries. Student Manual

Microsoft How to Series

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

GO! with Microsoft Access 2016 Comprehensive

Session 10 MS Word. Mail Merge

Advanced Excel. Click Computer if required, then click Browse.

Productivity Tools Objectives

Chapter 8 Relational Tables in Microsoft Access

To complete this workbook, you will need the following file:

Links to Activities ACTIVITY 4.1. Links to Activities Links to Activities

Access: Printing Data with Reports

Microsoft Access 2003 Quick Tutorial

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5)


INTRODUCTION ACCESS 2010

More Skills 12 Create Indexes and Establish a One-to-One Relationship. To complete this database, you will need the following file:

USING DATABASES Syllabus Version 6.0

SEE GRADING CRITERIA AT THE BOTTOM. Database Tables Lookup Wizard Relationships Forms Queries Reports

Using Reports. Access 2013 Unit D. Property of Cengage Learning. Unit Objectives. Files You Will Need

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

DAY 7: EXCEL CHAPTER 5. Divya Ganesan February 5, 2013

Database Use & Design

Chapter 4: Single Table Form Lab

AVANTUS TRAINING PTE LTD

Navigate to Cognos Cognos Analytics supports all browsers with the exception of Microsoft Edge.

Transcription:

DELHI PUBLIC SCHOOL, Durgapur QUESTION BANK & REVISION SHEET OF COMPUTER FOR FINAL EXAMINATION (207-8) CLASS-VII Computer C++ Programs(CONDITIONAL CONSTRUCTS & LOOPS) Q.WAP to accept any three number and display greatest among them. Q.2 WAP to accept any number and display first ten multiples of that number. Q.3 WAP to accept any five numbers and display their sum and product using loop. Q.4WAP to generate following pattern:- a) * * * * * * * * * * b) 2 2 3 2 3 4 c) 2 2 3 3 3 4 4 4 4 d) 2 3 4 5 6 7 8 9 0 e) 0 0 0 0 Q.5 WAP to accept any two numbers and perform following operations and give result based on user s choice (Menu Drive Program):- a) Add b)subtract c)multiply d) Divide Q.6 WAP to accept any number and check whether it is positive or negative. Q.7 WAP to accept any number and check whether it is odd or even number. Q.8 WAP to accept any character and check whether it is vowel or not. Find out errors in following programs:- ) #include<iostream.h> ; int a,b; cout<<"enter the value of a"; cin>>a; cout<<"enter the value of b"; Page of 7

cin<<b; if(a>b); cout<<"value of b is more than a"; if cout<<"value of a is more than b"; getch() 2)include<iostream.h> int a cout<<"enter the value of a "; cin<<a; if(a%2=0) cout<<a<<"is even number"; cout<<a<<"is odd number"; 3) #include<iostream.h> #include<stdio.h> ; [ int a; cout<<"enter the value of a"; cin>>a; if(a>=) cout<<"a is a positive number"; (a<0) cout<<"a is a negative number"; cout<<"a is zero"; getch() ) 4)#include<iostream.h> int i=, num=3, res; Page 2 of 7

while(i<=0) res= i*no; cout<<result<<endl; i+; 5)#include<iostream.h> int i=; num=3; res, do; res= i*num; cout<<res<<endl; i++; while(i<=0) 6)#include<iostream.h> int num=3,i,result; for(i=;i<=0;i++); b=i*num; cout<<a<<"*"<<i<<"="<<result<<endl; Predict the output of the Following programme:- ) #include<iostream.h> #include<canio.h> ; int a,b,c; cout<< Enter any three numbers: ; cin>>a>>b>>c; if((a>b)&(a>c)) a=a*b*c; cout<< New value of a is: <<a; if(b>c) b=a+b+c; cout<< New value of b is: <<b; c=(a+b)/c; Page 3 of 7

cout<< New value of c is: <<c; Note: If value of a,b,c are respectively-5,2,7 then predict the output 2) #include<iostream.h> #include<canio.h> ; int a,b; cout<< Enter any two numbers: ; cin>>a>>b; if(a>b) a=(a*2)/5; cout<< New value of a is: <<a; b=(a+5)/3; cout<< New value of b is: <<b; Note: If value of a and b respectively 5,0 then predict the output. Answer the following Questions:- )Write the syntax of if- construct.2) Write the syntax of if- if construct. 3) Differentiate between the if- and if- if statements.4)define Loops.5) What are the different types of loops or define each types of loops.6)write the Syntax of while, do while for loop. 7) Discuss the advantage of using loops. 8)Differentiate between the wile Loop and the do while loop. Chapter-Storing Information Effectively.. FILL IN THE BLANKS:- a)dbms stands for. b) is one of the most common types of DBMS. c) The Blank database option is available under the section. d) By default, database has an empty table named as. e) is a view that allows you to modify the structure of a table. f) The data type stores short alphanumeric values, text or a combination of both. g) The data type stores substantial alphanumeric text, such as notes and description. h) The data type stores values like the price of a product. i) A is an empty table that can be used as it is, or modified as per need. j) The helps to identify and quickly search particular details in a table. k) The Primary key cannot have values. 2. CORRECT THE UNDERLINED ERRORS:- a) The Primary Key icon is available in the Create tab. b) By default, Microsoft Access sets the any column of a table as the Primary Key. c) A table can have more than one column set as the Primary Key, which is used identify a record. d) Design View is the default view of a table, which shows the records in a table. e) A column represents a set of related information about a particular entry in a table. Page 4 of 7

f) Datasheet View is available under the Tools tab. g) Design View allows you to add or modify the records. h) The Primary Key in a database is used to connect two tables. i) the Relationship button is available under the Create tab. j) The Cascade Update Related Fields rule prevents you from entering a value in the Foreign Key field if a corresponding value does not exist in the Primary key. k) The Enforce Referential Integrity rule allows updating all the related Foreign key values, if the Primary key value is modified. 3. STATE TRUE OR FALSE:- a) In Microsoft Access 200, the Blank database option is available in the New Blank Database section. b) You should click the folder icon next to the File Name text box to change the default save location. c) Information in a database is not stored in different rows and columns. d) While saving a database, its name is entered in the File Name Text box. e)microsoft Access is a kind of RDBMS. f) A database can have more than one table. g) In Design View, you can specify only one Field Name and Data Type for a particular column. h) The Date/Time data type stores the date and time values, such as Date of Birth and Date of Joining. i) A data type refers to the type of data that can be stored in a column of a table. j) Data types cannot be changed for a column in a table. k) The Primary key is a row in a table which has unique values. 4. ONE WORD ANSWER:- a) Which kind of software is Microsoft Access? b) The Primary Key is available in which tab? c) Which type of values hold by a Primary key field? d) By default which table appears in a newly created database? e) Which short cut key we use to save a table? f) What we specify within a Design View? g) Which data type stores substantial alphanumeric values? h) Which data type stores Boolean values? i) Which option is provided by Ms Access to create table quickly? j) What is the default view of a table? k) Which key is considered as a Primary key of another table? 5. ANSWER THE FOLLOWING QUESTIONS:- a) What is Database? b) What is Database Management System? c) What is Relational Database Management System? d) Name some database now days in use. e) What is Virtual Table? f) Define-i>Table, ii>record, iii>field, iv>cell. g)what is Design View? h) What is Data Type? Define each type of Data. i)what is Table template? j) what is Data Sheet View? k) Differentiate between Design View & Datasheet View. l) What is Primary Key? Define 2 of its features. m) What is Foreign Key? n)define the rules which we implement to maintain the relationship of a table. Or Define-i. Enforce Referential Integrity, ii. Cascade Update Related Fields. iii. Cascade Delete Related Records. o) Differentiate between Cascade Update Related Fields & Cascade Delete Related Records. Chapter-Retrieving Data From Database. 2. FILL IN THE BLANKS:- a) To close the Find and Replace dialog box, you should click. b) To arrange the Records in the increasing order, you should select the option in the Sort & Filter group. Page 5 of 7

c) To filter the Records in the table, we can click on the drop-down arrow next to the name. d) The group has the Options to arrange the records in the ascending or descending order. e) To search the Required details in a table, click the button. f) The dialog box allows us to add multiple tables in the query window g) Query design allows us to customize our, thereby providing more control over a query. 2. STAE TRUE OR FLAS:- a) We cannot search a particular record in a table. b) To arrange records in the ascending or descending order, you need to filter them. c) To search the details in a table, open the table in Datasheet View. d) There is only one way to sort records in a table e) Filter button is located in Home Tab. f) The Criteria row allows us to specify any condition in a query. g) We need to run the query created using Query Design. 3. CORRECT THE UNDERLINE ERRORS:- a) The Home tab contains the Query Wizard option. b) The Existing Query dialog box opens when we click the Query Wizard option. c) A query is a Table object used to retrieve specific information from the database. d) To save a query, click on the Save button. e) The Play button in the Result group must be selected to execute a query. f) The Query name appears by default when we select Field in the table row. g) The File tab contains the Query Design option. 4. ONE WORD ANSWER:- a) Which object we use to retrieve information from database? b) Which group contains Query Wizard Option? c) Which option provides step-by-step approach to create a query in the database?. d) On which button we use to click in order to move the fields from Available Fields to Selected Fields? e) If the table name is Details, then what will be the default query name? f) Which value checks a particular field for null values in a table? g) Which Dialog box opens when we click the Query Design Option? 5. ANSWER THE FOLLOWING QUESTIONS:- a) Write the ways to mange records and retrieve specific information from the Database. b) Define- i>searching, ii> Sorting, iii> Filter Option. c) Write the steps of Searching Records. d) Write the steps of Sorting Records. e) Write the steps of Filtering Records. f) What is Query? g) What is Query Design? h) What is Query Wizard? i) What is the Use of Show Table dialog box. j) Define Criteria Row. k) Define the Is Null value. l) Differentiate between Query Wizard and Query Design. m) Write the Steps to create a Query in Query Design View. n) Write the steps to create a Query in Query Wizard. Chapter-Designing Forms and Reports. FILL IN THE BLANKS:- a) The Form Wizard button is available in the. b) A is a database object that allows us to enter, change and view data in a database. c) The Add All button moves all fields from Fields to Selected Fields. d) Toolbar contains the Save button to save a form. e) The Navigation Bar shows the number of records in a table. f) The Add Existing Fields button in the group of the Design tab must be selected to add a field. g) Use the option in the Format tab to add a background image in the report. h) The Print Preview option is present in the group. i) The group is present in the Design tab. Page 6 of 7

2. STATE TRUE OR FALSE:- a) Form Wizard in Microsoft Access provides a step-by-step approach create a form. b) Control group contains the Form Wizard button. c) The Form Data dialog box appears when we click the Form Wizard button. d) It is not possible to add a new blank record using Record Navigation Bar. e) The Record Navigation bar appears at the top of the Microsoft Access window. f) Label control is used to display text in reports. g) An image can be added to a report by selecting the Background Image option from the Format tab. 3. CORRECT THE UNDERLINE ERRORS:- a) The field List pane appears on the left side of the screen. b) The multiply icon must be clicked besides the table in Field List to display names of all the tables in the database. c) You can Double click a table name to view the fields in the table. d) Data cannot be modified when we create report using Report Wizard. e) Report is a database object used to view and summarize data in a readable format. f) We cannot add footers to our report. g) Print Preview cannot be opened through the File tab. 4. ONE WORD ANSWER:- a) Which group contains the Form Design button? b) Which View is used to view a form from the View drop-down in the Views group to view a form? c) Which group contains the Report Wizard button? d) Name the drop-down list from which the table to be modified using report Wizard must be selected? e) What is the default layout in Report Wizards? f) Which tab contains Background Image option? g) Which tab is used to format a report? 5. ANSWER THE FOLLOWING QUESTIONS:- a) What is a Form? b) Write the steps to create Form in Form Wizard. c) Write the Steps to Create a Form in Form Design. d) What is the use of Form Design button? e) What is Report? f) Write the Steps to add Label in a Report? g) Write the steps to set Background image in a Report. h) Write the steps to add Logo in a Report. i) What is the use of Record Navigation Bar in Form? j) Write the steps to create a report in Report Wizard. Syllabus- CHAPTERS NAMES 5. USING CONDITIONAL CONSTRUCTS 6. PROGRAMMING USING LOOPS 7. STORING INFORMATION EFFECTIVELY 8. RETRIEVING DATA FROM DATABASE 9. DESIGNING FORMS AND REPORTS. Page 7 of 7