...Tutorial : 1 1. Introduction Q1. Answer in short. 1. What is system programming 2. State difference between system programming and application programming. 3. State difference between compiler and interpreter. 4. State advantages and disadvantages of interpreter as compare to compiler. 5. Which are the components of smac0 simulator? 6. Write down the instruction set of smac0 Q2. Write note on – 1. Editor 2. Assembler 3. Compiler 4. Interpreter 5. Preprocessor 6. Linker and loader 7. Debugger. 8. Operating system 9. Device drivers 10. Instruction format with instruction code Q3. Select the proper option 1. ---- is a not the system software. a. Editor b. compiler c. Linker d. Accounting software 2. ----- is the system software which does some processing on source program before compilation. a. Linker b. Loader c. Assembler d. Preprocessor 3. Using ---- user can watch the values of variables during step by step execution of program a. Compiler b. Editor c. Preprocessor d. Debugger 4. ----- is a process to execute program from specific memory area allocated to it. a. Linking b. Loading c. Translation d. Relocation 5. ----- is the system software which combines different object programs to create executable program a. Linker b. Loader c. Translator d. Editor Q.4 State true or false 1. System software...
Words: 1377 - Pages: 6
.../R:36-706S:K2R21 /R:36-706S:K2R21 /R:36-706S:K2R21 /R:36-706S:K2R21 P/R:34-304S:K2R21 P/R:33-305S:K2R21 03-04 PM Lecture/G:AllC:CSE415 Lecture/G:AllC:CSE415 Lecture/G:AllC:CSE415 Lecture/G:AllC:EEP001 Practical/G:1C:CSE415 T/R:34-408S:K2R21 T/R:34T/R:34-408S:K2R21 T /R:34-708S:EE449 P/R:33-305S:K2R21 408S:K2R21 Lecture/G:AllC:EEP001 S/R:34-506S:EE408 04-05 PM Lecture/G:AllC:EEP001 S/R:34-506S:EE408 Lecture/G:AllC:EEP001 T /R:34-708S:EE449 Course Type CR-Core, DE-Department Elective, SP-Specialization,P-PD Classes OE-Open Elective, SE-Social Science, BL-Backlog My Course Course Code Type Course Title CSE440A CR CAPSTONE PROJECT-I 0 0 0 4 CSE415P CR COMPILER DESIGN 0 0 3 2 CSE415T CR COMPILER DESIGN 3 0 0 3 CSE539 CR ADVANCED COMPUTER ARCHITECTURE 4 0 0 4 CSE443 CR...
Words: 481 - Pages: 2
...Teach Yourself C++ in 21 Days, Second Edition Introduction Week 1 at a Glance: Day 1 Getting Started Day 2 The Parts of a C++ Program Day 3 Variables and Constants Day 4 Expressions and Statements Day 5 Functions Day 6 Basic Classes Day 7 More Program Flow Week 1 in Review Week 2 at a Glance: Day 8 Pointers Day 9 References Day 10 Advanced Functions Day 11 Arrays Day 12 Inheritance Day 13 Polymorphism Day 14 Special Classes and Functions Week 2 in Review Week 3 at a Glance: Day 15 Advanced Inheritance Day 16 Streams Day 17 The Preprocessor Day 18 Object-Oriented Analysis and Design Day 19 Templates Day 20 Exceptions and Error Handling Day 21 Whats Next Week 3 in Review Appendixes A Operator Precedence B C++ Keywords C Binary and Hexadecimal D Answers Index Teach Yourself C++ in 21 Days, Second Edition Dedication This book is dedicated to the living memory of David Levine. Acknowledgments A second edition is a second chance to acknowledge and to thank those folks without whose support and help this book literally would have been impossible. First among them are Stacey, Robin, and Rachel Liberty. I must also thank everyone associated with my books, both at Sams and at Wrox press, for being professionals of the highest quality. The editors at Sams did a fantastic job, and I must especially acknowledge and thank Fran Hatton, Mary Ann Abramson, Greg Guntle, and Chris Denny. I have taught an online course based on this book for a couple years, and many folks there...
Words: 4907 - Pages: 20
...Teach Yourself C++ in 21 Days, Second Edition Introduction Week 1 at a Glance: Day 1 Getting Started Day 2 The Parts of a C++ Program Day 3 Variables and Constants Day 4 Expressions and Statements Day 5 Functions Day 6 Basic Classes Day 7 More Program Flow Week 1 in Review Week 2 at a Glance: Day 8 Pointers Day 9 References Day 10 Advanced Functions Day 11 Arrays Day 12 Inheritance Day 13 Polymorphism Day 14 Special Classes and Functions Week 2 in Review Week 3 at a Glance: Day 15 Advanced Inheritance Day 16 Streams Day 17 The Preprocessor Day 18 Object-Oriented Analysis and Design Day 19 Templates Day 20 Exceptions and Error Handling Day 21 Whats Next Week 3 in Review Appendixes A Operator Precedence B C++ Keywords C Binary and Hexadecimal D Answers Index Teach Yourself C++ in 21 Days, Second Edition Dedication This book is dedicated to the living memory of David Levine. Acknowledgments A second edition is a second chance to acknowledge and to thank those folks without whose support and help this book literally would have been impossible. First among them are Stacey, Robin, and Rachel Liberty. I must also thank everyone associated with my books, both at Sams and at Wrox press, for being professionals of the highest quality. The editors at Sams did a fantastic job, and I must especially acknowledge and thank Fran Hatton, Mary Ann Abramson, Greg Guntle, and Chris Denny. I have taught an online course based on this book for a couple years, and many folks there...
Words: 4907 - Pages: 20
...TERM PAPER COMPILER DESIGN Translator For Simple Expression Submitted to:Harshpreet Sir Submitted by:Kapish Mahajan Registration no. 11207646 Section : K2202 Roll no. A-19 Syntax Directed Translation 1. Syntax Directed Definitions There are two notations for associating semantic actions with productions: syntax-directed definitions and translation schemes. The Syntax-Directed Definitions are a mechanism for specifying translations for the programming language constructs. A syntax-directed definition specifies the translation of a construct in terms of the attributes associated with its syntactic components. A syntax-directed definition uses a context-free grammar to specify the structure of the input: with each grammar symbol it associates a set of attributes; and with each production a set of semantic rules for computing the values of the attributes associated with the symbols in it. A Translation Scheme is like a syntax-directed translation except that the order of evaluation of the semantic rules is explicitly shown. A translation scheme is a context-free grammar in which program fragments called semantic actions are embedded within the right sides of the productions. Translation schemes show the order in which the semantic rules has to be evaluated, so they show implementation details. With both syntax-directed definitions and translation schemes the input token stream is parsed...
Words: 696 - Pages: 3
...tradeoffs of the basic data structures, Arrays vs LinkedLists, Able to explain how hashtables can be implemented and can handle collisions, Priority queues and ways to implement them etc. Knowledge of advanced data structures like B-trees, binomial and fibonacci heaps, AVL/Red Black trees, Splay Trees, Skip Lists, tries etc. algorithms Unable to find the average of numbers in an array (It’s hard to believe but I’ve interviewed such candidates) Basic sorting, searching and data structure traversal and retrieval algorithms Tree, Graph, simple greedy and divide and conquer algorithms, is able to understand the relevance of the levels of this matrix. systems programming Doesn’t know what a compiler, linker or interpreter is Basic understanding of compilers, linker and interpreters. Understands Understands kernel mode vs. user mode, multi-threading, synchronization primitives and how they’re implemented, able to read what assembly code is and how things work at the hardware level. Some assembly code. Understands how networks work, understanding of network protocols and socket level programming. knowledge of virtual memory and paging. Able to recognize and code dynamic programming solutions, good knowledge of graph algorithms, good knowledge of numerical computation algorithms, able to identify NP problems etc. Understands the entire programming stack, hardware (CPU + Memory + Cache + Interrupts + microcode), binary code, assembly, static and dynamic ...
Words: 1812 - Pages: 8
...++Starting Out with Programming Logic and Design, 3rd Edition By Tony Gaddis C++ Language Companion or Copyright © 2013 Pearson Education, Inc. Table of Contents Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Introduction 3 Introduction to Computers and Programming 4 Input, Processing, and Output 9 Functions 19 Decision Structures and Boolean Logic 27 Repetition Structures 41 Value-Returning Functions 49 Input Validation 59 Arrays 61 Sorting and Searching Arrays 72 Files 77 Menu-Driven Programs 86 Text Processing 89 Recursion 95 Object-Oriented Programming 97 Page 2 Introduction Welcome to the C++ Language Companion for Starting Out with Programming Logic and Design, 3rd Edition, by Tony Gaddis. You can use this guide as a reference for the C++ Programming Language as you work through the textbook. Each chapter in this guide corresponds to the same numbered chapter in the textbook. As you work through a chapter in the textbook, you can refer to the corresponding chapter in this guide to see how the chapter's topics are implemented in the C++ programming language. In this book you will also find C++ versions of many of the pseudocode programs that are presented in the textbook. Note: This booklet does not have a chapter corresponding to Chapter 15 of your textbook because C++ does not provide a GUI programming library. Page 3 Chapter 1 This chapter accompanies...
Words: 1609 - Pages: 7
...COMPILER DESIGN LECTURE NOTES UNIT -1 1.1 OVERVIEW OF LANGUAGE PROCESSING SYSTEM 1.2 Preprocessor A preprocessor produce input to compilers. They may perform the following functions. 1. Macro processing: A preprocessor may allow a user to define macros that are short hands for longer constructs. 2. File inclusion: A preprocessor may include header files into the program text. 3. Rational preprocessor: these preprocessors augment older languages with more modern flow-of-control and data structuring facilities. 4. Language Extensions: These preprocessor attempts to add capabilities to the language by certain amounts to build-in macro 1.3 COMPILER Compiler is a translator program that translates a program written in (HLL) the source program and translate it into an equivalent program in (MLL) the target program. As an important part of a compiler is error showing to the programmer. Source pgm Compiler Error msg target pgm Department of CSE -2- Executing a program written n HLL programming language is basically of two parts. the source program must first be compiled translated into a object program. Then the results object program is loaded into a memory executed. Source pgm Compiler obj pgm Obj pgm input Obj pgm opj pgm output 1.4 ASSEMBLER: programmers found it difficult to write or read programs in machine language. They begin to use a mnemonic (symbols) for each machine instruction, which they would subsequently translate into machine language. Such...
Words: 14721 - Pages: 59
...certain amount of respect from your colleagues and employer. Some of your colleagues would have also tried to get certified, but could not get certified. So, this achievement of yours deserves a back-patting. You always wanted to get certified, so after you receive your certification letter and other stuff, a sense of personal satisfaction, gratification, and relief is felt. Those were some of the benefits that you could receive after getting CCNA certified. Top 10 best free web design software 1. Coffeecup html editor 2. Notepad++ 3. Pagebreeze 4. Firebug 5. Bluefish editor 6. Brackets 7. kompoZer 8. openBexi 9. GIMP 10. Bluegriffon The CoffeeCup Free HTML Editor is a full-featured web design system. With built-in S-Drive sync and real-time preview that updates HTML5 and CSS3 as you code, your site will be ready for the web before you know it. Plus, its wizards for tables, frames, fonts, and more prove that it's a great tool for anyone who wants to design their own website. The Free HTML Editor is a trimmed-down version of the...
Words: 541 - Pages: 3
...Week 1.1 (Monday) ENGLISH ORIGINAL TEXT УКРАЇНСЬКИЙ ПЕРЕКЛАД DAVID J. MALAN: So this is CS50. And this was CS50's own Colton Ogden, for more of who's music you can download at soundcloud.com/cs50. So today we focus all the more on the art of programming. And we take where we left off last week, focusing on Scratch, which was this graphical programming language. And take things down to a lower level, using a more traditional programming language known as C. But along the way, realizing that the same ideas we talked about last Friday will recur not only in this language C, but in most every other that we look at this semester. So we called this thing here what last time? This is representative of a statement. So we called this a statement. And it does something. It's an instruction that a computer or Scratch might execute. And henceforth, let's also start calling something like this a function, for reasons we shall soon see. Meanwhile, we saw things like this. And these are generally known as what construct? AUDIENCE: Loop. DAVID J. MALAN: So a loop. So pretty straightforward. It literally does what it says. And in Scratch, if you want to cram more puzzle pieces in there, the piece will grow to fit it. And we'll see in C that we can do the same thing. Another type of loop, though, in Scratch might be forever, or there's any number of other approaches. But let's take a more generalist look, with a face that's likely quite familiar, at loops more generally. MARK ZUCKERBERG:...
Words: 17436 - Pages: 70
...Simulated Assembler-Objects and a Glass Bottom Computer (a polytechnic approach) William G. Verbrugge wgverbrugge@csupomona.edu California State Polytechnic University, Pomona 3801 West Temple Avenue Pomona, CA 91768 Abstract Integrated Development Environments are excellent production tools for intermediate and advanced programming students and even beginners after they have learned the core concepts (stored data, stored programs, computer instructions, and the anatomy of the computer). Most authors of introduction to programming books recognize this by their inclusion of one to twenty pages on this topic. This paper presents how using a simulated assembler (a tool for learning) with a simple assembly language can introduce the beginning student to the core concepts without having to be concerned with all the exceptions and rigor of a full assembler language. The Simulated Assembler with a full viewable Computer Machine (Glass Bottom Computer) and the easy procedures for using it in a first programming course are illustrated. Using the assembler tool described here should provide an increase in learning via a polytechnic (learn by doing) approach. A comparative analysis of using the assembler in an introduction to object programming course is provided. Keywords: assembler, simple machine, software tools, language, programming, object oriented, machine language 1. INTRODUCTION The growth in hardware technology has allowed the theories of modern...
Words: 3467 - Pages: 14
...An object program is a program into which some other program is translated by an assembler or a compiler 4) What is linking? A linker combines object programs with other programs in the library to create executable code. 5) Which program loads the executable code from the main memory into the CPU for execution? The loader performs this function. 6) In a C++ program, preprocessor directives begin with which symbol? # symbol 7) In a C++ program, which program processes statements that begin with the symbol #? ( Preprocessor directives 8) What is programming? Programming...
Words: 2044 - Pages: 9
...Domain Semantic Gap has many consequences Large development time Large development effort Poor quality of software Specification and Execution Gaps Specification Gap Application Domain Execution Gap PL Domain Execution Domain The software engineering steps aimed at the use of a PL can be grouped into Specification, design and coding steps PL implementation steps Specification and Execution Gaps Specification Gap It is the semantic gap between two specifications of the same task. Execution Gap It is the gap between the semantics of programs (that perform the same task) written in different programming languages. Language Processors “A language processor is a software which bridges a specification or execution gap”. The program form input to a language processor as the source program and to its output as the target program. The languages in which these programs are written are called source language and target language, respectively. Types of Language Processors A language translator bridges an execution gap to the machine language (or assembly language) of a computer system. E.g. Assembler, Compiler. A detranslator bridges the same execution gap as the language translator, but in the reverse direction. A preprocessor is a...
Words: 2285 - Pages: 10
...* Software mainly directs and coordinates computer hardware. In its function, software directly provides instructions to the computer hardware and serves as input to another piece of software to facilitate computing. * Hardware in the computer refers to the physical component that makes a computer system. * Computer data storage often called storage or memory is a technology consisting of computer components and recording media used to retain digital data. * Computer don’t do anything without someone telling them what to do like the average teenager to make the computer do something useful you must give the instruction in either of the following two ways. Write a program, Buy a program. * Machine code is the only form of program instructions that the computer hardware can understand and execute directly. All other forms of computer language must be translated into machine code in order to be executed by the hardware. Machine code consists of many strings of binary digits that are easy for the computer to interpret, but tedious for human beings to interpret. Machine code is different for each type of computer. A program in machine code for an Intel x86-based PC will not run on an IBM mainframe computer, and vice versa. * Assembly language is a symbolic representation of machine code, which allows programmers to write programs in machine code without having to deal with the long binary strings. For example, the machine code for an instruction that adds two numbers...
Words: 736 - Pages: 3
...UET Peshawar Abbottabad Campud 13 Micro Processor Assignment # 02 Submitted by Usama Sheikh (46) Usman Ali Khan (38) Atiq-ur-Rehman(14) Wahab Akbar(20) Submitted to Engr. Munazza Razzaq Q1: Write a program the counts no of zeros in a 16bit word. Program Code:- .MODEL SMALL .STACK 64 .DATA HWRD DW 9E46 ORG 0600 ZERO DB ? .CODE MAIN PROC FAR MOV AX,@DATA MOV DX,AX SUB BL,BL MOV DL,16 MOV AX,HWRD BACK: ROL AX,1 JC NEXT INC BL NEXT: DEC DL JNZ BACK MOV ZERO,BL MOV AH,4CH INT 21H MAIN ENDP END MAIN Q2: write a program that finds the smallest no among list of following no’s, 12,100,01,8,0 Program Code:- .MODEL SMALL .STACK 64 .DATA NUMBERS DB 12,100,01,8,0 ORG 008 SMALLEST DB ? .CODE MAIN PROC FAR MOV AX,@DATA MOV DS,AX MOV CX,5 MOV BX,OFFSET NUMBERS MOV AL,[BX] BACK: CMP AL,[BX] JC NEXT MOV AL,[BX] NEXT: INC BX LOOP BACK MOV SMALLEST,AL MOV AH,4CH INT 21H MAIN ENDP END MAIN Q3: write a program to copy following hex no’s from 0200 memory location to 0400 location in reverse order. 12H,25H,35H,45H Program Code:- .MODEL SMALL .STACK 64 .DATA ORG 0200H hex_nos DB 12H,25H,35H,45H ORG 0400H COPY-data DB 4 DUP(?) .CODE MAIN PROC FAR MOV AX,@DATA MOV DS,AX MOV SI,OFFSET hex_nos INC SI INC SI INC SI MOV DI,OFFSET COPY-data MOV CX,04H AGAIN: MOV AL,[SI] MOV [DI],AL DEC SI INC DI DEC CX JNZ AGAIN MOV AH,4CH INT 21H MAIN ENDP END...
Words: 281 - Pages: 2