Студопедия

Главная страница Случайная страница

КАТЕГОРИИ:

АвтомобилиАстрономияБиологияГеографияДом и садДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеталлургияМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРелигияРиторикаСоциологияСпортСтроительствоТехнологияТуризмФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника






B) There will be an error.






A.120;

 

2. Structure definition

a)

 

3. Keyword of structure

A)Struct

 

4. Which keyword doesn’t exist?

C)That

 

5. Which of this keyword isn’t access specifier?

D)Defended

6. What type of access have class members by default?

A)Private

7. Which of this statement used to define a member of a class from outside the class definition itself?

a)::

 

8. What will be output of this code?

 

a) area: 12

9. What will be output of this code?

a) area: 1

 

10. What will be output of this code?

b) There will be an error.

11. What will be output of this code?

b) area: 25

12. What will be output of this code?

b) area: 0

 

13. What is the difference between array and structure?

a) only in their declaration

b) they haven't any differences

c) structure can include members of different types of data

d) structures are more powerful

e) array incudes only integers

 

14. Which code outputs the member " name" of object student? (student is object of any structure)

c. cout< < student.name

 

15. What is the difference between classes and structures?


Поделиться с друзьями:

mylektsii.su - Мои Лекции - 2015-2024 год. (0.006 сек.)Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав Пожаловаться на материал