EXERCISES (Software Engineering)

Size: px
Start display at page:

Download "EXERCISES (Software Engineering)"

Transcription

1 Chapter 1 1. What is Software Engineering? 2. What is Requirement Engineering? EXERCISES (Software Engineering) 3. What are the Different types of Architectures in Software Engineering? 4. How many subdisciplines can Software engineering be divided into? 5. List 20 programming languages 6. Programming paradigm, based on a programming language technology 7. List 5 platforms that combine computer hardware and an operating system 8. What is Software development process Chapter 2 1. Development life cycle phase 2. Product Life cycle phase and Project lifecycle 3. Release development stage, near the end of a release cycle 4. Software development lifecycle 5. What are the advantages and the disadvantages of a waterfall model? Also how do you overcome the disadvantage of a waterfall model? 6. What are the advantages and the disadvantages of developing the prototype of the system? Chapter 3 1. What are the role of statistical Methods? 2. Major steps to develop a test plan 3. The seven-steps Testing process? Decribe them. 4. Static testing techniques: Definition, types of reviews, roles and responsibilities. 5. Dynamic testing techniques: List, define and give examples. 6. What is GUI Testing? 7. Consider a program for determining the previous date. Its input is a triple of day, month year with the value in range 1 month 12 1

2 1 day year 2025 The possible outputs would be previous day or invalid input date. Design the boundary value test cases Design robustness testing test cases Identify the equivalence class test cases for output and input 8. Consider a program for the determination of nature of roots of a quadratic equation. Values of coefficients are ranged from 10 to 100. The program may outputs one of following words: Not a quadratic equation, Real Root, Imaginary Root, Equal Root Identify the equivalence test cases for output and input domain Identify the test cases using the decision table. Design the boundary value test cases Design robustness testing test cases 9. Consider a simple program to classify a triangle. Its input is a triple of positive integer (say x, y,z) and the data type for input parameter ensure that will be greater than 100 and less than or equal to 300. The program output may be one of following words: Scalene, Isosceles, Equilateral, Not a triangle Identify the equivalence test cases for output and input domain Identify the test cases using the decision table. Design the boundary value test cases Design robustness testing test cases 10. Consider an example of grading the students in an academic institution. The grading is done according to the following rules: Marks obtained Grade Distinction First division Second division Third division Fail Generate test cases using equivalence class testing technique. 2

3 11. Consider a program to determine whether a number is odd or even and print the message NUMBER IS ODD or NUMBER IS EVEN The number may be any valid integer. Design boundary value & equivalence class test cases. 12. Consider a program given below for selection of the largest numbers 1. main() 2. { 3. byte A, B, C; 4. printf("enter three values\n"); 5. scanf("%f%f%f", &A, &B, &C); 6. printf("\n largest value is: "); 7. if( A>B) 8. { 9. if (A>C) 10. printf("%f\n",a); 11. else 12. printf("%f\n",c); 13. } 14. else 15. { 16. if (C>B) 17. printf("%f\n",c); 18. else 19. printf("%f\n",b); 20. } 21. } Design the set of test cases using boundary value analysis technique and equivalence class testing technique Select a set of test cases that will provide 100% statement coverage. Develop a decision table for this program Generate a flow graph for this program 3

4 Draw the DD path graph from flow graph Find the independent paths from the DD path graph. Design a set of test cases that covers all independent paths Find all du-paths and identify those du-paths that are definition clear. 13. Consider a program given below for classification of a triangle. Its input is a triple of positive integer( say x, y,z) and the data type for input parameter ensure that will be greater than 0 and less than or equal to 100. The program output may be one of following words: Scalene, Isosceles, Equilateral, Not a triangle #include<stdio.h> #include<conio.h> 1. int main() 2. { 3. int a, b, c, validinput = 0; 4. printf( Enter the side a value: ); 5. scanf( %d,&a); 6. printf( Enter the side b value: ); 7. scanf( %d,&b); 8. printf( Enter the side c value ); 9. scanf( %d, c); 10. if((a>0) && (a<=100) && (b>0) && (b<=100) && (c>0) && (a<= 100)) { 11. if((a+b) > c) && ((c + a) > b) && ((b + c) > a) { 12. validinput = 1; 13. } 14. } 15. else { 16. validinput = -1; 17. } 4

5 18. if(validinput==1) { 19. if((a==b) && (b==c)) { 20. prinf( The Triangle is equilateral ); 21. } 22. else if((a==b) (b==c) (c==a)) { 23. printf( the triangle is isosceles ); 24. } 25. else{ 26. printf( The triangle is scalene ) ; 27. } 28. } 29. else if (validinput = = 0) { 30. printf( The values do not constitute a triangle ); 31. else{ 32. printf( The inputs belong to invalid range ); 33. } 34. getch(); 35. return 1; 36. } Generate a flow graph for this program Draw the DD path graph from flow graph Find the independent paths from the DD path graph. Design a set of test cases that covers all independent pahts Find all du-paths and identify those du-paths that are definition clear. Design a set of test cases that covers all du-paths but not dc-paths 14. Consider a program given below for computes the commission base on the sale values. 1. Program Commission (INPUT, OUTPUT) 2. Dim locks, stocks, barrels As Integer 3. Dim lockprice, stockprice, barrelprice As Real 4. Dim totallocks, totalbarrels As Integer 5

