Laboratory Manual. B.Sc. Laboratory Course II II Semester. Department of Computer Science. Aligarh Muslim University Aligarh (CCB-2P1)

Size: px
Start display at page:

Download "Laboratory Manual. B.Sc. Laboratory Course II II Semester. Department of Computer Science. Aligarh Muslim University Aligarh (CCB-2P1)"

Transcription

1 Laboratory Manual Laboratory Course II (CCB-2P1) B.Sc. (Computer Applications) II Semester Department of Computer Science Aligarh Muslim University Aligarh

2 CREDITS Lab Manual Design Committee: Prof. Mohammad Ubaidullah Bokhari Dr. Arman Rasool Faridi Dr. Faisal Anwar Dr. Aasim Zafar (Convener) The Committee thankfully acknowledges the efforts and contributions of the following teachers: Dr. Mohammad Sajid Editor: Dr. Aasim Zafar Design & Compilation: Mr. Sunil Kumar Sharma First Edition: July 2017 Approved by BoS, Dated 31/07/2017 Department of Computer Science, A.M.U., Aligarh, (U.P.), India

3 COURSE TITLE: Laboratory Course-II COURSE CODE: CCB 2P1 CREDIT: 02 PERIODS PER WEEK: 03 CONTINUOUS ASSESSMENT: 40 EXAMS: 60 COURSE DESCRIPTION This manual is intended for the Second year students in the subject of Programming with Python. This manual typically contains practical/lab Sessions related to Programming with Python covering various aspects in order to enhance subject understanding. Python is a general purpose, high-level programming language; other high-level languages you might have heard of C++, PHP, and Java. Virtually all modern programming languages make us of an Integrated Development Environment (IDE), which allows the creation, editing, testing, and saving of programs and modules. In Python, the IDE is called IDLE (like many items in the language, this is a reference to the British comedy group Monty Python, and in this case, one of its members, Eric Idle). Many modern languages use both processes. They are first compiled into a lower level language, called byte code, and then interpreted by a program called a virtual machine. Python uses both processes, but because of the way programmers interact with it, it is usually considered an interpreted language. There are two ways to use the Python interpreter: shell mode and script mode. In shell mode, you type Python statements into the Python shell and the interpreter immediately prints the result. In script mode, you type statements into the editor and save it in a file known as script. The interpreter executes the code of the script. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 2

4 Students are advised to thoroughly go through this manual rather than only topic mentioned in the syllabus as practical aspects are the key to understanding and conceptual visualization of theoretical aspects covered in the books. Also, this course is designed to review the concepts of Data Structure using C, studied in previous semester and implement the various algorithms related to different data structures. Good Luck for your Enjoyable Laboratory Sessions. CONTENT This course is designed to provide the students the opportunity of learning both concepts of C, implementing algorithms of data structures and programming with Python. This course is indented to develop a deep understanding of various operations on data structure such as searching, sorting, insertion, deletion and traversing and provides students the idea of new programming language. Apart from basic concepts, it helps to understand the concept of lists, tuples, dictionaries and file handling. OBJECTIVES This course is designed to help students in: Learning the concepts of different data structures using C. Learning different sorting (Bubble Sort, Insertion Sort, Merge Sort, Heap Sort, Quick Sort) and searching (Linear and Binary) techniques using C. Learning Linked List, Queue, Stack and their operations using C. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 3

5 Learning non-linear data structures such as Binary Tree, Binary Search Tree etc. and their operations using C. Learning Graphs and their operations using C. Learning Python programming OUTCOMES After completing this course, the students would be able to: Understand and implement the different data structure using C. Understand and implement different sorting (Bubble Sort, Insertion Sort, Merge Sort, Heap Sort, Quick Sort) and searching (Linear and Binary) techniques using C. Understand and implement Linked List, Queue, Stack and their operations using C. Understand and implement non-linear data structures such as Binary Tree, Binary Search Tree etc. and their operations using C. Understand and implement Graphs and their operations using C. Write, debug and execute Python programs to solve various problems. RULES AND REGULATIONS Students are required to strictly adhere to the following rules. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 4

6 The students must complete the weekly activities/assignments well in time (i.e., within the same week). The students must maintain the Lab File of their completed activities/assignments in the prescribed format (Appendix-1). The students must get the completed weekly activities/assignments checked and signed by the concerned teachers in the Lab in the immediate succeeding week. Failing which the activities/assignments for that week will be treated as incomplete. At least TEN (10) such timely completed and duly signed weekly activities/assignments are compulsory, failing which students will not be allowed to appear in the final Lab Examination. The students need to submit the following three deliverables for each exercise duly signed by the Teacher: Algorithm Flow Chart Coding Input /Output Each question will be evaluated on a scale of 10 points, 4 for Algorithm, 3 for Flow Chart and 3 for Coding part. The students need to ensure that each question is assessed and signed by the Teacher in the week/time. Late submission would not be accepted after the due date. Cooperate, collaborate and explore for the best individual learning outcomes but copying is strictly prohibited. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 5

7 WEEK NO. PAGE NO. APPENDIX-1 Template for the Index of Lab File PROBLEMS WITH DESCRIPTION SIGNATURE OF THE TEACHER WITH DATE 1# 1 2# 3# 1# 2 2# 3# 1# 3 2# 3# 1# 4 2# 3# Note: The students should use Header and Footer mentioning their roll no. & name in footer and page no in header.

8 OUTCOMES OBJECTIVES WEEK #1 To understand concept of control construct, arrays, recursion, string functions and pointers in C. To learn the following in Shell and Script mode:- The basic printing command is print. Different operators (+, -, *, /, %). Integer and floating number arithmetic. PEDMAS Law. After completing this, the students would be able: to understand the concepts of control construct arrays, recursion, string functions and pointers in C. to write and run a simple Python statement/ programs in Shell and Script mode. Note: When naming a Python program, a.py extension must be used. Failing to do so will result in code that will not be recognized by the system as a Python program. PROBLEMS 1# Scenario: A courier company has number of items to be delivered to its intended customers through its salesman. The salesman visits following cities to deliver the respective items: S. NO. CITIES NO. OF ITEMS 1. Aligarh Agra 25

