Студопедия

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

Разделы сайта

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






  • Как продвинуть сайт на первые места?
    Вы создали или только планируете создать свой сайт, но не знаете, как продвигать? Продвижение сайта – это не просто процесс, а целый комплекс мероприятий, направленных на увеличение его посещаемости и повышение его позиций в поисковых системах.
    Ускорение продвижения
    Если вам трудно попасть на первые места в поиске самостоятельно, попробуйте технологию Буст, она ускоряет продвижение в десятки раз, а первые результаты появляются уже в течение первых 7 дней. Если ни один запрос у вас не продвинется в Топ10 за месяц, то в SeoHammer за бустер вернут деньги.
    Начать продвижение сайта
  • C. cout<<student.name






    d. cout< < struct.student.name

     

    15. What is the difference between classes and structures?

    a.we can have functions in classes

    b. they are similar

    C. structures have only public access specifier

    d. classes include characters;

    e. structures include protected access specifier

     

    16. In classes, if we declare object without keywords like public, which type will it be of?

    A. private

    b. public

    c. protected

    d. it won't have access specifier

    e. friend

     

    17. How could you call in main the function input in object school of some class?

    a. input()

    b. input

    c. school:: input()

    d. school:: input

     

    18. class student {string name, surname} Aibar; What is underlined?

    A. object of class student

    b. member of class student

    c. member of object student

    d. parameter of class student

     

    19. Which access specifier means that the member can be used only by the functions of this class?

    A. private

    b. public

    c. protected

    d. this specifier doesn't exist

     

    20. Which is the right declaration of the object of structure student:

    a. struct Aibar

    b. struct student: Aibar

    C. student Aibar

    d. student.Aibar

    e. struct student=Aibar

     

    21. There is one mistake in code, in which line?

    a.1

    b.2

    c.3

    d.4

    E.5

    22. Which of the following correctly declares an array?

    A. int anarray[10];

    B. int anarray;

    C. anarray{10};

    D. array anarray[10];

     

    23. What is the index number of the last element of an array with 29 elements?

    A. 29

    B. 28

    C. 0

    D. Programmer-defined

     

    24. Which of the following is a two-dimensional array?

    A. array anarray[20][20];

    B. int anarray[20][20];

    C. int array[20, 20];

    D. char array[20];

     

    25. Which of the following correctly accesses the seventh element stored in foo, an array with 100 elements?

    A. foo[6];

    B. foo[7];

    C. foo(7);

    D. foo;

     

    26. Which of the following gives the memory address of the first element in array foo, an array with 100 elements?

    A. foo[0];

    B. foo;

    C. & foo;

    D. foo[1];

     

    27. When does the code block following while(x< 100) execute?






    © 2023 :: MyLektsii.ru :: Мои Лекции
    Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав.
    Копирование текстов разрешено только с указанием индексируемой ссылки на источник.