6 5. Dim locksales, stocksales, barrelsales As Real 6. Dim sales, commission As Real 7. lockprice = stockprice = barrelprice = totallocks = totalstocks = totalbarrels = Input(locks) 14. While NOT(locks = -1) 15. Input(stocks, barrels) 16. totallocks = totallocks + locks 17. totalstocks = totalstocks + stocks 18. totalbarrels = totalbarrels + barrels 19. Input(Locks) 20. End While 21. Output( Locks sold:,totallocks) 22. Output( Stocks sold:,totalstocks) 23. Output( Barrels sold:,totalbarrels) 24. locksales = lockprice * totallocks 25. stocksales = stockprice * totalstocks 26. barrelsales = barrelprice * totalbarrels 27. saels = locksales + stocksales + barrelsales 28. Output( Total sales :, sales) 29. If(sales > ) 30. then 31. commission = 0.10 * commission = commission * commission = commission *(sales ) 34. Else If (sales > ) 35. then 6

7 36. commission = 0.10 * commission = commission *(sales ) 38. Else commission = 0.10 * sales 39. EndIf 40. EndIf 41. Output( Commission is $, commission) 42. End Commission Generate a flow graph for this program Draw the DD path graph from flow graph Find the independent paths from the DD path graph. Find all du-paths and identify those du-paths that are definition clear. Design a set of test cases that covers all du-paths but not dc-paths Chapter 4 1. What is software maintenance? 2. Describe various categories of maintenance. 3. What are the key software maintenance? 4. Describe the software maintenance processes (the international standard). 5. Why is maintenance programming becoming more challenge than new development? 7

CSCE 747 Software Testing and Quality Assurance

CSCE 747 Software Testing and Quality Assurance CSCE 747 Software Testing and Quality Assurance Lecture 07 Dataflow Testing 1 Lec 07 Dataflow Testing 1 9/1/2013 CSCE 747 Fall 2013 Last Time Lecture 06 Slides 1 19 covered last time Case Study Question

More information

SOFTWARE TESTING LABORATORY. Subject Code: 10ISL68 I.A. Marks: 25 Hours/Week: 03 Exam Hours: 03 Total Hours: 42 Exam Marks: 50

SOFTWARE TESTING LABORATORY. Subject Code: 10ISL68 I.A. Marks: 25 Hours/Week: 03 Exam Hours: 03 Total Hours: 42 Exam Marks: 50 SOFTWARE TESTING LABORATORY Subject Code: 10ISL68 I.A. Marks: 25 Hours/Week: 03 Exam Hours: 03 Total Hours: 42 Exam Marks: 50 1. Design and develop a program in a language of your choice to solve the Triangle

More information

SOFTWARE TESTING LABORATORY. I.AMarks:20 Hours/Week: 03 ExamHours: 3 Total Hours: 40 Exam Marks: 80 Number of Lecture Hours/Week: 01I + 02P

SOFTWARE TESTING LABORATORY. I.AMarks:20 Hours/Week: 03 ExamHours: 3 Total Hours: 40 Exam Marks: 80 Number of Lecture Hours/Week: 01I + 02P SOFTWARE TESTING LABORATORY Subject Code: 15ISL67 I.AMarks:20 Hours/Week: 03 ExamHours: 3 Total Hours: 40 Exam Marks: 80 Number of Lecture Hours/Week: 01I + 02P 1. Design and develop a program in a language

More information

PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE

PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE PROGRAMMING IN C LAB MANUAL FOR DIPLOMA IN ECE/EEE 1. Write a C program to perform addition, subtraction, multiplication and division of two numbers. # include # include int a, b,sum,

More information

Software Testing. 1. Testing is the process of demonstrating that errors are not present.

Software Testing. 1. Testing is the process of demonstrating that errors are not present. What is Testing? Software Testing Many people understand many definitions of testing :. Testing is the process of demonstrating that errors are not present.. The purpose of testing is to show that a program

More information

Software Testing Laboratory Lab Assignments

Software Testing Laboratory Lab Assignments Problem Statement 01 (Week 01) Software Testing Laboratory Lab Assignments Consider an automated banking application. The user can dial the bank from a personal computer, provide a six-digit password,

More information

IV Year I SEMESTER. Software Testing Lab

IV Year I SEMESTER. Software Testing Lab IV Year I SEMESTER Software Testing Lab T P C 0 3 2 Lab Assignments Problem Statement 01 Consider an automated banking application. The user can dial the bank from a personal computer, provide a six-digit

More information

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS 1 ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS)

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS 1 ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS) FACULTY: Ms. Saritha P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS 1 ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS) SUBJECT / CODE: Programming in C and Data Structures- 15PCD13 What is token?

More information

What is Structural Testing?

What is Structural Testing? Structural Testing What is Structural Testing? Based on Source Code Examine the internal structure of the program Test cases are derived from an examination of program s logic Do not pay any attention

More information

MODULE 2: Branching and Looping