9 3. Baroda Banaras Chennai 8 6. New Delhi New Jalpaiguri Howrah Kolkata Mumbai 33 Solve the following problems based on the above mentioned scenario using C: a) Write a program to store and display the above mentioned cities and corresponding items using arrays. b) Write a program to display name of cities where salesman has delivered maximum and minimum number of items. c) Write a program to search the number of items to be delivered of a user supplied city. 2# Use interactive Shell to print the Hello Example: print Hello, World 3# Start the Python interpreter and use it as a calculator i.e. Use interactive shell to perform the following operations 2 + 3, 5*3, 7-2, 6/2, 6/4, 6%4, 6%2, 2*4-3, 4-2*6-4 4# Write a program in Python programming and save it firstprogram.py to perform the following operations: 2 + 3, 5*3, 7-2, 6/2, 6/4, 6%4, 6%2 5# Write a program in Python programming and save it second Program.py to display the following messages Hello World, Python is High level, General-purpose Programming language Guido Van Rossum invented the Python programming language in 1990s. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 8

10 OUTCOMES OBJECTIVES WEEK #2 To understand concept of control construct, arrays, recursion, string functions and pointers using C (continues...). To learn different data types (int, float and string) in Python. To learn the rules to define variables in Python. To learn the use of Assignment (=) and comparison (==) operators in Python. To learn the special use of + for string concatenation in Python. To learn the basic input receiving command is raw_input in Python. After completing this, the students would be able: to understand the concepts of control construct arrays, recursion, string functions and pointers using C (continues...). to learn how to input character, variables/keywords, evaluate expressions. Note: To Learn three basic types of simple variables in Python: integers (whole numbers, commonly used as an index), floats (that is, numbers with a decimal point, AKA real numbers), and strings (collections of alphanumeric characters such as names, sentences, or numbers that are not manipulated mathematically such as a part number or zip code). The first assignment to a variable creates it. The variable types don t need to be declared. Python figures out the variable types on its own. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 9

11 PROBLEMS 1# Based on the previous scenario, do the followings using C: a) Write a program to find total number of items delivered using recursive function additem(). b) Write a program to display name of the cities along with their length, and identity cities composed of two words. c) The number of items of Agra and Kolkata are accidently interchanged. Correct them by writing a swap function using pointers. 2# Write a program to find SUM and MULTIPLY of any three numbers. 3# Write a program to find the average of any five numbers. 4# Write a program to find simple interest. 5# Write a program to convert Celsius into Fahrenheit temperature. 6# Write a program to find perimeter of Rectangle. 7# Write a program to find circumference of Circle. 8# The volume of a sphere with radius r is 43 πr 3. Write a Python program which accepts the radius of a sphere and computes the volume. What is the volume of a sphere with radius 5? 9# Suppose the cover price of a book is Rs , but bookstores get a 40% discount. Shipping costs Rs 30 for the first copy and 75 cents for each additional copy. What is the total wholesale cost for 60 copies? 10# Write a Python program which accepts the radius of a circle from the user and compute the area. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 10

12 OUTCOMES OBJECTIVES WEEK #3 To understand concept of class, inheritance, operator overloading and file handling using C. To learn the concept of function in Python. To learn Built-in functions: Type conversion and Math functions in Python. To learn the user-defined functions: Definitions and use in Python. To learn the Function: Flow of execution, parameters and arguments and fruitful and void functions in Python. After completing this, the students would be able: to understand the concepts of class, inheritance, operator overloading and file handling using C. to write, debug and run a simple Python functions. to learn how to define user-defined functions and pass arguments to functions in Python. PROBLEMS 1# Scenario: A university has different entities such as Department, Programs and Student whose data members and member functions are given below: Teacher- { Data Members: Name, department, hours, programstaught; Member Function: setdetails(), getdetails()} Program- {Data Members: Name, department, duration; Member Functions: setdetails(), getdetails()} Student- {Data Members: Name, RollNo, Program, Department} Member Function: setdetails(), getdetails()} LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 11

13 Solve the following problems based on the above mentioned scenario using C: a) Write a program to create Teacher, Program and Student Classes with above mentioned data members and member functions. b) Add following functionalities in the above program; the default department of Teacher, Program and Student should be Computer Science ; however a different department could be assigned at run time. c) Write a program to overload + operator to add the hours of two teachers. d) Write a program to create two subclasses Residential Student and Non- Residential Student inherited from Student class. Residential Student would have a data member Hall of Residence and Non-Residential Student would have Address as its data member. 2# Write a Python program which accepts the inputs from the user and do the following using functions. a) To find largest of 3 numbers.(function) b) To generate first 4th Fibonacci term.(function) c) To compute factorial of an integer n recursively.(function) d) To find volume of cylinder or cube or rectangular box. e) To find area of rectangle. f) To find circumference of circle.(using constructor) g) To exchange the values of two variables h) To find the distance between two points. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 12

14 OUTCOMES OBJECTIVES WEEK #4 To understand concept of class, inheritance, operator overloading and file handling using C (continues ). To learn Boolean Expression in Python. To learn the logical operators, relational operators. To learn the Conditional (if), Alternative (if-else). To learn the Chained conditional (if-elif-else), Nested Conditional. After completing this, the students would be able: to understand the concepts of class, inheritance, operator overloading and file handling using C(continues ). to write, debug and run a simple Python programs based on conditions. PROBLEMS 1# Based on the previous scenario, do the followings: a) Write a friend function to determine number of hours taught by a particular teacher. b) Write a program to store details of Teacher, Program and Student, each in a separate file. c) Write a program to read details of Student from file whose Roll No is given by the user? 2# Write a program to find the greatest of three numbers.(use only if Statement) 3# Write a program to find smallest of three number.(use if and else statement) 4# Write a program to check the given no that is even or odd.(use if and else) 5# Write a program to check a year for leap year.( use if and else) LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 13

15 6# Write a program to print number of days in a month.(chained Conditional) 7# Write a program to find the area of triangle and show its type.( use if and else) 8# Write a program which takes a character as input from the keyboard and convert it into capital letter if it is a small letter and Vice-Versa.(if else) 9# Write a Python program to find those numbers which are divisible by 7 and multiple of 5, between 1500 and 2700 (both included). 10# Write a program that ask the user for a number. Depending on whether the number is even or odd, print out an appropriate message to the user. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 14

