Which of these is a primitive data type used to store a single keyboard character such as 'A' or '?'?
Pearson Edexcel GCSE (9-1) · Computer Science (1CP2)
Data types and structures:練習問題
その場で採点される選択問題 5 問と、解説つきの記述問題 5 問。すべて「Data types and structures」からの出題です。
What would be the result of a substring operation on the string "ComputerScience" if the parameters were substring(4, 3) (using 0-based indexing where 4 is the start index and 3 is the length)?
A programmer needs to store data about a book, including its Title (String), Price (Real), and IsAvailable (Boolean). Which data structure allows these different data types to be stored together as a single entity?
Which of the following is considered a primitive data type used in programming?
A programmer needs to store a collection of 50 student names. Which data structure is most appropriate for storing this data under a single identifier?
State the most appropriate primitive data type for storing whether a user has agreed to the terms and conditions of a website.
まず自分で答えを書いてから、解説と照らし合わせましょう。
A program needs to store the names of 30 students in a class. Identify the most efficient data structure to use and state its dimension.
まず自分で答えを書いてから、解説と照らし合わせましょう。
Given a string variable \( S = "Edexcel" \), determine the result of a substring operation that extracts 4 characters starting from index 2.
まず自分で答えを書いてから、解説と照らし合わせましょう。
A programmer is writing a script to calculate the area of a circle. The user needs to provide the radius as a decimal number.
(a) Identify the most appropriate data type for the variable radius.
(b) Write a line of code that takes a user's input and stores it as this data type.
まず自分で答えを書いてから、解説と照らし合わせましょう。
An array named scores contains the following values: [45, 67, 12, 89, 34].
(a) State the 0-based index of the value 12.
(b) Write a pseudocode loop that iterates through every item in this array and outputs only scores greater than 50.
(c) Identify the data structure used for scores and state if it is static or dynamic in typical implementation.
まず自分で答えを書いてから、解説と照らし合わせましょう。
※ thinkaのコンテンツはAIにより生成されているため、内容が正確でない場合があります。補助教材としてご使用いただき、公式の教材と合わせてご確認ください。
模範解答は見ました。次はあなたの答案を採点します。
このページは良い答案の形を示せますが、あなたの答案に何が足りないかは教えられません。thinka は実際の採点基準に沿って記述答案を約 15 秒で採点します。
同じような問題をもっと解きたい?このトピックの新しい問題を、解きながら採点。
練習を始める