Величини та їх властивості

Approved & Edited by ProProfs Editorial Team
At ProProfs Quizzes, our dedicated in-house team of experts takes pride in their work. With a sharp eye for detail, they meticulously review each quiz. This ensures that every quiz, taken by over 100 million users, meets our standards of accuracy, clarity, and engagement.
Learn about Our Editorial Process
| Written by Hanzhalena
H
Hanzhalena
Community Contributor
Quizzes Created: 1 | Total Attempts: 403
Questions: 8 | Attempts: 403

SettingsSettingsSettings
    - Quiz


Questions and Answers
  • 1. 

    Який компонент призначений для введення та відображення короткого текстового рядка?

    • A. 

      Button

    • B. 

      Memo 

    • C. 

      Edit

    • D. 

      Form

    Correct Answer
    C. Edit
    Explanation
    The correct answer is "Edit" because an "Edit" component is specifically designed for input and display of short text strings. The other options, such as "Button," "Memo," and "Form," are not typically used for this purpose.

    Rate this question:

  • 2. 

    Var A : Real; B: Integer; В яких операторах правильно організовано введення значень змінних?

    • A. 

      А := StrToFloat(Edit1.Text);

    • B. 

      В := StrToInt(Edit1.Text);

    • C. 

      А := StrToInt(Edit1.Text);

    • D. 

      Edit1.Text := FloatToStr (А);

    Correct Answer(s)
    A. А := StrToFloat(Edit1.Text);
    B. В := StrToInt(Edit1.Text);
    Explanation
    The correct answers for the question are "A := StrToFloat(Edit1.Text);" and "B := StrToInt(Edit1.Text);". These statements correctly convert the value entered in the Edit1 control to a floating-point number and an integer, respectively, and assign them to the variables A and B.

    Rate this question:

  • 3. 

    Var A: Real; B: Integer; В яких операторах правильно організовано виведення значень змінних до текстового поля Edit1?

    • A. 

      А := StrToFloat(Edit1.Text);

    • B. 

      Edit1.Text := FloatToStr (В);

    • C. 

      Edit1.Text := FloatToStr(А);

    • D. 

      Edit1.Text := IntToStr(В);

    Correct Answer(s)
    C. Edit1.Text := FloatToStr(А);
    D. Edit1.Text := IntToStr(В);
    Explanation
    The correct answer is "Edit1.Text := FloatToStr(А); , Edit1.Text := IntToStr(В);" because it correctly converts the values of variables A and B to string format and assigns them to the Edit1.Text property, which is used to display the values in the text field.

    Rate this question:

  • 4. 

    Який текст виводиться у вікно повідомлення? var A : Integer; begin A := 5; A:= 25 - A*2; ShowMessage(IntToStr(A))

    Correct Answer(s)
    15
    Explanation
    The code assigns the value 5 to the variable A. Then it calculates 25 - A*2, which is 25 - 5*2 = 25 - 10 = 15. Finally, it displays the value of A, which is 15, in a message box.

    Rate this question:

  • 5. 

    Величина - це…

    • A. 

      константа

    • B. 

      значення змінної

    • C. 

      назва змінної

    • D. 

      окремий інформаційний об’єкт

    Correct Answer
    D. окремий інформаційний об’єкт
    Explanation
    A величина (variable) is a separate informational object in programming. It refers to a specific piece of data that can be stored and manipulated within a program. In this context, "величина" is being used to describe a variable as an individual unit of information.

    Rate this question:

  • 6. 

    Вид величини - це…

    • A. 

      константа або змінна

    • B. 

      множина допустимих значень величини

    • C. 

      назва, що вільно обирається програмістом для елементів програми 

    • D. 

      спосіб використання величини в алгоритмі

    Correct Answer(s)
    A. константа або змінна
    D. спосіб використання величини в алгоритмі
    Explanation
    The correct answer is "константа або змінна" and "спосіб використання величини в алгоритмі". This is because a величини (variable) can be a constant or a variable, and the way the величини is used in an algorithm can vary depending on the specific algorithm being implemented.

    Rate this question:

  • 7. 

    Var X, Y: Integer; Чому дорівнює значення Х після виконання послідовності присвоювань:  Х := 10; Y := 3*Х; Х := Х + Y;

    Correct Answer(s)
    40
    Explanation
    The value of X after the sequence of assignments is 40. Initially, X is assigned the value of 10. Then, Y is assigned the value of 3 times X, which is 30. Finally, X is assigned the value of X plus Y, which is 10 plus 30, resulting in X being 40.

    Rate this question:

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.