MODULE 2: Branching and Looping MODULE 2: Branching and Looping I. Statements in C are of following types: 1. Simple statements: Statements that ends with semicolon 2. Compound statements: are also called as block. Statements written

More information

Equivalence Class Partitioning. Equivalence Partitioning. Definition and Example. Example set of classes

Equivalence Class Partitioning. Equivalence Partitioning. Definition and Example. Example set of classes Equivalence Class Partitioning Equivalence Partitioning From S. Somé, A. Williams 1 Suppose that we were going to test a method that implements the absolute value function for integers. Definition public

More information

Flow Chart. The diagrammatic representation shows a solution to a given problem.

Flow Chart. The diagrammatic representation shows a solution to a given problem. low Charts low Chart A flowchart is a type of diagram that represents an algorithm or process, showing the steps as various symbols, and their order by connecting them with arrows. he diagrammatic representation

More information

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS DEPARTMENT OF SCIENCE AND HUMANITIES EVEN SEMESTER FEB 2017

P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS DEPARTMENT OF SCIENCE AND HUMANITIES EVEN SEMESTER FEB 2017 P.E.S. INSTITUTE OF TECHNOLOGY BANGALORE SOUTH CAMPUS DEPARTMENT OF SCIENCE AND HUMANITIES ST INTERNAL ASSESMENT TEST (SCEME AND SOLUTIONS) EVEN SEMESTER FEB 07 FACULTY: Dr.J Surya Prasad/Ms. Saritha/Mr.

More information

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION

SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, ) SOLUTION SHARDA UNIVERSITY SCHOOL OF ENGINEERING & TECHNOLOGY Mid Term Examination, (Odd Term, 2016-17) SOLUTION Program: B. Tech. Branch: All Term:I Subject: Logic Building and Problem Solving Using C Paper Code:

More information

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities

PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Basic Science and Humanities INTERNAL ASSESSMENT TEST 1 SOLUTION PART 1 1 a Define algorithm. Write an algorithm to find sum and average of three numbers. 4 An Algorithm is a step by step procedure to solve a given problem in finite

More information

Decision Making -Branching. Class Incharge: S. Sasirekha

Decision Making -Branching. Class Incharge: S. Sasirekha Decision Making -Branching Class Incharge: S. Sasirekha Branching The C language programs presented until now follows a sequential form of execution of statements. Many times it is required to alter the

More information

x 2 +7x+1 x<0 7x+17 0<x 10 Z= x 2 +10x x 25 25x+100 other values

x 2 +7x+1 x<0 7x+17 0<x 10 Z= x 2 +10x x 25 25x+100 other values IF STATEMENT 2013-2014 General form of an if without an : If (a Boolean expression) A sequence of statement General form of an if with an : If (a Boolean expression) A sequence of statements a sequence

More information

CS1100 Introduction to Programming

CS1100 Introduction to Programming Decisions with Variables CS1100 Introduction to Programming Selection Statements Madhu Mutyam Department of Computer Science and Engineering Indian Institute of Technology Madras Course Material SD, SB,

More information

ALGORITHMS AND FLOWCHARTS

ALGORITHMS AND FLOWCHARTS ALGORITHMS AND FLOWCHARTS ALGORITHMS AND FLOWCHARTS A typical programming task can be divided into two phases: Problem solving phase produce an ordered sequence of steps that describe solution of problem

More information

EECS 4313 Software Engineering Testing. Topic 05: Equivalence Class Testing Zhen Ming (Jack) Jiang

EECS 4313 Software Engineering Testing. Topic 05: Equivalence Class Testing Zhen Ming (Jack) Jiang EECS 4313 Software Engineering Testing Topic 05: Equivalence Class Testing Zhen Ming (Jack) Jiang Relevant Readings [Jorgensen] chapter 6 Introduction Boundary Value Testing derives test cases with Massive

More information

PDS Lab Section 16 Autumn Tutorial 3. C Programming Constructs

PDS Lab Section 16 Autumn Tutorial 3. C Programming Constructs PDS Lab Section 16 Autumn-2017 Tutorial 3 C Programming Constructs This flowchart shows how to find the roots of a Quadratic equation Ax 2 +Bx+C = 0 Start Input A,B,C x B 2 4AC False x If 0 True B x 2A

More information

PESIT Bangalore South Campus Hosur Road (1km before Electronic City), Bengaluru Department of Basic Science and Humanities

PESIT Bangalore South Campus Hosur Road (1km before Electronic City), Bengaluru Department of Basic Science and Humanities SOLUTION OF CONTINUOUS INTERNAL EVALUATION TEST -1 Date : 27-02 2018 Marks:60 Subject & Code : Programming in C and Data Structures- 17PCD23 Name of faculty : Dr. J Surya Prasad/Mr. Naushad Basha Saudagar

More information

Decision Making and Branching

Decision Making and Branching INTRODUCTION Decision Making and Branching Unit 4 In the previous lessons we have learned about the programming structure, data types, declaration of variables, tokens, constants, keywords and operators

More information

DECISION CONTROL AND LOOPING STATEMENTS

