Студопедия

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

КАТЕГОРИИ:

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






B) area: 0






A)Struct

b)Structure

c)Str

d)Strctur

 

4. Which keyword doesn’t exist?

a)Struct

b)Class

C)That

d)This

 

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

a)Private

b)Public

c)Protected

D)Defended

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

A)Private

b)Public

c)Protected

d)Defended

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

a)::

b)> >

c)< <

d)/*

 

8. What will be output of this code?

 

A) area: 12

b) area=12

c) Area: 12

d) area: 34

 

9. What will be output of this code?

A) area: 1

b) area: -1

c) Area: -1

d) area: -1

 

10. What will be output of this code?

a) area: 12

B) There will be an error.

c) Area: 12

d) area: 12

 

11. What will be output of this code?

a) area: 155

B) area: 25

c) area: 75

d) area: 225

12. What will be output of this code?

a) area: 12

b) area: 0

c) Area: 12

d) area: 16

 

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)

a. cout< < struct.name

b. cout< < student[name]


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

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