COMPUTER SCIENCE & INFORMATION TECHNOLOGY

2y ago
46 Views
6 Downloads
3.05 MB
176 Pages
Last View : 19d ago
Last Download : 3m ago
Upload by : Mya Leung
Transcription

Vocational Higher SecondaryEducation (VHSE)Second YearCOMPUTER SCIENCE &INFORMATION TECHNOLOGYReference BookGovernment of KeralaDepartment of EducationState Council of Educational Research and Training (SCERT),KERALA2016

List of ContributorsParticipants1.2.3.4.1.2.3.4.SHYJITH B. T.Vocational Teacher in CSITTKDM GVHSS Kadappakada, KollamSREERAJ P.Vocational Teacher in CSIT,V.V.H.S.S, Poredom, KollamASHA NAIR S.Vocational Teacher in CSITG.V.H.S.S, Mavelikkara, AlappuzhaSYAM D.Vocational Instructor in CSITK.P.S.P.M.V.H.S.S, East Kallada, Kollam.ExpertsDr. K SAnil KumarAssociate Professor &Head, Dept. of Computer Science,SreeAyyappa College, Eramallikkara, ChengannurShri. Neevan RAssistant Professor, Dept. of Computer Science,College of Engineering, AttingalViji BalakrishnanAsst. Professor in Computer Science & Member,Board of Studies, PG Computer Science, University of Kerala,College of Applied Science (IHRD), MavelikkaraAnil KumarDraftman (Mechanical)Govt. Polytechnique, Ezukone, KollamAcademic Co-ordinatorDr.Gopalakrishnan NResearch Officer, SCERTPrepared by :State Council of Educational Research and Training (SCERT)Poojappura, Thiruvananthapuram 695012, KeralaWebsite : www.scertkerala.gov.in e-mail : scertkerala@gmail.comPhone : 0471 - 2341883, Fax : 0471 - 2341869Typesetting and Layout : SCERT Department of Education, Government of Kerala

ForewordDear Learners,This book is intended to serve as a ready reference for learners ofvocational higher secondary schools. It offers suggested guidelinesfor the transaction of the concepts highlighted in the course content.It is expected that the learners achieve significant learning outcomesat the end of the course as envisaged in the curriculum if it is followedproperly.In the context of the Right- based approach, quality education has tobe ensured for all learners. The learner community of Vocational HigherSecondary Education in Kerala should be empowered by providingthem with the best education that strengthens their competences tobecome innovative entrepreneurs who contribute to the knowledgesociety. The change of course names, modular approach adopted forthe organisation of course content, work-based pedagogy and theoutcome focused assessment approach paved the way for achievingthe vision of Vocational Higher Secondary Education in Kerala. Therevised curriculum helps to equip the learners with multiple skillsmatching technological advancements and to produce skilledworkforce for meeting the demands of the emerging industries andservice sectors with national and global orientation. The revisedcurriculum attempts to enhance knowledge, skills and attitudes bygiving higher priority and space for the learners to make discussionsin small groups, and activities requiring hands-on experience.The SCERT appreciates the hard work and sincere co-operation ofthe contributors of this book that includes subject experts, industrialistsand the teachers of Vocational Higher Secondary Schools. Thedevelopment of this reference book has been a joint venture of theState Council of Educational Research and Training (SCERT) andthe Directorate of Vocational Higher Secondary Education.The SCERT welcomes constructive criticism and creative suggestionsfor the improvement of the book.With regards,Dr. P. A. FathimaDirectorSCERT, Kerala

CONTENTSABOUT THE COURSE . 5SYLLABUS . 6FUNDAMENTALS OF COMPUTER LANGUAGES . 10PROGRAMMING IN C . 17ARRAYS AND STRINGS . 27STRUCTURE . 31FUNCTIONS . 34OBJECT ORIENTED PROGRAMMING . 39POLYMORPHISM AND INHERITANCE . 48FILES IN C . 53DATABASE DESIGNING . 56SQL (STRUCTURED QUERY LANGUAGE) . 65ENGINEERING GRAPHICS . 77INTERNET AND CYBER SECURITY . 95WEB DESIGN USING HTML . 100ADVANCED HTML . 112CLIENT SIDE SCRIPTING . 125SEVER SIDE SCRIPTING . 140WEB HOSTING . 160TRENDS IN COMPUTING TECHNOLOGY . 165LIST OF REFERENCE . 176