DECISION CONTROL AND LOOPING STATEMENTS DECISION CONTROL AND LOOPING STATEMENTS DECISION CONTROL STATEMENTS Decision control statements are used to alter the flow of a sequence of instructions. These statements help to jump from one part of

More information

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake

Object Oriented Programming Using C++ Mathematics & Computing IET, Katunayake Assigning Values // Example 2.3(Mathematical operations in C++) float a; cout > a; cout

More information

UNIVERSITY OF MUMBAI T.Y.B.Sc. INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 2014 SOFTWARE TESTING Seat No. : Max.

UNIVERSITY OF MUMBAI T.Y.B.Sc. INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 2014 SOFTWARE TESTING Seat No. : Max. T.Y.B.Sc. INFORMATION TECHNOLOGY) (Semester V) (Practical) EXAMINATION OCTOBER 14 1. Design the test cases for Boundary Value analysis of the following. Consider a program that prompts the user to input

More information

TEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013

TEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013 DEPARTMENT OF MATERIAL AND ENGINEERING DESIGN FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING UNIVERSITI TUN HUSSEIN ONN MALAYSIA (UTHM), JOHOR TEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013

More information

Classify Triangles. by the Angle Measure &The Side Lengths. Properties a SCALENE Triangle angles 1.Sum of the interior

Classify Triangles. by the Angle Measure &The Side Lengths. Properties a SCALENE Triangle angles 1.Sum of the interior Classify s by the Angle Measure &The Side Lengths Foldable Resource & Reference Properties a SCALENE angles 1.Sum of the interior equals. 180 2. The measure of each is side length is. different Note: If

More information

Quality Assurance in Software Development

Quality Assurance in Software Development Quality Assurance in Software Development Qualitätssicherung in der Softwareentwicklung A.o.Univ.-Prof. Dipl.-Ing. Dr. Bernhard Aichernig Graz University of Technology Austria Summer Term 2017 1 / 47 Agenda

More information

CS 4387/5387 SOFTWARE V&V LECTURE 4 BLACK-BOX TESTING

CS 4387/5387 SOFTWARE V&V LECTURE 4 BLACK-BOX TESTING 1 CS 4387/5387 SOFTWARE V&V LECTURE 4 BLACK-BOX TESTING Outline 2 Quiz Black-Box Testing Equivalence Class Testing (Equivalence Partitioning) Boundary value analysis Decision Table Testing 1 3 Quiz - 1

More information

Discovery Activity & Practice

Discovery Activity & Practice Discovery Activity & Practice For the inquiry activity, there are two options. Choose the 2- page version (pages 12-13) for students who need more workspace and extra guidance. For Warm-Up B, choose

More information

PSEUDOCODE AND FLOWCHARTS. Introduction to Programming

PSEUDOCODE AND FLOWCHARTS. Introduction to Programming PSEUDOCODE AND FLOWCHARTS Introduction to Programming What s Pseudocode? Artificial and Informal language Helps programmers to plan an algorithm Similar to everyday English Not an actual programming language

More information

Solution Set(Reference Book - Programming with c By Byron Gottfried Thrid Edition)

Solution Set(Reference Book - Programming with c By Byron Gottfried Thrid Edition) (2½ Hours) [Total Marks: 75 N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.

More information

C Programming Lecture V

C Programming Lecture V C Programming Lecture V Instructor Özgür ZEYDAN http://cevre.beun.edu.tr/ Modular Programming A function in C is a small sub-program that performs a particular task, and supports the concept of modular

More information

Introduction. Easy to get started, based on description of the inputs

Introduction. Easy to get started, based on description of the inputs Introduction Testing is about choosing elements from input domain. The input domain of a program consists of all possible inputs that could be taken by the program. Easy to get started, based on description

More information

Subject: Fundamental of Computer Programming 2068

Subject: Fundamental of Computer Programming 2068 Subject: Fundamental of Computer Programming 2068 1 Write an algorithm and flowchart to determine whether a given integer is odd or even and explain it. Algorithm Step 1: Start Step 2: Read a Step 3: Find

More information

SOFTWARE TESTING LABORATORY

SOFTWARE TESTING LABORATORY oratory M.I.T VI ISE SOFTWARE TESTING LABORATORY Subject Code: 10ISL68 I.A. Marks : 25 Hours/Week : 03 Exam Hours: 03 Total Hours : 42 Exam Marks: 50 1. Design and develop a program in a language of your

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus USN 1 P E PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Information Science & Engineering INTERNAL ASSESSMENT TEST 1 Date : 23/02/2016 Max Marks: 50

More information

Number Theory and Proof Methods

Number Theory and Proof Methods 9/6/17 Lecture Notes on Discrete Mathematics. Birzeit University Palestine 2016 and Proof Methods Mustafa Jarrar 4.1 Introduction 4.3 Divisibility 4.4 Quotient-Remainder Theorem mjarrar 2015 1 Watch this

More information

PES INSTITUTE OF TECHNOLOGY- BANGALORE SOUTH CAMPUS

PES INSTITUTE OF TECHNOLOGY- BANGALORE SOUTH CAMPUS Sixth Semester B.E. IA Test I, Feb, 2015 USN 1 P E I S PES INSTITUTE OF TECHNOLOGY- BANGALORE SOUTH CAMPUS (Hosur Road, Electronic City, Bangalore-560 100) Date & Time: 25-02-2015, 8:30 AM - 11:00 AM Max

More information

Computer Programming. Decision Making (2) Loops

Computer Programming. Decision Making (2) Loops Computer Programming Decision Making (2) Loops Topics The Conditional Execution of C Statements (review) Making a Decision (review) If Statement (review) Switch-case Repeating Statements while loop Examples

More information

Input Space Partitioning

Input Space Partitioning Input Space Partitioning Instructor : Ali Sharifara CSE 5321/4321 Summer 2017 CSE 5321/4321, Ali Sharifara, UTA 1 Input Space Partitioning Introduction Equivalence Partitioning Boundary-Value Analysis

More information

Lab 2: Structured Program Development in C

Lab 2: Structured Program Development in C Lab 2: Structured Program Development in C (Part A: Your first C programs - integers, arithmetic, decision making, Part B: basic problem-solving techniques, formulating algorithms) Learning Objectives

More information

Single Dimension Arrays

Single Dimension Arrays ARRAYS Single Dimension Arrays Array Notion of an array Homogeneous collection of variables of same type. Group of consecutive memory locations. Linear and indexed data structure. To refer to an element,

More information

not to be republished NCERT CONSTRUCTIONS CHAPTER 10 (A) Main Concepts and Results (B) Multiple Choice Questions

not to be republished NCERT CONSTRUCTIONS CHAPTER 10 (A) Main Concepts and Results (B) Multiple Choice Questions CONSTRUCTIONS CHAPTER 10 (A) Main Concepts and Results Division of a line segment internally in a given ratio. Construction of a triangle similar to a given triangle as per given scale factor which may

More information

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each.

I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK a) What is the difference between Hardware and Software? Give one example for each. I SEMESTER EXAM : : XI :COMPUTER SCIENCE : MAX MARK 70. a) What is the difference between Hardware and Software? Give one example for each. b) Give two differences between primary and secondary memory.

