Looking for G10 Information Technology 2025-01 test answers and solutions? Browse our comprehensive collection of verified answers for G10 Information Technology 2025-01 at campus.uctonlinehighschool.com.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What does the following code snippet do:
var
i: integer;
begin
for i := 1 to 5 do
Memo1.Lines.Add(IntToStr(i));
end;
What will be the output of the following code snippet?
var
num1, num2, result: integer;
begin
num1 := 15;
num2 := 10;
if (num1 > num2) and (num1 mod 2 = 0) then
Memo1.Lines.Add('num1 is greater than num2 and even.')
else if (num1 > num2) and (num1 mod 2 <> 0) then
Memo1.Lines.Add('num1 is greater than num2 but odd.')
else
Memo1.Lines.Add('num1 is not greater than num2.');
end;
Consider the following code snippet:
var
i, sum: integer;
begin
sum := 0;
for i := 1 to 10 do
sum := sum + i;
Memo1.Lines.Add('Sum of numbers from 1 to 10: ' + IntToStr(sum));
end;
What will be the output of the code snippet?
What does the following code snippet do?
procedure TForm1.btnSubmitClick(Sender: TObject);
var
inputText: string;
begin
inputText := edtInput.Text;
if inputText = 'Delphi' then
Memo1.Lines.Add('Welcome to Delphi programming!')
else
Memo1.Lines.Add('Incorrect input. Please try again.');
end;
Please note: Refer to the timer on The Invigilator Web Browser to see how much time you have left to write and upload your paper.
Download your Cycle test question paper by clicking here.
Download your data files by clicking here.
Video: How to extract files.
Spend the first 10 minutes reading through your question paper.
Complete your answers in the files provided.
PLEASE NOTE: the submission of Practical tests is slightly different to Theory tests.
Once you've answered all questions in this Practical test:
What triggers the FormShow event in the following code snippet?
procedure TfrmShapeSpaceCalc.btnBackClick(Sender: TObject);
begin
frmShapeSpaceCalc.FormShow(frmShapeSpaceCalc);
end;
Which event is triggered when the Calculate button is clicked?
What is the purpose of the following code snippet?
procedure TfrmShapeSpaceCalc.img2DClick(Sender: TObject);begin lblInstruction.Caption := 'Select the geometric shape for which you would like to calculate the area.'; img2D.Visible := False; img3D.Visible := False; pnlShapes.Top := PANEL_TOP; pnlShapes.Left := PANEL_LEFT; pnlShapes.Visible := True; pnlObjects.Visible := False; btnBack.Visible := True; btnBack.Enabled := True;end;
Which option is an example of a component in the context of a software solution?
How do acceptance tests help stakeholders in the software development process?