Вопрос школьника по предмету Информатика
Какие значения примут элементы массива А[3] и А[4] после выполнения последовательности операторов, если первоначально
А[3]:=3
А[4]:=5
В:=А[4]
А[3]:=А[4]
А[4]:=D?
Ответ учителя по предмету Информатика
Ответ:
A[3] будет равно 5
A[4] = D
Объяснение:
A[3] примет значение A[4], которое в ту часть кода имеет значение 5.
А[4] в конце кода присваивается значение переменной D, так как значение переменной D не дано, я написал просто «A[4]=D»
Похожие вопросы от пользователей
кто. лишний
хомяк кролик кошка
одгодайте
аа+вв=
1. Yesterday at 5 o’clock I (to watch) TV with my friends. 2. He (to work) in this supermarket for 10 years. 3. She (to look) for her notebook at the moment. 4. They never (to be) to Russia. 5. Where you (to be) all the day long? – I (to run) in the forest. 6. Look! Chris (to write) with mistakes on the blackboard. 7. At that moment we (to go) to the cinema. 8. Jane (not to see) her best friend since she returned from Rome. 9. He (to jump) since 4 o’clock. 10. They (to study) at the same college since 2010. 11. How many times you (to be) to London? 12. I (to wait) for my sister since morning. 13. You (to see) him this morning? 14. Be quicker! Don’t forget that I (to wait) for you. 15. How long you (to live) in this marvelous town?