More information

1. Basics 1. Write a program to add any two-given integer. Algorithm Code 2. Write a program to calculate the volume of a given sphere Formula Code

1. Basics 1. Write a program to add any two-given integer. Algorithm Code  2. Write a program to calculate the volume of a given sphere Formula Code 1. Basics 1. Write a program to add any two-given integer. Algorithm - 1. Start 2. Prompt user for two integer values 3. Accept the two values a & b 4. Calculate c = a + b 5. Display c 6. Stop int a, b,

More information

Questions Bank. 14) State any four advantages of using flow-chart

Questions Bank. 14) State any four advantages of using flow-chart Questions Bank Sub:PIC(22228) Course Code:-EJ-2I ----------------------------------------------------------------------------------------------- Chapter:-1 (Overview of C Programming)(10 Marks) 1) State

More information

It is necessary to have a single function main in every C program, along with other functions used/defined by the programmer.

It is necessary to have a single function main in every C program, along with other functions used/defined by the programmer. Functions A number of statements grouped into a single logical unit are called a function. The use of function makes programming easier since repeated statements can be grouped into functions. Splitting

More information

2 Geometry Solutions

2 Geometry Solutions 2 Geometry Solutions jacques@ucsd.edu Here is give problems and solutions in increasing order of difficulty. 2.1 Easier problems Problem 1. What is the minimum number of hyperplanar slices to make a d-dimensional

More information

Unit 3 Functions. 1 What is user defined function? Explain with example. Define the syntax of function in C.

Unit 3 Functions. 1 What is user defined function? Explain with example. Define the syntax of function in C. 1 What is user defined function? Explain with example. Define the syntax of function in C. A function is a block of code that performs a specific task. The functions which are created by programmer are

More information

Type of Triangle Definition Drawing. Name the triangles below, and list the # of congruent sides and angles:

Type of Triangle Definition Drawing. Name the triangles below, and list the # of congruent sides and angles: Name: Triangles Test Type of Triangle Definition Drawing Right Obtuse Acute Scalene Isosceles Equilateral Number of congruent angles = Congruent sides are of the congruent angles Name the triangles below,

More information

[Y2] Counting and understanding number. [Y2] Counting and understanding number. [Y2] Counting and understanding number

[Y2] Counting and understanding number. [Y2] Counting and understanding number. [Y2] Counting and understanding number Medium Term Plan : Year 2 Autumn Term Block A1.a: Count on and back in 1s or 10s from a 2- digit number; write figures up to 100 Block A1.b: Begin to count up to 100 objects by grouping in 5s or 10s; estimate

More information

Structure, Union. Ashishprajapati29.wordpress.com. 1 What is structure? How to declare a Structure? Explain with Example

Structure, Union. Ashishprajapati29.wordpress.com. 1 What is structure? How to declare a Structure? Explain with Example Structure, Union 1 What is structure? How to declare a Structure? Explain with Example Structure s a collection of logically related data items of different data types grouped together under a single name.

More information

Logical Expressions and Control Statements