ABOUT THE COURSEThe COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (CSIT)aims to equip students the knowledge, skills and attitudes to become productiveemployees in the area of computer science and technology. In this course, studentswill gain a perspective to become a successful entrepreneur in Computer Science &Information technology and allied sector.Scope of the CourseThe Computer Science and Information Technology course also provide studentswith the foundation for higher studies. Computer science and Information technologyis one of the most significant growth catalysts for the Indian economy. Computerscience and Information technology not only influenced the employment prospectsof the people but also affected the social lives of the people through networking andsocial web sites. CSIT course certificate is approved for various posts notified byKerala Public Service Commission (KPSC).Course NatureThe main objective of Vocational Higher Secondary Education is to make a selfreliance society who are capable of being self employed, acquiring skills to get jobas well as to obtain higher studies. In tune with the modular approach, the CSITcourse consists of 4 modules. Two or more job roles are identified in each module.Upon the completion of each module, skill certificate is awarded to students.Main Focus Areas Hardware Installation and maintenance Laptop maintenance Network configuration CCTV configuration DTP with Malayalam Graphics design Computer Programming Database Designing Computing Techniques Cyber Ethics Web DevelopmentRelevance of the CourseMany job opportunities in CSIT are emerged across the world. Upon the completionof the course, students will acquire skill and competent to enter in the upcoming jobmarket. Much of the CSIT related activities are entered on service in IT Field,Banking, Tele communication, Networking, Programming; Web designing, etc.

Reference BookSYLLABUSModule 3: Object Oriented Programming and DatabasesUnit No 3.1- Fundamentals of Computer Languages3.1.13.1.23.1.33.1.43.1.5Types of computer languagesLanguage translatorsApproaches in problem solvingProgramming methodologiesAlgorithm and flowchartUnit No 3.2 - Programming In C 3.2.1. Introduction to C 3.2.1.1 Character set and tokenso Input/Output statementso Turbo and Geany development environment3.2.1.2 Data types3.2.1.3 Control statementso Branching statementso Looping statementso Jump statements3.2.2 Arrays and Strings3.2.2.1 Arrays3.2.2.2 Strings3.2.2.3 String manipulation functions3.2.3 Structure3.2.3.1 Structure3.2.3.3 Nested structure3.2.3.4 Array of structure3.2.4 Functions and Pointers3.2.4.1 Built-in functions3.2.4.2 User defined functions3.2.4.3 Parameter passing3.2.4.4 Pointers3.2.5 Object Oriented Programming3.2.5.1 Object Oriented Programming Concepts3.2.5.2 Class and Objects6Periods: 30Periods: 140

COMPUTER SCIENCE & INFORMATION TECHNOLOGY3.2.5.3 Member functions3.2.5.4 Friend functions and Friend class3.2.5.5 Constructors and Destructors3.2.6 Polymorphism and Inheritance3.2.6.1 Polymorphism3.2.6.2 Implementation of Polymorphismo Function overloadingo Operator overloading3.2.6.3 Inheritance3.2.7 Files in C 3.3.7.1 File stream classes3.3.7.2 File modes3.3.7.3 File operationso Read ()o Write ()3.3.7.4 Error handling functionsUnit No 3.3 - Database Designing3.3.13.3.23.3.33.3.43.3.53.3.6Concept of DBMSAdvantages of the database management systemData abstraction and Data independenceData modelsTerminologies in RDBMS.Keys in RDBMSUnit No 3.4 - SQL (Structured Query Language)3.4.13.4.23.4.33.4.43.4.5Periods: 80Features of Structured Query Language.Data types and commandsPractice on SQL commandsClauses associated with DML commandsAggregate FunctionsUnit No 3.5- Engineering Graphics3.5.13.5.23.5.33.5.4Periods: 40Periods: 50Application areas of Engineering GraphicsDrawing InstrumentsLettering, Numbering and Dimensioning.Lines7