16 OUTCOMES OBJECTIVES WEEK #5 To understand concept of function template and class template using C. To learn definite iteration (For loop) and conditional iteration (While loop) in Python. To learn the Conditional (if), Alternative (if-else), break and pass statements in Python. To learn the recursion, flow of execution, infinite recursion in Python. After completing this, the students would be able to: to understand the concepts of function template and class template using C. to write, debug and run a simple Python functions based on iteration and recursion. PROBLEMS 1# Write a function in C to swap two numbers using function template. The numbers could be Integer or float that depends on the user inputs. 2# Create a class Matrix that has matric data members and getvalue(), setvalue() as member functions. Write a program in C to perform Matrix operations (2-D array implementation), Add and Multiplication using class template. 3# Write a program in Python to check a number for Armstrong. (while) 4# Write a program in Python to print factorial of a number.(for) 5# Write a program in Python to generate first n Fibonacci terms recursively.(function) 6# Write a program in Python to compute factorial of an integer n recursively.(function) LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 15

17 7# Write a program in Python that asks the user how many Fibonnaci numbers to generate and then generates them. Take this opportunity to think about how you can use functions. (Without recursion) 8# Write a program in Python to print the following Pattern.(for) * * * * * * * * * * 9# Write a program to print the following Pattern.(for) A A B C A B C D E... N-lines 10# Write a program to print the following Pattern.(for) # Write a Python program to construct the following pattern, using a nested for loop. * * * * * * * * * * * * * * * * * * * * * * * * * LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 16

18 OUTCOMES OBJECTIVES WEEK #6 To learn linear and binary search techniques using C. To learn the concept of string in Python. To learn the different String functions and methods. After completing this, the students would be able to: to understand and implement linear and binary search methods in a given list. To access individual characters in a string. To retrieve a substring from a string. Top search for a substring in a string. To use string methods to manipulate strings. PROBLEMS 1# Write a C program to search an element in a given 2D array of integers. 2# Write a C program to implement Binary search on 1D array of Employee structure (contains employee_name, emp_no, emp_salary), with key as emp_no. And count the number of comparison happened. 3# Assume that the variable data refers to the string Python rules!. Use a string methods to perform the following tasks: a. Obtain a list of the words in the string. b. Convert the string to uppercase. c. Locate the position of the string rules. d. Search a given character e. Replace the exclamation point with a question mark. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 17

19 4# Write a Python program to determine the length of the given string. 5# Write a Python program to count the number of characters (character frequency) in a string. 6# Write a Python program to reverse the order of the characters in the given string. 7# Write a Python program to get a string made of the first 2 and the last 2 chars from a given a string. If the string length is less than 2, return instead of the empty string. 8# Write a Python program which accepts the user's first and last name and print them in reverse order with a space between them. 9# Write a Python program to calculate the length of a string. 10# Write a program (using functions!) that asks the user for a long string containing multiple words. Print back to the user the same string, except with the words in backwards order. For example, say I type the string: My name is Michele Then the output will be: Michele is name My. 11# Ask the user for a string and print out whether this string is a palindrome or not. (A palindrome is a string that reads the same forwards and backwards.) LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 18

20 OUTCOMES OBJECTIVES WEEK #7 To learn Bubble and Selection sorting techniques using C. To learn about list and its associated operations in Python. To learn the various list operations (Map, filter and reduce)in Python.. After completing this, the students would be able to: to understand and implement Bubble and Selection sort using C. to construct lists and access items in those lists. to use methods to manipulate lists. to perform traversals of lists to process items in the lists to define simple functions that expect parameters and return values. PROBLEMS 1# Write a C Program to sort a given list of Integers using Bubble sort technique. 2# Write a C Program to sort a given list of Integers using Selection sort technique. 3# Write a Python program to create an array of 5 integers and display the List items. Access individual element through indexes. 4# Write a Python program to reverse the order of the items in the array. 5# Write a Python function to sum all the numbers in a list. 6# Write a Python function to multiply all the numbers in a list. 7# Take a list, say for example this one LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 19

21 a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 85 ] a) Write a program that prints out all the elements of the list that are less than 5. b) Instead of printing the elements one by one, make a new list that has all the elements less than 5 from this list in it and print out this new list. c) Ask the user for a number and return a list that contains only elements from the original list a that are smaller than that number given by the user. 8# Let s say I give you a list saved in a variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of Python that takes this list a and makes a new list that has only the even elements of this list in it. 9# Write a program to find the sum of n numbers. (List) 10# Write a program to find the average of n numbers.(list) 11# Write a program to find maximum/minimum value of n numbers.(list) 12# Write a program to search a given element in the list. 13# Write a program to sort the given list of elements. 14# Write a program to perform binary search. 15# Write a function called most_frequent that takes a string and prints the letters in decreasing order of frequency. Find text samples from several different languages and see how letter frequency varies between languages. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 20

22 OUTCOMES OBJECTIVES WEEK #8 To learn Insertion and Quick sorting techniques using C. To learn about dictionary, how to create a dictionary. To learn the various dictionary operations and methods. To learn the reverse search method.. After completing this, the students would be able: to understand and implement Insertion and Quick sort. to construct dictionaries and access entries in those dictionaries to use methods to manipulate dictionaries to decide whether a list or a dictionary is an appropriate data structure for a given application. PROBLEMS 1# Write a C Program to sort a given list of Integers using Insertion sort technique. 2# Write a C Program to sort a given list of Integers using Quick sort technique. 3# Assume that the variable data refers to the dictionary { b :20, a :35}. Write the values of the following expressions: data[ a ] data.get( c, None) len(data) data.keys() data.values() data.pop( b ) LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 21

23 4# Assume that the variable data refers to the dictionary { b :20, a :35}. Write the expressions that perform the following tasks: a) Replace the value at the key b in data with that value s negation. b) Add the key/value pair c :40 to data. c) Remove the value at key b in data, safely. d) Print the keys in data in alphabetical order. 5# Write a python program to read a string and count how many times each letter appears. (Histogram) 6# Write a python program to create a dictionary, read a value from the user and search the key element (Reverse lookup). 7# Write a python program to create two dictionaries and merge them. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 22

24 OUTCOMES OBJECTIVES WEEK #9 To learn how to create a linked list and perform different operations on it using pointer concepts. To learn the concept of file and its associated operations in Python. To learn File handling methods. To learn Format operator. To learn Handling exceptions. After completing this, the students would be able: to understand and implement linked list and perform its different operations using pointer concepts. to write, debug and run program that handles file. PROBLEMS 1# Write a C program to create a Linked List and perform the following operations: a. Function called InsertAtMiddle to add node in the middle of list. b. Function called InsertBefore to add node before Nth node. c. Function called InsertEnd to add node at the tail of linked list. d. Function called DeleteAfter to delete node after Nth node. e. Function called DeleteNode to delete a node having specific value. 2# Write a C program to append a Linked List L2 into a given Linked List L1. L1 contains N1 nodes with header H1 and L2 contains N2 nodes with header H2. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 23