Logical Expressions and Control Statements Logical Expressions and Control Statements Logical Data Logical values are true and false. In Fortran they must be written as: and Logical variables are declared with LOGICAL: LOGICAL :: Answer, Test Logical

More information

UNIT - V STRUCTURES AND UNIONS

UNIT - V STRUCTURES AND UNIONS UNIT - V STRUCTURES AND UNIONS STRUCTURE DEFINITION A structure definition creates a format that may be used to declare structure variables. Let us use an example to illustrate the process of structure

More information

Lesson 3.6 Overlapping Triangles

Lesson 3.6 Overlapping Triangles Lesson 3.6 Overlapping Triangles Getting Ready: Each division in the given triangle is 1 unit long. Hence, the side of the largest triangle is 4- unit long. Figure 3.6.1. Something to think about How many

More information

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 Code: DC-05 Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100 NOTE: There are 11 Questions in all. Question 1 is compulsory and carries 16 marks. Answer to Q. 1. must be written in the space

More information

Exercise-1. <html> <head> <title>google.co.in</title> </head> </html> Exercise-2

Exercise-1. <html> <head> <title>google.co.in</title> </head> </html> Exercise-2 HTML Exercise-1 google.co.in Exercise-2 google.co.in Computer Education Zone Exercise-3 google.co.in Computer Education Zone Exercise-4

More information

Unit 8. Structures and Unions. School of Science and Technology INTRODUCTION

Unit 8. Structures and Unions. School of Science and Technology INTRODUCTION INTRODUCTION Structures and Unions Unit 8 In the previous unit 7 we have studied about C functions and their declarations, definitions, initializations. Also we have learned importance of local and global

More information

CEN 134 Algorithms and Programming II Midterm I. April Duration: 90 minutes

CEN 134 Algorithms and Programming II Midterm I. April Duration: 90 minutes CEN 134 Algorithms and Programming II Midterm I April 2011 Duration: 90 minutes 1 2 3 4 5 6 7 8 9 10 Total A Student Name: Student ID Number: Rules 1. Electronic device(phone,calculator,etc.) usage is

More information

Introduction to programming Tasks

Introduction to programming Tasks Introduction to programming Tasks Imre Varga University of Debrecen, Faculty of Informatics For internal use only! 11 February 2017 Computer system Put the following things into the appropriate set: CPU,

More information

Name. 6b, Triangles. 1. A bridge contains beams that form triangles, as shown below.

Name. 6b, Triangles. 1. A bridge contains beams that form triangles, as shown below. Name 6b, Triangles 1. A bridge contains beams that form triangles, as shown below. Which of the following best describes the triangle with the given measures? acute scalene triangle obtuse scalene triangle

More information

Functional Testing (Black Box Testing)

Functional Testing (Black Box Testing) Functional Testing (Black Box Testing) In black box testing, program is treated as a black box. Implementation details do not matter. Takes a user point of view. Functional testing verifies that each function

More information

A control structure refers to the way in which the Programmer specifies the order of executing the statements

A control structure refers to the way in which the Programmer specifies the order of executing the statements Control Structures A control structure refers to the way in which the Programmer specifies the order of executing the statements The following approaches can be chosen depending on the problem statement:

More information

Decision Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Decision Control Structure. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan Decision Control Structure DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Introduction to Computer Programming (ICP) Decision control

More information

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

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. E. McGann LA Mission College Math 125 Fall 2014 Test #1 --> chapters 3, 4, & 5 MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Provide an appropriate

More information

Geometry- Unit 6 Notes. Simplifying Radicals

Geometry- Unit 6 Notes. Simplifying Radicals Geometry- Unit 6 Notes Name: Review: Evaluate the following WITHOUT a calculator. a) 2 2 b) 3 2 c) 4 2 d) 5 2 e) 6 2 f) 7 2 g) 8 2 h) 9 2 i) 10 2 j) 2 2 k) ( 2) 2 l) 2 0 Simplifying Radicals n r Example

More information

Engineering 12 - Spring, 1999

Engineering 12 - Spring, 1999 Engineering 12 - Spring, 1999 1. (18 points) A portion of a C program is given below. Fill in the missing code to calculate and display a table of n vs n 3, as shown below: 1 1 2 8 3 27 4 64 5 125 6 216

More information

Programming and Data Structure Tutorial sheet: 1 Topics: Data Handling, Operators and Expressions, Input and Output Operations.

Programming and Data Structure Tutorial sheet: 1 Topics: Data Handling, Operators and Expressions, Input and Output Operations. Programming and Data Structure Tutorial sheet: 1 Topics: Data Handling, Operators and Expressions, Input and Output Operations. Q1. (a) Which one of the following is a valid name of a C variable: 2ab_c,

More information

Midpoint and Distance Formulas

Midpoint and Distance Formulas CP1 Math Unit 5: Coordinate Geometry: Day Name Midpoint Formula: Midpoint and Distance Formulas The midpoint of the line segment between any two points (x!, y! ) to (x!, y! ) is given by: In your groups,

More information

Georgia Department of Education Common Core Georgia Performance Standards Framework Fourth Grade Mathematics Unit 6