Reference Book3.5.53.5.63.5.73.5.83.5.9ScalesGeometric constructionBasic geometric shapesProjectionOrthographic and isometric projectionModule 4 Web Application DevelopmentUnit No 4.1 - Internet and Cyber Security4.1.14.1.24.1.34.1.4Periods: 45History of InternetTerminologiesCyber ethicsLegal IssuesUnit No 4.2 - Web Design Using HTMLPeriods: 454.2.1 BASIC HTML4.2.1.1 Web pages4.2.1.2 Static and Dynamic web pages4.2.1.3 Tags in HTML4.2.1.4 Structure tags4.2.1.5 Formatting tags4.2.1.6 Comments in an HTML document4.2.1.7 Image Tags4.2.1.8 Linking tag4.2.1.9 List Tags4.2.2 - Advanced HTML4.2.2.14.2.2.24.2.2.34.2.2.44.2.2.5Periods: 55Table TagsForm TagsFrame tagCascading style sheetMultimedia contentsUnit No 4.3 - Web Development using Javascript & PHP Periods: 504.3.1 CLIENT SIDE SCRIPTING4.3.1.1 Scripting languages4.3.1.2 Importance of JavaScript4.3.1.3 Data Types & Variables8

COMPUTER SCIENCE & INFORMATION trol StructuresFunctionsAccessing values through a text box4.3.2 Sever Side ScriptingPeriods: 1004.3.2.1 Features of PHP4.3.2.2 Syntax of PHP statement4.3.2.3 Comments4.3.2.4 Variables and Constant4.3.2.5 Data types and Operators4.3.2.6 Control structures4.3.2.7 Functions4.3.2.8 Arrays4.3.2.9 PHP Forms4.3.2.10PHP global variables and Super Global arrays4.3.2.11 Database functions used in PHP4.3.2.12Database connectivityUnit No 4.4 - Web Hosting4.4.14.4.24.4.34.4.4Types of web hostingBuying hosting spaceDomain name registrationFTP softwareUnit No 4.5 - Trends in Computing iods: 15Periods: 30Mobile networkGeneration of networksWireless networking technologiesMobile application developmentComputing technologiesIoTArtificial Intelligence9

Reference BookMODULE 3OBJECT ORIENTEDPROGRAMMING AND DATABASESUnit - 1Fundamentals of Computer LanguagesThis unit introduces how computer is used for problem solving. The first part describesthe different types of programming languages and translators. Here also discussvarious approaches (Top Down and Bottom Up) in problem solving. Upon completionof problem solving approaches, introduces algorithm and flow chart A computercan solve problems only when we give instructions to it. An instruction is an actionoriented statement.Learning OutcomesThe learner : Classifies different types of computer languages Identifies different language translators Differentiates Top Down and Bottom Up approaches in problem solving Describes different programming methodologies Develops algorithm and flowchart for various problems3.1.1 Types of Computer LanguageJust as humans use language to communicate, and different regions have differentlanguages, computers also have their own languages that are specific to them. Differentkinds of languages have been developed to perform different types of work on thecomputer. Basically, languages can be divided into two categories according to howthe computer understands them.Two Basic Types of Computer Language Low-Level Languages: High-Level Languages:Low-level LanguagesA language that corresponds directly to a specific machine. Low-level computerlanguages are either machine codes or are very close them. A computer can onlyunderstand and execute instructions given in the form of machine language i.e. binary.10

