Digital Learning

Friday, September 15, 2023

Computer-Science Class-8 Exercise-5(2023-24):

Computer Science
Class-VIII
Chapter-5 Programming with C++

A. Tick the correct answer:
1. C++ was introduced by Bjarne Stroustrup at Bell Labs during................
a. 1971-73                    b. 1978-80                        c. 1980-82                d. 1983-85
Answer: 1983-85

2. C is a programming language originally developed for developing the .................. operating system.
a. LUNIX                    b. UNIX                            c. FOXPRO                d. ORACLE
Answer: UNIX

3. The earliest programming languages preceded the _________ of the computer.
a. invention                b. compilation                 c. discovery                d. execution
Answer: Invention

4. C is a __________ and powerful language.
a. high level                b. middle level                c. low level                   d. high pitched level
Answer: Low level

5. A class consists of __________ that share common properties.
a. keywords                b. objects                           c. operators                d. functions
Answer: Objects

6. __________ is the topmost part of the program where the title of the program displayed.
a. title bar                    b. status bar                    c. menu bar                 d. scroll bar
Answer: Title bar

7. Whenever you write a program you can compile it by ___________.
a. ctrl+f8                      b. ctrl+f2                          c. ctrl+f11                    d. ctrl+f9
Answer: Ctrl+F9

8. __________ are basic building block of the language.
a. keywords                 b. main                              c. include                    d. void
Answer: Keywords



B. Write true or false:
1. Programming languages can be used to create programs.
Answer: T

2. The description of a programming language is usually split into two components.
Answer: T

3. C++ maintains all aspects of the c language.
Answer: T

4. C++ program is a collection of variables.
Answer: F

5. A variable is a way of referring to a memory location used in a computer program.
Answer: T

6. Turboo c++ is an integrated development environment(IDE), developed by Microsoft.
Answer: F

7. Scroll bars are used to scroll the program.
Answer: T

8. Edit window is a text window where we write the program.
Answer: T

C. Fill in the blanks:
1. _____________ window is a text window where we write the program.
Answer: Edit

2. The ____________ opens where we can start writing the program.
Answer: Editor window

3. C++ is very___________ and versatile language and machine independent.
Answer: Flexible

4. ___________ developed by Borland international incorporation.
Answer: C++ is an integrated

5. Many programming languages require computation to be ________ in an imperative form.
Answer: Specified

6. After writing the program in the editor, we need to compile the -________to check it for any error.
Answer: Program code

7. C programming language is specified by an _________ standard.
Answer: ISO

8. ____________ are used to scroll the program.
Answer: Scroll bars

D. Answer the following questions in short.
1. Write the full form of IDE.
Answer: Full form of IDE is Integrated development environment.

2. Who invented C++?
Answer: C++ was introduced by Bjarne Stroustrup at Bell labs during 1983-85.

3. What is a program?
Answer: C++ program is a collection of commands.

4. What is class?
Answer: A class consists of objects that share common properties.

5. What is a variable?
Answer: A variable is a way of referring to a memory location used in a computer program.

E. Answer the following questions in detail.
1. What is a programming language?
Answer: A programming language is a formal language designed to communicate instructions to a machine. Programming languages can be used to create programs that control the behaviour of a machine.

2. What is the difference between C and C++?
Answer: C is a programming language originally developed for developing UNIX operating system.It is a low level and powerful language.
C++ is a newer language, based on C, that adds many more modern programming language features that make it easier to program thatn C.

3. Write the steps to save a file in C++.
Answer: Steps to save a program:
1. Click on file.
2. Select save as option or click F2.
3. Write your program name.
4. Click on OK.

4. Why do we use #include<iostream>?
Answer: We use #include<iostream> in the starting of the program. Iostream stands for the input and output stream. This specific file include the declarations of the basic standard input output library in C++.

No comments:

Post a Comment