![]() |
|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
![]() |
|
Опции темы | Поиск в этой теме |
![]() |
#1 |
Новичок
Джуниор
Регистрация: 15.07.2012
Сообщений: 2
|
![]()
Здравствуйте!Помогите,пожалуйста, решить тест,как минимум частично)
1. What does the volatile keyword mean? Select correct answer: A. It’s used to declare very often modified variables. Compiler uses this information for optimization purposes. B. It’s used to declare that an object can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread C. It’s synonym of auto keyword D. No such a keyword 2. What does this program print? Assume that sizeof(unsigned int) is 4. Код:
A. -1 B. This program isn’t correct because of return operator in Arith function C. fffffff D. This program isn’t correct because of printf invocation in main function 3. Global variable is defined as static. What does this mean? Код:
A. It’s synonym of const keyword B. Variable _int cannot be referenced in other translation unit C. It’s used to declare very seldom modified variable. Compiler uses this information for optimization purposes D. It’s used to declare that an object can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread 4. Local variable is defined as static. What does this mean? Код:
A. It’s used to declare that an object can be modified in the program by something such as the operating system, the hardware, or a concurrently executing thread B. Variable _int saves its value between invocation of foo C. It’s synonym of const keyword 5. Is this code correct? Код:
A. Operator return &tolick is incorrect in foo function B. This code is not correct because if ps is NULL machine attempts to read ps->int1 C. This code is correct D. Variable tolick is read only 6. What will be the output of the program? Код:
A. 6 5 B. 5 5 C. 5 6 D. 6 6 C++ 7. What is correct about virtual function? Select correct answer: A. It must be redefined in child class B. It should not return value C. It could be overwritten in child class D. Given a base class pointer to a child class object, virtual function defined in the child class will be called 8. What is correct about a reference in a function argument list? Select correct answer: A. Same as pointer B. Same variable as in caller function C. Return value of virtual function D. Global variable 9. What is correct template class declaration? Select correct answer: A. class x <class T> { } B. template <class T> class X { } C. class x <template class T> { } D. template <class T> T X ( ) { } 10. What are correct streaming operators for declaration: ofstream myfile ("example.txt")? Select correct answer: A. myfile << “some string”; B. myfile >> int_variable; C. 10 >> myfile; D. myfile << myfile; 11. What is the output of the following program? Assume that target machine has 32bit architecture. Код:
|
![]() |
![]() |
![]() |
#2 |
Новичок
Джуниор
Регистрация: 15.07.2012
Сообщений: 2
|
![]()
С частью,касающейся С++ разобрался(точнее помогли на другом форуме),но С по-прежнему нуждается во внимании программеров)
|
![]() |
![]() |
![]() |
#3 |
Форумчанин
Регистрация: 22.05.2012
Сообщений: 352
|
![]() |
![]() |
![]() |
![]() |
![]() |
||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Тест | Рузька | HTML и CSS | 3 | 26.05.2012 21:18 |
Тест | Kinect | Общие вопросы .NET | 2 | 08.05.2011 23:02 |
Тест | Bamz | Общие вопросы Delphi | 4 | 05.12.2008 00:55 |
Тест | SERG1980 | БД в Delphi | 1 | 20.07.2007 12:58 |
Тест | djeyana | Общие вопросы по Java, Java SE, Kotlin | 0 | 28.06.2007 00:19 |