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 วินาที
อยากฝึกโจทย์แบบนี้เพิ่มไหม เริ่มฝึกหัวข้อนี้ได้เลย ตรวจให้ทันทีทุกข้อ
เริ่มฝึกเลย