25 3# Write a code segment that opens a file named myfile.txt for input and prints the number of lines in the file. 4# Write a code segment that opens a file for input and prints the number of four-letter words in the file. 5# Write a python program which reads itself and prints the number of lines in the file. 6# Write a python program which reads an integer/floating point number and stores it in a file (Format operator). 7# Receive the filename from the user, open the file (say firstfile) and perform the following: a) Count the sentences in the text. b) Count the words in the text. c) Count the syllables in the text. d) Create a new file (secondfile) and copy the text from first file. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 24

26 OUTCOME OBJECTIVE WEEK #10 To learn how to create a linked list and perform different operations on it using pointer concepts (continues ).. After completing this, the students would be able to understand and implement linked list and perform its different operations using pointer concepts (continues...). PROBLEMS 1# Write a C program that reverses a given list L with header H while traversing it only once. Each node should point to the node that was previously its predecessor; the head should point to the node that was previously at the end and the node that was previously at beginning should be last node. 2# Write a C program to implement circular doubly linked list and perform the following operations: a. Adding node to the linked list b. Traversing the whole list c. Deleting nodes from the list LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 25

27 OUTCOMES OBJECTIVE WEEK #11 To learn how to create Stack and perform its different operations.. After completing this, the students would be able to understand and implement Stack and perform its different operations.. PROBLEMS 1# Write a C program to create a Stack and perform the following operations: a. push an Element to the stack b. pop an element from stack 2# Write a C program to implement a 4-stacks of size m in an array of size n with all the basic operations such as IsEmpty(i), Push(i), Pop(i), IsFull(i) where i denotes the stack number (1,2,3,4), m n/4. Stacks are not overlapping each other. Leftmost stack facing the left direction and other three stacks are facing in the right direction. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 26

28 OUTCOME OBJECTIVE WEEK #12 To learn some of the applications of Stack. After completing this, the students would be able to understand the practical usage of Stack with the help of implementing its some applications. PROBLEMS 1# Write a C program to check whether an expression has balanced parentheses using array implementation of a stack. 2# Write a C program to evaluate a postfix expression using array implementation of a stack. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 27

29 OUTCOMES OBJECTIVE WEEK #13 To learn how to create Queue and perform its different operations. After completing this, the students would be able to understand and implement Queue and perform its different operations. PROBLEMS 1# Write a C program to create a Queue and perform the following operations: a. Insert an Element from Queue b. Delete an element from Queue 2# Write a C program to move all the items from a queue onto stack. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 28

30 OUTCOME OBJECTIVE WEEK #14 15 To learn the concept of Binary tree, Binary Search Tree and their different functions. After completing this, the students would be able to understand and implement Binary tree, Binary Search Tree and their different functions. PROBLEMS 1# Write a C program to implement Binary tree insertion. 2# Write a C program to implement Post-order, pre-order and In-order traversal of the Binary tree. 3# Write a C program for Binary Search Tree to implement following operations: a. Insertion b. Finding an element c. Finding Min element d. Finding Max element. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 29

31 OUTCOME OBJECTIVE WEEK #16 To learn the concepts of Graph and their different functions. After completing this, the students would be able to understand and implement Graph and their different functions. PROBLEMS 1# Write a C program to implement graph using array and linked-list. 2# Write a C program to implement Breadth-First and Depth-First Traversal of Graphs. 3# Write a C program to implement Dijkstra s Single Source Shortest Path Algorithm. LAB MANUAL/B.Sc. (CA)/CCB 2P1/- 30

Laboratory Manual. B. Sc. (Hons.) Computer Applications III Semester. Laboratory Course III: CCB 3P1

Laboratory Manual. B. Sc. (Hons.) Computer Applications III Semester. Laboratory Course III: CCB 3P1 Laboratory Manual B. Sc. (Hons.) Computer Applications III Semester Laboratory Course III: CCB 3P1 Department of Computer Science Aligarh Muslim University, Aligarh Credits Lab Manual Design Committee:

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

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU 2013 Information Technology, UTU 203 030000 Fundamentals of Programming Problems to be solved in laboratory Note: Journal should contain followings for all problems given below:. Problem Statement 2. Algorithm

More information

Subject: Computer Science

Subject: Computer Science Subject: Computer Science Topic: Data Types, Variables & Operators 1 Write a program to print HELLO WORLD on screen. 2 Write a program to display output using a single cout statement. 3 Write a program

More information

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks

Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks Marks Subject Code: CC103-N Subject Title: FUNDAMENTALS OF PROGRAMMING Teaching scheme Total L T P Total Theory Credit Evaluation Scheme Mid Sem Exam CIA Pract. Total Hrs Hrs Hrs Hrs Hrs Marks Marks Marks Marks

More information

Lab Manual. Program Design and File Structures (P): IT-219

Lab Manual. Program Design and File Structures (P): IT-219 Lab Manual Program Design and File Structures (P): IT-219 Lab Instructions Several practicals / programs? Whether an experiment contains one or several practicals /programs One practical / program Lab

More information

Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department

Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department 0901212 Python Programming 1 st Semester 2014/2015 Course Catalog This course introduces

More information

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR

VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR VALLIAMMAI ENGINEERING COLLEGE SRM NAGAR, KATTANGULATHUR 603 203 FIRST SEMESTER B.E / B.Tech., (Common to all Branches) QUESTION BANK - GE 6151 COMPUTER PROGRAMMING UNIT I - INTRODUCTION Generation and

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 20 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E I SEMESTER GE85- Problem Solving and Python Programming Regulation 207 Academic

More information

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer) COSC 2007 Data Structures II Final Exam Thursday, April 13 th, 2006 This is a closed book and closed notes exam. There are total 3 parts. Please answer the questions in the provided space and use back

More information

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS Contents Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS 1.1. INTRODUCTION TO COMPUTERS... 1 1.2. HISTORY OF C & C++... 3 1.3. DESIGN, DEVELOPMENT AND EXECUTION OF A PROGRAM... 3 1.4 TESTING OF PROGRAMS...

More information

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002

Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 Sardar Patel University S Y BSc. Computer Science CS-201 Introduction to Programming Language Effective from July-2002 2 Practicals per week External marks :80 Internal Marks : 40 Total Marks :120 University

More information

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis p. 5 Statement Constructs p. 5 Pseudocode Example p.