COMPUTER SCIENCE & INFORMATION TECHNOLOGYThere are two types of low-level languages: Machine Language Assembly LanguageMachine LanguageMachine language is a language that is directly interpreted by the hardware. It is thelowest level of programming language, which uses binary codes. ('1' and '0').Assembly LanguageAssembly language is slightly more user-friendly language that directly correspondsto machine language. Assembly language use mnemonic codes. It was developed toovercome some of the many inconveniences of machine language.High-level LanguagesHigh-level computer languages use formats that are similar to English. It is very easyto use and understand. High-level languages are basically symbolic languages thatuse English words and mathematical symbols.Examples of High-level LanguagesC Language: The C language has an object oriented structure. The structureof object oriented also permit code to be reused many times. This language is anefficient language.Java Language: The Java language is a multi-platform language that's particularlyhelpful in networking. It is similar to C in structure and syntax. Java is very easyto learn.PHP Language: The PHP language is used to design dynamic web pages.3.1.2 Language TranslatorAll the programs written in programming language (except machine level language)is first translated into machine understandable form for its successful execution.Assemblers, Compilers and Interpreter are the examples of Language translators.Assembler: An assembler translates assembly language into machine code.Compiler: A Compiler translates code written in a high level language to a lowerlevel language, object/machine code.Eg: Computer languages that use compiler : C, C .Source Program Compiler Target ProgramInterpreter: An interpreter executes the programs directly, running through programcode and executing it line-by-line.Eg : Computer Languages that used interpreter : BASIC11

Reference BookDifference between Compiler and InterpreterBoth compilers and interpreters are used to process high level programming languages.But they are quite different in features.CompilerInterpreterIt translates a whole program at a timeIt translates a line of code at a timeIt generates intermediate codes afterNo intermediate codes generatedtranslationErrors are detected only after compilation Errors are known at each lineMore memory space requiredLess memory space required(since intermediate code is generated)Compiled programs are fasterInterpreted programs are rather slowCan be used for both small and hugeOnly used in small blocks of code.size program3.1.3 Approaches in Problem Solving1. Top down design (top down decomposition)It is the process of breaking the overall procedure or task into modules andthen subdividing each module until the lowest level of detail is reached.2. Bottom up designThe solution for the main module will be developed only after designing specific solution to its sub modules.3.1.4 Programming Methodologies1. Procedural programming:-Important features of procedural programminga. Programs are organized in the form of subroutinesb. All data items are globalc. Program controls are through jumps and calls to subroutined. Subroutines are abstracted to avoid repetitionse. Suitable for small sized software applicationf. Difficult to maintain and enhance the program codeEg:- FORTRAN and COBOL2. Structured programming:-Programs consists of multiple modules, each modulehas a set of functions of related types. Important features of structured programminga. Emphasis on algorithm rather than data12

COMPUTER SCIENCE & INFORMATION TECHNOLOGYb. Programs are divided into individual proceduresc. Procedures are independent of each otherd. Procedures have their own local datae. Introduction of the concepts of user defined data typesf. Support for modular programmingEg : - Pascal and C3.Object oriented programming:-Object oriented programming emphasizes onthe data rather than the algorithm. Important features of Object oriented programminga. emphasizes on data rather than algorithmb. data abstraction is introduced in addition to procedural abstractionc. Data and associated operations are grouped into single unitd. Programs are designed around the data being operatede. Relationships can be created between similar, yet distinct data typesEg:- C , Java3.1.5 Phases in ProgrammingThe program required can bedeveloped only by going throughdifferent stages.AlgorithmA precise step-by-step procedure tosolve a problem is called algorithm.FlowchartThe pictorial representation of analgorithm is called flowchart.Flowchart SymbolsTerminalInput/OutputProcessDecisionFlow linesConnector13

Reference BookPractical QuestionsGive lab work to write algorithm and draw flowchart for the following problems1. Perform simple mathematical operationsStartEg. Algorithm for adding two numbersInput A,BStep1. StartStep2. Input A,BC A BStep3. C A BStep4. Print CPrint CStep5. Stop2. Problems with branching statementStopAlgorithm for finding the biggest of two numbersStartStep1. StartStep2. Input A,BInputStep3 If A B thenA,BStep4.BIG AElseIf A BStep5.BIG BBIG BStep6. Print BIGBIG AStep7. StopStop3. Problems with iterative statementProblems with iterative statementAlgorithm for finding the sum ofFirst N natural NumbersStep1. StartStep2. Input NStep3. S 0Step4. T 1Step5. Repeat Step 6through Step7while T NStep6. S S TStep7. T T 1Step8. Print SStep9. Stop14