Georgia Department of Education Common Core Georgia Performance Standards Framework Fourth Grade Mathematics Unit 6 PRACTICE TASK: My Many Triangles Adapted from Van De Walle, J.A., Karp, K. S., & Bay-Williams, J. M. (2010). Elementary and Middle School Mathematics: Teaching Developmentally 7 th Ed. Boston: Pearson

More information

1. The keyword main in C language is used for

1. The keyword main in C language is used for 1. The keyword main in C language is used for a. an user defined function *b. the first function to be executed in the program c. an user defined variable 2. The role of a C compiler is to translate a.

More information

The Hyderabad Public School, Begumpet, Hyderabad, A.P

The Hyderabad Public School, Begumpet, Hyderabad, A.P The Hyderabad Public School, Begumpet, Hyderabad, A.P. 500 016 2012-13 Department of Computer Science Class 8 Worksheet 3 1) How many times will the following statement execute? ( ) int a=5; while(a>6)

More information

Geometry Level 1 Midterm Review Packet. I. Geometric Reasoning (Units 1 & 2) Circle the best answer.

Geometry Level 1 Midterm Review Packet. I. Geometric Reasoning (Units 1 & 2) Circle the best answer. 2015 Midterm Outline (120pts) I. 28 Multiple Choice (28pts) II. 12 True & False (12pts) III. 13 Matching (13pts) IV. 14 Short Answer (49pts) V. 3 Proofs (18pts) VI. 10 Common Assessment (10pts) Geometry

More information

Computer Science and Software Engineering University of Wisconsin - Platteville 9-Software Testing, Verification and Validation

Computer Science and Software Engineering University of Wisconsin - Platteville 9-Software Testing, Verification and Validation Computer Science and Software Engineering University of Wisconsin - Platteville 9-Software Testing, Verification and Validation Yan Shi SE 2730 Lecture Notes Verification and Validation Verification: Are

More information

4-1 Classifying Triangles. ARCHITECTURE Classify each triangle as acute, equiangular, obtuse, or right. 1. Refer to the figure on page 240.

4-1 Classifying Triangles. ARCHITECTURE Classify each triangle as acute, equiangular, obtuse, or right. 1. Refer to the figure on page 240. ARCHITECTURE Classify each triangle as acute, equiangular, obtuse, or. 1. Refer to the figure on page 240. Classify each triangle as acute, equiangular, obtuse, or. Explain your reasoning. 4. equiangular;

More information

Medium Term Plan Year 6: Autumn Term

Medium Term Plan Year 6: Autumn Term Medium Term Plan Year 6: Autumn Term Block A1.a: Multiply integers and decimals by 10, 100 or 1000 AUTUMN TERM Block A1.b: Divide integers by 10, 100 or 1000, and divide decimals by 10 or 100 Block A1.c:

More information

Study Guide and Review

Study Guide and Review Choose the term that best matches the statement or phrase. a square of a whole number A perfect square is a square of a whole number. a triangle with no congruent sides A scalene triangle has no congruent

More information

!"#$%&' (%) Partial marks will be given for solutions that are partially correct. Each question is worth 3 marks. "*2%'# """""" * * * *

!#$%&' (%) Partial marks will be given for solutions that are partially correct. Each question is worth 3 marks. *2%'#  * * * * Attention: Do all your work on a separate piece of paper. Remember to write your name, date and Form A at the top. Total Marks = Pass = 10 Partial marks will be given for solutions that are partially correct.

More information

PROGRAMMING IN C AND C++:

PROGRAMMING IN C AND C++: PROGRAMMING IN C AND C++: Week 1 1. Introductions 2. Using Dos commands, make a directory: C:\users\YearOfJoining\Sectionx\USERNAME\CS101 3. Getting started with Visual C++. 4. Write a program to print

More information

SOFTWARE TESTING LAB MANUAL EXPERIMENT 1: Prefix Three-digit number, not beginning with 0 or 1. "Check status", "Deposit", "Withdrawal"

SOFTWARE TESTING LAB MANUAL EXPERIMENT 1: Prefix Three-digit number, not beginning with 0 or 1. Check status, Deposit, Withdrawal 1 EXPERIMENT 1: AIM: Consider an automated banking application. The user can dial the bank from a personal computer, provide a six-digit password, and follow with a series of keyword commands that activate

More information

F.E. Sem. II. Structured Programming Approach