More information

3D Graphics Programming Mira Costa High School - Class Syllabus,

3D Graphics Programming Mira Costa High School - Class Syllabus, 3D Graphics Programming Mira Costa High School - Class Syllabus, 2009-2010 INSTRUCTOR: Mr. M. Williams COURSE GOALS and OBJECTIVES: 1 Learn the fundamentals of the Java language including data types and

More information

COMPUTER PROGRAMMING LAB

COMPUTER PROGRAMMING LAB COURSE OUTCOMES SEMESTER I Student will be able to: COMPUTER PROGRAMMING LAB 1. Explain basic commands in Linux. 2. Develop programs in C language. 3. Design programs for various problems in C language.

More information

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104

Syllabus of Diploma Engineering. Computer Engineering. Semester: II. Subject Name: Computer Programming. Subject Code: 09CE1104 Semester: II Subject Name: Computer Programming Subject Code: 09CE1104 Objective: This Course will help to develop programming skills in the students, using a structured programming language `C'. Students

More information

Computer Programming C++ (wg) CCOs

Computer Programming C++ (wg) CCOs Computer Programming C++ (wg) CCOs I. The student will analyze the different systems, and languages of the computer. (SM 1.4, 3.1, 3.4, 3.6) II. The student will write, compile, link and run a simple C++

More information

Time: 3 HOURS Maximum Marks: 100

Time: 3 HOURS Maximum Marks: 100 ANNA UNIVERSITY:CHENNAI 600 025 M.E/M.Tech. DEGREE EXAMINATIONS, NOV./DEC. 2014 Regulations 2013 Third Semester B.E. Computer Science and Engineering CS6311: PROGRAMMING AND DATA STRUCTURES LABORATORY

More information

Kadi Sarva Vishwavidyalaya, Gandhinagar

Kadi Sarva Vishwavidyalaya, Gandhinagar Kadi Sarva Vishwavidyalaya, Gandhinagar MASTERS OF COMPUTER APPLICATION (MCA) Semester I (First Year) Subject: MCA-101 Programming for Logic Building (LDPL) SUB Teaching scheme Examination scheme Total

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

TIME: 3 HOURS MARKS: a. Develop a java program to sort an array of N numbers in ascending order. (40)

TIME: 3 HOURS MARKS: a. Develop a java program to sort an array of N numbers in ascending order. (40) ANNA UNIVERSITY: CHENNAI-600 025 B.E/B.TECH DEGREE EXAMINATIONS, OCT/NOV. 2013 Regulations -2008 Fifth Semester B.TECH INFORMATION TECHNOLOGY IT2305 JAVA PROGRAMMING LAB TIME: 3 HOURS MARKS: 100 1. a.

More information

Part III Appendices 165

Part III Appendices 165 Part III Appendices 165 Appendix A Technical Instructions Learning Outcomes This material will help you learn how to use the software you need to do your work in this course. You won t be tested on it.

More information

About this exam review

About this exam review Final Exam Review About this exam review I ve prepared an outline of the material covered in class May not be totally complete! Exam may ask about things that were covered in class but not in this review

More information

CHOICE BASED CREDIT SYSTEM (With effect from )

CHOICE BASED CREDIT SYSTEM (With effect from ) B.Sc. Computer Science Syllabus Under the CHOICE BASED CREDIT SYSTEM (With effect from 2017-18) DEPARTMENT OF COMPUTER SCIENCE University College,TU,Nizamabad-503322 Syllabus for Computer Science (With

More information

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving)

DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW. Evaluation Scheme & Syllabus. For. B.Tech. First Year (Programming for Problem Solving) DR. A.P.J. ABDUL KALAM TECHNICAL UNIVERSITY LUCKNOW Evaluation Scheme & Syllabus For B.Tech. First Year (Programming for Problem Solving) On Choice Based Credit System (Effective from the Session: 2018-19)

More information

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI

INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI INDIAN SCHOOL MUSCAT COMPUTER SCIENCE(083) CLASS XI 2017-2018 Worksheet No. 1 Topic : Getting Started With C++ 1. Write a program to generate the following output: Year Profit% 2011 18 2012 27 2013 32

More information

[CHAPTER] 1 INTRODUCTION 1

[CHAPTER] 1 INTRODUCTION 1 FM_TOC C7817 47493 1/28/11 9:29 AM Page iii Table of Contents [CHAPTER] 1 INTRODUCTION 1 1.1 Two Fundamental Ideas of Computer Science: Algorithms and Information Processing...2 1.1.1 Algorithms...2 1.1.2

More information

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR STUDENT IDENTIFICATION NO MULTIMEDIA COLLEGE JALAN GURNEY KIRI 54100 KUALA LUMPUR FIFTH SEMESTER FINAL EXAMINATION, 2014/2015 SESSION PSD2023 ALGORITHM & DATA STRUCTURE DSEW-E-F-2/13 25 MAY 2015 9.00 AM

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

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May www.jwjobs.net R10 SET - 1 II B. Tech I Semester, Supplementary Examinations, May - 2012 (Com. to CSE, IT, ECC ) Time: 3 hours Max Marks: 75 *******-****** 1. a) Which of the given options provides the

More information

Reg. No. : Question Paper Code : 27157

Reg. No. : Question Paper Code : 27157 WK 3 Reg. No. : Question Paper Code : 27157 B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2015. Time : Three hours Second Semester Computer Science and Engineering CS 6202 PROGRAMMING AND DATA STRUCTURES

More information

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions

Faculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2013 C++ Programming Language Lab # 6 Functions C++ Programming Language Lab # 6 Functions Objective: To be familiar with

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

COURSE OF STUDY UNIT PLANNING GUIDE COMPUTER SCIENCE 1 FOR: 5 CREDITS GRADE LEVEL: 9-12 FULL-YEAR COURSE PREPARED BY: SUSIE EISEN

COURSE OF STUDY UNIT PLANNING GUIDE COMPUTER SCIENCE 1 FOR: 5 CREDITS GRADE LEVEL: 9-12 FULL-YEAR COURSE PREPARED BY: SUSIE EISEN COURSE OF STUDY UNIT PLANNING GUIDE FOR: COMPUTER SCIENCE 1 5 CREDITS GRADE LEVEL: 9-12 FULL-YEAR COURSE PREPARED BY: SUSIE EISEN SHANNON WARNOCK, SUPERVISOR OF MATHEMATICS AND SCIENCE JULY 2017 DUMONT

More information

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems.

Programming. We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. Plan for the rest of the semester: Programming We will be introducing various new elements of Python and using them to solve increasingly interesting and complex problems. We saw earlier that computers

More information

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Table of Contents. Chapter 1: Introduction to Data Structures... 1 Table of Contents Chapter 1: Introduction to Data Structures... 1 1.1 Data Types in C++... 2 Integer Types... 2 Character Types... 3 Floating-point Types... 3 Variables Names... 4 1.2 Arrays... 4 Extraction

More information

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name Course Code Class Branch DATA STRUCTURES ACS002 B. Tech

More information

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \ BSc IT C Programming (2013-2017) Unit I Q1. What do you understand by type conversion? (2013) Q2. Why we need different data types? (2013) Q3 What is the output of the following (2013) main() Printf( %d,

More information

SAURASHTRA UNIVERSITY

SAURASHTRA UNIVERSITY SAURASHTRA UNIVERSITY RAJKOT INDIA Accredited Grade A by NAAC (CGPA 3.05) CURRICULAM FOR B.Sc. (Computer Science) Bachelor of Science (Computer Science) (Semester - 1 Semester - 2) Effective From June

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK III SEMESTER CS8391-Data Structures Regulation 2017 Academic Year 2018 19(odd Semester)

More information

CS301 - Data Structures Glossary By

CS301 - Data Structures Glossary By CS301 - Data Structures Glossary By Abstract Data Type : A set of data values and associated operations that are precisely specified independent of any particular implementation. Also known as ADT Algorithm

More information

The current topic: Python. Announcements. Python. Python

The current topic: Python. Announcements. Python. Python The current topic: Python Announcements! Introduction! reasons for studying languages! language classifications! simple syntax specification Object-oriented programming: Python Types and values Syntax

More information

Introduction to Java Applications

Introduction to Java Applications 2 Introduction to Java Applications OBJECTIVES In this chapter you will learn: To write simple Java applications. To use input and output statements. Java s primitive types. Basic memory concepts. To use

More information

Shapes leading to CAD system project

Shapes leading to CAD system project EXERCISES Shapes leading to CAD system project Strings leading to distribution control project Tables leading to infinite precision arithmetic project Conversions leading to instrument control project

More information

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC) SET - 1 II B. Tech I Semester Supplementary Examinations, May/June - 2016 PART A 1. a) Write a procedure for the Tower of Hanoi problem? b) What you mean by enqueue and dequeue operations in a queue? c)

More information

Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach.

Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach. CMSC 131: Chapter 28 Final Review: What you learned this semester The Big Picture Object Oriented Programming: In this course we began an introduction to programming from an object-oriented approach. Java

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.

Functions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation. Lab 4 Functions Introduction: A function : is a collection of statements that are grouped together to perform an operation. The following is its format: type name ( parameter1, parameter2,...) { statements

More information

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive)

! Determine if a number is odd or even. ! Determine if a number/character is in a range. - 1 to 10 (inclusive) - between a and z (inclusive) Final Exam Exercises Chapters 1-7 + 11 Write C++ code to:! Determine if a number is odd or even CS 2308 Fall 2018 Jill Seaman! Determine if a number/character is in a range - 1 to 10 (inclusive) - between

More information

Write a java program to prints the count of odd and even no s entered.

Write a java program to prints the count of odd and even no s entered. Dated: 27-01-2014 ALIGARH MUSLIM UNIVERSITY Department of Computer Science CS-2P1: Object Oriented Programming Using JAVA Java Lab Assignment Course: MCA (Semester-II nd ) Academic Session: 2013-2014 Note:

More information

KLiC C Programming. (KLiC Certificate in C Programming)

KLiC C Programming. (KLiC Certificate in C Programming) KLiC C Programming (KLiC Certificate in C Programming) Turbo C Skills: The C Character Set, Constants, Variables and Keywords, Types of C Constants, Types of C Variables, C Keywords, Receiving Input, Integer

More information

Summer Final Exam Review Session August 5, 2009

Summer Final Exam Review Session August 5, 2009 15-111 Summer 2 2009 Final Exam Review Session August 5, 2009 Exam Notes The exam is from 10:30 to 1:30 PM in Wean Hall 5419A. The exam will be primarily conceptual. The major emphasis is on understanding

More information

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE TED (10)-3071 Reg. No.. (REVISION-2010) Signature. FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE (Common to CT and IF) [Time: 3 hours (Maximum marks: 100)

More information

University of Waterloo Department of Electrical and Computer Engineering ECE 250 Algorithms and Data Structures

University of Waterloo Department of Electrical and Computer Engineering ECE 250 Algorithms and Data Structures University of Waterloo Department of Electrical and Computer Engineering ECE 250 Algorithms and Data Structures Final Examination (17 pages) Instructor: Douglas Harder April 14, 2004 9:00-12:00 Name (last,

More information

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency.

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency. Description of CPSC 301: This is a 2-unit credit/no credit course. It is a course taught entirely in lab, and has two required 2-hour 50-minute lab sessions per week. It will review, reinforce, and expand

More information

PESIT Bangalore South Campus Department of MCA Course Information for

PESIT Bangalore South Campus Department of MCA Course Information for 1. GENERAL INFORMATION: PESIT Bangalore South Campus Department of MCA Course Information for Data Structures Using C(13MCA21) Academic Year: 2015 Semester: II Title Code Duration (hrs) Lectures 48 Hrs

More information

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++

I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination. June, 2015 BCS-031 : PROGRAMMING IN C ++ No. of Printed Pages : 3 I BCS-031 BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination 05723. June, 2015 BCS-031 : PROGRAMMING IN C ++ Time : 3 hours Maximum Marks : 100 (Weightage 75%)

More information

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17 List of Programs xxv List of Figures xxix List of Tables xxxiii Preface to second version xxxv PART 1 Structured Programming 1 1 Getting started 3 1.1 Programming 3 1.2 Editing source code 5 Source code

More information

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305

DATA STRUCTURE : A MCQ QUESTION SET Code : RBMCQ0305 Q.1 If h is any hashing function and is used to hash n keys in to a table of size m, where n

More information

l Determine if a number is odd or even l Determine if a number/character is in a range - 1 to 10 (inclusive) - between a and z (inclusive)

l Determine if a number is odd or even l Determine if a number/character is in a range - 1 to 10 (inclusive) - between a and z (inclusive) Final Exam Exercises Chapters 1-7 + 11 Write C++ code to: l Determine if a number is odd or even CS 2308 Fall 2016 Jill Seaman l Determine if a number/character is in a range - 1 to 10 (inclusive) - between

More information

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.asp...

https://asd-pa.perfplusk12.com/admin/admin_curric_maps_display.asp... 1 of 8 8/27/2014 2:15 PM Units: Teacher: ProgIIIAPCompSci, CORE Course: ProgIIIAPCompSci Year: 2012-13 Computer Systems This unit provides an introduction to the field of computer science, and covers the

More information

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p.

Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. Introduction to Computers and C++ Programming p. 1 Computer Systems p. 2 Hardware p. 2 Software p. 7 High-Level Languages p. 8 Compilers p. 9 Self-Test Exercises p. 11 History Note p. 12 Programming and

More information

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned.

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned. Course Name: B.Tech. 3 th Sem. Subject: Data Structures No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours Paper Code: ETCS-209 Topic Details No of Hours Planned

More information

Lab Manual B.Sc. (CA) SEMESTER - VI CCB-6P1: LABORATORY COURSE - VI DEPARTMENT OF COMPUTER SCIENCE ALIGARH MUSLIM UNIVERSITY ALIGARH

Lab Manual B.Sc. (CA) SEMESTER - VI CCB-6P1: LABORATORY COURSE - VI DEPARTMENT OF COMPUTER SCIENCE ALIGARH MUSLIM UNIVERSITY ALIGARH 2019 Look forward, learn modern knowledge, and do not waste time in studies of old subjects of no values. Lab Manual B.Sc. (CA) SEMESTER - VI CCB-6P1: LABORATORY COURSE - VI DEPARTMENT OF COMPUTER SCIENCE

More information

Revised time table of BCA (2011 admission) record submission

Revised time table of BCA (2011 admission) record submission Revised time table of BCA (2011 admission) record submission Enrollment Number CA11BCA001 GB11BCA001 - GB11BCA019 Date 01/06/2012 GB11BCA020 - GB11BCA039 02/06/2012 GB11BCA040 - GB11BCA059 04/06/2012 GB11BCA060

More information

General Instructions. You can use QtSpim simulator to work on these assignments.

General Instructions. You can use QtSpim simulator to work on these assignments. General Instructions You can use QtSpim simulator to work on these assignments. Only one member of each group has to submit the assignment. Please Make sure that there is no duplicate submission from your

More information

Laboratory Manual MCA I Semester

Laboratory Manual MCA I Semester Laboratory Manual MCA I Semester Laboratory Course I: CSM 11P1 Department of Computer Science Aligarh Muslim University, Aligarh Credits Lab Manual Design Committee: Prof. Mohammad Ubaidullah Bokhari Dr.

More information

AP Computer Science AB

AP Computer Science AB AP Computer Science AB Dr. Tyler Krebs Voice Mail: 431-8938 Classroom: B128 Office: TV Studio Characteristics We Value in This Classroom: 1. Respect. (Show respect for everyone and everything.) 2. Integrity.

More information

BCA-105 C Language What is C? History of C

BCA-105 C Language What is C? History of C C Language What is C? C is a programming language developed at AT & T s Bell Laboratories of USA in 1972. It was designed and written by a man named Dennis Ritchie. C seems so popular is because it is

More information

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session:

ALIGARH MUSLIM UNIVERSITY Department of Computer Science. JAVA Lab Assignment Course: MCA II nd Semester Academic Session: ALIGARH MUSLIM UNIVERSITY Department of Computer Science Dated: 25-01-2016 JAVA Lab Assignment Course: MCA II nd Semester Academic Session: 2015-2016 CSM-241: Object Oriented Programming Using JAVA Note:

More information

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK

VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur 603203. DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK Degree & Branch : B.E E.C.E. Year & Semester : II / IV Section : ECE 1, 2 &

More information

namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY

namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY namibia UniVERSITY OF SCIEnCE AnD TECHnOLOGY Faculty of Computing and Informatics Department of Computer Science QUALIFICATION: Bachelor of Computer Science, Bachelor of Informatics, Bachelor of Engineering

More information

CS 445: Data Structures Final Examination: Study Guide

CS 445: Data Structures Final Examination: Study Guide CS 445: Data Structures Final Examination: Study Guide Java prerequisites Classes, objects, and references Access modifiers Arguments and parameters Garbage collection Self-test questions: Appendix C Designing

More information

(i) Describe in detail about the classification of computers with their features and limitations(10)

(i) Describe in detail about the classification of computers with their features and limitations(10) UNIT I - INTRODUCTION Generation and Classification of Computers- Basic Organization of a Computer Number System Binary Decimal Conversion Problems. Need for logical analysis and thinking Algorithm Pseudo

More information

University of Palestine. Final Exam 2 nd semester 2014/2015 Total Grade: 50

University of Palestine. Final Exam 2 nd semester 2014/2015 Total Grade: 50 First Question Q1 B1 Choose the best Answer: No. of Branches (1) (10/50) 1) 2) 3) 4) Suppose we start with an empty stack and then perform the following operations: Push (A); Push (B); Pop; Push (C); Top;

More information

STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING ON 2001 TO BE EFFECTIVE FROM THE ACADEMIC YEAR

STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING ON 2001 TO BE EFFECTIVE FROM THE ACADEMIC YEAR STRUCTURE AND SYLLABUS APPROVED IN THE BOARD OF STUDIES MEETING ON 2001 TO BE EFFECTIVE FROM THE ACADEMIC YEAR 2000-2001. MCA II SEMESTER Scheme of Evaluation Max. Marks Min. Marks to pass L P C Int. Ext.

More information

Data Structures in C++ Using the Standard Template Library

Data Structures in C++ Using the Standard Template Library Data Structures in C++ Using the Standard Template Library Timothy Budd Oregon State University ^ ADDISON-WESLEY An imprint of Addison Wesley Longman, Inc. Reading, Massachusetts Harlow, England Menlo

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK B.E. - Electrical and Electronics Engineering IV SEMESTER CS6456 - OBJECT ORIENTED

More information

CS302 Data Structures using C++

CS302 Data Structures using C++ CS302 Data Structures using C++ Study Guide for the Final Exam Fall 2018 Revision 1.1 This document serves to help you prepare towards the final exam for the Fall 2018 semester. 1. What topics are to be

More information

19 Much that I bound, I could not free; Much that I freed returned to me. Lee Wilson Dodd

19 Much that I bound, I could not free; Much that I freed returned to me. Lee Wilson Dodd 19 Much that I bound, I could not free; Much that I freed returned to me. Lee Wilson Dodd Will you walk a little faster? said a whiting to a snail, There s a porpoise close behind us, and he s treading

More information

Mathematics/Science Department Kirkwood Community College. Course Syllabus. Computer Science CSC142 1/10

Mathematics/Science Department Kirkwood Community College. Course Syllabus. Computer Science CSC142 1/10 Mathematics/Science Department Kirkwood Community College Course Syllabus Computer Science CSC142 Bob Driggs Dean Cate Sheller Instructor 1/10 Computer Science (CSC142) Course Description Introduces computer

More information

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010

Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of. MCA III SEM Session -2010 Rani Durgavati Vishwavidyalaya Jabalpur (M.P.) (UICSA) Master of Computer Application (MCA) Practical List of MCA III SEM Session -2010 MCA-301 - Object Oriented Programming in C++ 1. WAP to generate Fibonacci

More information

Topic 7: Algebraic Data Types

Topic 7: Algebraic Data Types Topic 7: Algebraic Data Types 1 Recommended Exercises and Readings From Haskell: The craft of functional programming (3 rd Ed.) Exercises: 5.5, 5.7, 5.8, 5.10, 5.11, 5.12, 5.14 14.4, 14.5, 14.6 14.9, 14.11,

More information

Draw a diagram of an empty circular queue and describe it to the reader.

Draw a diagram of an empty circular queue and describe it to the reader. 1020_1030_testquestions.text Wed Sep 10 10:40:46 2014 1 1983/84 COSC1020/30 Tests >>> The following was given to students. >>> Students can have a good idea of test questions by examining and trying the

More information

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE

CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE CS 6456 OBJCET ORIENTED PROGRAMMING IV SEMESTER/EEE PART A UNIT I 1. Differentiate object oriented programming from procedure oriented programming. 2. Define abstraction and encapsulation. 3. Differentiate

More information

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 0 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK III SEMESTER CS89- DATA STRUCTURES Regulation 07 Academic Year 08 9 Prepared by

More information

ENGR 102 Engineering Lab I - Computation

ENGR 102 Engineering Lab I - Computation ENGR 102 Engineering Lab I - Computation Learning Objectives by Week 1 ENGR 102 Engineering Lab I Computation 2 Credits 2. Introduction to the design and development of computer applications for engineers;

More information

OUTCOMES BASED LEARNING MATRIX

OUTCOMES BASED LEARNING MATRIX OUTCOMES BASED LEARNING MATRIX Course: CTIM 372 Advanced Programming in C++ Department: Computer Technology and Information Management 3 credits/4 contact hours Description: This course is a continuation

More information

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018

CSCE 210/2201 Data Structures and Algorithms. Prof. Amr Goneid. Fall 2018 CSCE 20/220 Data Structures and Algorithms Prof. Amr Goneid Fall 208 CSCE 20/220 DATA STRUCTURES AND ALGORITHMS Dr. Amr Goneid Course Goals To introduce concepts of Data Models, Data Abstraction and ADTs

More information

1) What is the primary purpose of template functions? 2) Suppose bag is a template class, what is the syntax for declaring a bag b of integers?

1) What is the primary purpose of template functions? 2) Suppose bag is a template class, what is the syntax for declaring a bag b of integers? Review for Final (Chapter 6 13, 15) 6. Template functions & classes 1) What is the primary purpose of template functions? A. To allow a single function to be used with varying types of arguments B. To

More information

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C

Babaria Institute of Technology Computer Science and Engineering Department Practical List of Object Oriented Programming with C Practical -1 Babaria Institute of Technology LEARN CONCEPTS OF OOP 1. Explain Object Oriented Paradigm with figure. 2. Explain basic Concepts of OOP with example a. Class b. Object c. Data Encapsulation

More information

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

Programming for Problem Solving 105A L T P Credit Major Minor Total Time ES- Programming for Problem Solving 105A L T P Credit Major Minor Total Time Test Test 3 - - 3 75 25 100 3h Purpose To familiarize the students with the basics of Computer System and C Programming Course

More information

Question Paper Code : 97044

Question Paper Code : 97044 Reg. No. : Question Paper Code : 97044 B.E./B.Tech. DEGREE EXAMINATION NOVEMBER/DECEMBER 2014 Third Semester Computer Science and Engineering CS 6301 PROGRAMMING AND DATA STRUCTURES-II (Regulation 2013)

More information

AP Computer Science A Course Syllabus

AP Computer Science A Course Syllabus AP Computer Science A Course Syllabus Textbook: Litvin, Maria and Litvin, Gary. Java Methods: Object-Oriented Programming and Data Structures. Skylight Publishing, 2011 http://www.skylit.com Course Description:

More information

Largest Online Community of VU Students

Largest Online Community of VU Students WWW.VUPages.com http://forum.vupages.com WWW.VUTUBE.EDU.PK Largest Online Community of VU Students MIDTERM EXAMINATION SEMESTER FALL 2003 CS301-DATA STRUCTURE Total Marks:86 Duration: 60min Instructions

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

Curriculum Map Grade(s): Subject: AP Computer Science

Curriculum Map Grade(s): Subject: AP Computer Science Curriculum Map Grade(s): 11-12 Subject: AP Computer Science (Semester 1 - Weeks 1-18) Unit / Weeks Content Skills Assessments Standards Lesson 1 - Background Chapter 1 of Textbook (Weeks 1-3) - 1.1 History

More information

CS201 - Introduction to Programming Glossary By

CS201 - Introduction to Programming Glossary By CS201 - Introduction to Programming Glossary By #include : The #include directive instructs the preprocessor to read and include a file into a source code file. The file name is typically enclosed with

More information

Python Unit

Python Unit Python Unit 1 1.1 1.3 1.1: OPERATORS, EXPRESSIONS, AND VARIABLES 1.2: STRINGS, FUNCTIONS, CASE SENSITIVITY, ETC. 1.3: OUR FIRST TEXT- BASED GAME Python Section 1 Text Book for Python Module Invent Your

More information

PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm)

PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm) PDS Lab (Assignment 1) Date: 31 st July, 2017 (2-6 pm) (1) Write a C program to print your name. (2) Write a C program to convert the temparature from Fahrenheit to Celsius. Take the temparature in Fahrenheit

More information