COMPUTER SCIENCE & INFORMATION TECHNOLOGYMore Practical Questions1.Develop an algorithm and draw the flowchart to find sum and average of threenumbers2.Develop an algorithm and draw the flowchart to find simple interest3.Develop an algorithm and draw the flowchart to find the sum of first N evennumbers4.Develop an algorithm and draw the flowchart to check whether a given number is odd or even5.Develop an algorithm and draw the flowchart to find the largest of three numbers6.Develop an algorithm and draw the flowchart to find the factorial of a givennumber7.Develop an algorithm and draw the flowchart to find the sum of first N oddnumbers8.Develop an algorithm and draw the flowchart to print the multiplication table ofa given number9.Develop an algorithm and draw the flowchart to input a day number and display the name of the day10. Based on the evaluation system for standard X, develop an algorithm and drawthe flowchart to accept a score out of 100 and find the grade11. Develop an algorithm and draw the flowchart to input a given number andcheck whether it is prime or notTE QuestionsObjective Type1. . is a sequence of instructions written in computer language2. language can be directly interpreted by the hardware3."Any complex problem can be solved by breaking it down into different tasksand solving each task by performing simpler activities. "This concept is known as 4.The solution for the main module will be developed only after designing solutions to its sub module. This style of approach is known as .15

Reference Book5.A precise step-by-step procedure to solve a problem is called .6.A pictorial representation of an algorithm is called .State True or False7.'Computer has no intelligence of its own'8.'In Top down design, we start "at the top" with a general problem and designspecific solutions to its sub problems.'Short Answer Type1.List two popular designing styles of problem solving2.List the different phases in programming3.Give the different symbols used in flowchartEssay Type1.Compare Top down design and Bottom up design2.Develop an algorithm and draw the flowchart to input a time in second andconvert it into Hr:Min:Sec format ( for example if 3700 is given as input ,the output should be 1 Hr : 1 Min: 40 sec)3.Develop an algorithm

employees in the area of computer science and technology. In this course, students will gain a perspective to become a successful entrepreneur in Computer Science & Information technology and allied sector. Scope of the Course The Computer Science and Information Technology course also

Related Documents:

This handbook supplement applies to students entering the fourth year of their degree in Computer Science, Mathematics & Computer Science or Computer Science . Undergraduate Course Handbook 1.2 Mathematics & Computer Science The Department of Computer Science offers the following joint degrees with the Department of Mathematics: BA .

Trends in the State of Computer Science in U.S. K-12 Schools 2016 Table of Contents Executive Summary 3 Introduction 5 Value of Computer Science in Schools 6 Opportunities to Learn Computer Science 9 Perceptions of Computer Science 14 Challenges and Opportunities for Computer Science in K-12

Introduction to Computer Science I Course Overview Computer Science 111 Boston University Welcome to CS 111! Computer science is not so much the science of computers as it is the science of solving pro

Computer Science Teachers Association, Cyber Innovation Center, and National Math and Science Initiative have answered the call by organizing states, districts, and the computer science education community to develop conceptual guidelines for computer science education. The K-12 Computer Science Framework was developed for -12 Computer Science

Department of Computer and Information Science Colloquium Chair, 2004{2005. Computer and Information Science, Graduate Admissions, 1997{2000. Chair, 2000. Computer and Information Science, MS Curriculum Revision and initiation of the new Master of Computer and Information Technology Program, 1999-2000.

Table of Contents Page 1. Introduction 5 2. Background 6 2.1 Computer Science, Information Technology, and Fluency 6 2.2 Computer Science at the College/University Level 7 2.3 The Current Status of K–12 Computer Science 9 3. A Comprehensive Model Curriculum 10 3.1 Level I—Foundations of Computer Science 11 3.1.a. Topics and Goals 12 3.1.b.

Computer Science as a discipline 8.1 The role and sub-disciplines of computer science 8.2 Artificial intelligence, data science and computer science 8.3 Ethical aspects of computer science 8.4 The ACM Code of

Notes and Solutions for: Artifical Intelligence: A Modern Approach: by Stuart Russell and Peter Norvig. John L. Weatherwax Nov 10, 2001 wax@alum.mit.edu 1