F.E. Sem. II. Structured Programming Approach F.E. Sem. II Structured Programming Approach Time : 3 Hrs.] Mumbai University Examination Paper Solution - May 14 [Marks : 80 Q.1(a) What do you mean by algorithm? Which points you should consider [4]

More information

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers Contents STRAND B: Number Theory Unit 7 Number System and Bases Student Text Contents Section 7. Number System 7.2 Binary Numbers 7.3 Adding and Subtracting Binary Numbers 7.4 Multiplying Binary Numbers

More information

ME 172. C Programming Language Sessional Lecture 8

ME 172. C Programming Language Sessional Lecture 8 ME 172 C Programming Language Sessional Lecture 8 Functions Functions are passages of code that have been given a name. C functions can be classified into two categories Library functions User-defined

More information

COMP 208 Computers in Engineering

COMP 208 Computers in Engineering COMP 208 Computers in Engineering Lecture 14 Jun Wang School of Computer Science McGill University Fall 2007 COMP 208 - Lecture 14 1 Review: basics of C C is case sensitive 2 types of comments: /* */,

More information

Properties of Isosceles Triangles

Properties of Isosceles Triangles Grade level: 9-12 Properties of Isosceles Triangles by Marco A. Gonzalez Activity overview In this activity and by using the Nspire handhelds, students will discover the different properties and attributes

More information

Decision making with if Statement : - Control Statements. Introduction: -

Decision making with if Statement : - Control Statements. Introduction: - Control Statements Introduction: - Any C program if you consider, the set of statements are normally executed sequentially in the order in which they are written, and such programs have sequential structure

More information

Chapter - 2 Complexity of Algorithms for Iterative Solution of Non-Linear Equations

Chapter - 2 Complexity of Algorithms for Iterative Solution of Non-Linear Equations Chapter - Compleity of Algorithms for Iterative Solution of Non-Linear Equations Compleity of Algorithms for Iterative... 19 CHAPTER - Compleity of Algorithms for Iterative Solution of Non-Linear Equations.1

More information

CS 199 Computer Programming. Spring 2018 Lecture 2 Problem Solving

CS 199 Computer Programming. Spring 2018 Lecture 2 Problem Solving CS 199 Computer Programming Spring 2018 Lecture 2 Problem Solving ALGORITHMS AND FLOWCHARTS A typical programming task can be divided into two phases: Problem solving phase produce an ordered sequence

More information

Medium Term Plan Year 4

Medium Term Plan Year 4 Wk Unit Strands Objectives 1 Block B2.c: Classify and sketch 2D shapes according to the concept of symmetry Rehearse the concept of line symmetry Classify polygons according to their lines of symmetry

More information

Operators and Expressions:

Operators and Expressions: Operators and Expressions: Operators and expression using numeric and relational operators, mixed operands, type conversion, logical operators, bit operations, assignment operator, operator precedence

More information

Chapter 2 QUIZ. Section 2.1 The Parallel Postulate and Special Angles

Chapter 2 QUIZ. Section 2.1 The Parallel Postulate and Special Angles Chapter 2 QUIZ Section 2.1 The Parallel Postulate and Special Angles (1.) How many lines can be drawn through point P that are parallel to line? (2.) Lines and m are cut by transversal t. Which angle corresponds

More information

UIC. C Programming Primer. Bharathidasan University

UIC. C Programming Primer. Bharathidasan University C Programming Primer UIC C Programming Primer Bharathidasan University Contents Getting Started 02 Basic Concepts. 02 Variables, Data types and Constants...03 Control Statements and Loops 05 Expressions

More information

Outline. First Quiz Results. Exercise Five Goals. Question Three. Questions One and Two. Exercise five if statements February 28, 2006

Outline. First Quiz Results. Exercise Five Goals. Question Three. Questions One and Two. Exercise five if statements February 28, 2006 Eercise five if statements February 8, 6 Laboratory V Program Control Using if Statements Larry Caretto Computer Science 6 Computing in Engineering and Science February 8, 6 Outline Review first quiz Summarize

More information

COMMUNITY UNIT SCHOOL DISTRICT 200

COMMUNITY UNIT SCHOOL DISTRICT 200 COMMUNITY UNIT SCHOOL DISTRICT 200 Regular Math Middle School Grade 8 1. Subject Expectation (State Goal 6) Essential Learning 1 (Learning Standard A) (Learning Standard D) Students will be able to demonstrate

More information

Geometry HR Date: 2/13/2013 ID Check 2nd Objective: SWBAT identify and use perpendicular and angle bisectors in triangles.

Geometry HR Date: 2/13/2013 ID Check 2nd Objective: SWBAT identify and use perpendicular and angle bisectors in triangles. Geometry HR Date: 2/13/2013 ID Check 2nd Objective: SWBAT identify and use perpendicular and angle bisectors in triangles. Bell Ringer: 5 minute check 4.6/4.7 10 minutes HW Requests: Quadratics WS 2 nd

More information

Software Testing: A Craftsman s Approach, 4 th Edition. Chapter 5 Boundary Value Testing

Software Testing: A Craftsman s Approach, 4 th Edition. Chapter 5 Boundary Value Testing Chapter 5 Boundary Value Testing Functional Testing The rationale for referring to specification-based testing as functional testing is likely due to the abstraction that any program can be viewed as a

More information

SENG 421: Software Metrics

SENG 421: Software Metrics SENG 421: Software Metrics Measuring Internal Product Attributes: Structural Complexity (Chapter 6) Department of Electrical & Computer Engineering, University of Calgary B.H. Far (far@ucalgary.ca) http://www.enel.ucalgary.ca/people/far/lectures/seng421/06/

More information

no triangle can have more than one right angle or obtuse angle.

no triangle can have more than one right angle or obtuse angle. Congruence Theorems in Action Isosceles Triangle Theorems.3 Learning Goals In this lesson, you will: Prove the Isosceles Triangle Base Theorem. Prove the Isosceles Triangle Vertex Angle Theorem. Prove

More information