129x Filetype PDF File size 0.35 MB Source: holycrossschoolhzb.com
COMPUTER LANGUAGES & PROGRAMMING TECHNIQUES TH CLASS: 6 CHAPTER: 2 B. FILL IN THE BLANKS: 1. …Machine….language is the only language that a computer can understand. 2. …..Compiler…..translates a program at once and generates a list of errors, if any. 3. Value of a……..Variable…..can change throughout the program. 4. An operator is applied on one or more……Operands…. 5. A pseudo code must start with the keyword….begin…. D. ANSWER THE FOLLOWING QUESTIONS: 1. List the name of 4 generations of computer programming languages. Ans- 1. Ist generation Machine language nd 2. 2 generation Assembly language rd 3. 3 generation High level language th 4. 4 generation Modern language 2. How a program is different from a pseudo code? Ans- Program is a set of instructions which tells the computer what to do. Pseudo code is an artificial code to understand program flow. 3. What do you mean by data, data type, and variable? Ans- Data is divided into three parts: 1. Numbers(0-9) 2. Alphabets(A-Z, a-z) 3. Special symbols(+,-,<,>,=,etc) Data type in programming language is asset of data with values having predefined characteristics. For example, integers, float, character & string. Variable is a named storage location which is used to store the values. Its value can be changed throughout the program. 4. Explain NOT operator with suitable example. Ans- Not (!) It returns the opposite Boolean value of its evaluating operand .e.g. Not (7==5)//evaluate to true because (7==5) would be false Not (5>4)//evaluate to false because (5>4) would be true. Not true// evaluate to false Not false// evaluate to true 5. List the steps required in planning of a program. Ans- 1. Define the output & data flows. 2. Develop the logic to get to that output 3. Write the program. OR 1. Design a solution. 2. Draw a flow chart. 3. Write pseudo code. 4. Write code. 5. Test & debug 6. Test with real world users 7. Release program
no reviews yet
Please Login to review.