Next Article in Journal
Influence of New-Type Industrialization on High-End Manufacturing Industry: Discussion Examining Threshold Effect of Industrial Chain Resilience
Previous Article in Journal
Ecosystem Service Value Dynamics in the Yellow River Delta National Nature Reserve, China: Conservation Implications from Two Decades of Change
Previous Article in Special Issue
Self-Assessment Guide to Quality in Accessible Virtual Education: An Expert Validation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Promoting Sustainable Education Through the Educational Software Scratch: Enhancing Attention Span Among Primary School Students in the Context of Sustainable Development Goal (SDG) 4

Department of Information Technology, Technical Faculty Mihajlo Pupin Zrenjanin, University of Novi Sad, 23000 Zrenjanin, Serbia
*
Author to whom correspondence should be addressed.
Sustainability 2025, 17(20), 9292; https://doi.org/10.3390/su17209292 (registering DOI)
Submission received: 14 September 2025 / Revised: 12 October 2025 / Accepted: 15 October 2025 / Published: 20 October 2025
(This article belongs to the Special Issue Sustainable E-Learning and Educational Technology)

Abstract

Achieving Sustainable Development Goal 4 (Quality Education) requires innovative and inclusive approaches that sustain attention, foster engagement, and build digital literacy in primary education. This study examined the impact of Scratch on sustaining attention among third- and fourth-grade students (ages 9–11). A total of 89 students participated, divided into control and experimental groups, to evaluate the effects of integrating Scratch into classroom activities. Data were collected through anonymous surveys with parental consent and analyzed using nonparametric statistical tests. The results showed that Scratch-based instruction enhanced sustained attention, particularly in interactive and digital activities such as active participation, video, and web-based tasks. In contrast, traditional textbook and workbook tasks showed weaker effects. Scratch also reduced common reasons for attention loss, with significant decreases in perceptions of excessive lesson length and loss of interest. Gender differences were minimal, confirming Scratch’s inclusivity, and strong correlations between problem-solving activities indicated that engagement, collaboration, and multimedia tasks mutually reinforce attention. These findings provide empirical support for Scratch as a tool that sustains attention, reduces disengagement, and promotes equity in learning. Although limited by reliance on self-reported data and a single educational context, the study offers evidence that Scratch advances innovative pedagogy aligned with SDG 4.

1. Introduction

Education for Sustainable Development (ESD) is a global priority emphasized by the United Nations through Sustainable Development Goal 4 (SDG 4), which aims to ensure inclusive and equitable quality education and promote lifelong learning opportunities for all. In the context of primary education, ESD involves not only the transfer of knowledge but also the cultivation of skills such as creativity, problem-solving, and sustained attention. One of the major challenges in contemporary classrooms is the rapid decline in students’ attention spans, which research has shown typically lasts only 10–15 min during a lesson [1,2]. This problem poses significant obstacles to effective teaching and learning [3,4].
Recent years have witnessed a growing interest in integrating digital tools and programming environments into primary education as a way of addressing these challenges. Scratch, a block-based programming language designed for children, has been widely adopted in schools due to its accessibility and potential to foster creativity, problem-solving, and computational thinking [5,6,7,8,9,10,11,12]. Previous research has demonstrated its value in supporting interdisciplinary learning and encouraging student engagement across diverse subjects [13,14,15,16]. However, while Scratch has been investigated in relation to creativity and problem-solving [5,6,7,8], its specific impact on maintaining or extending students’ attention spans has received considerably less attention in the literature [4,17,18]. This represents a gap that the present study seeks to address.
The contribution of this research is therefore twofold: (1) to explore whether using Scratch can enhance and sustain primary school students’ attention during classroom activities and (2) to investigate whether factors such as gender and problem-solving tasks influence this effect. By situating the study within the broader framework of SDG 4, we emphasize the relevance of digital tools like Scratch in promoting sustainable and inclusive educational practices.
The study was conducted among third- and fourth–grade primary school students in Novi Sad, Serbia, in June 2025. This context provides an opportunity to examine the role of Scratch in a specific educational setting while also contributing findings that may be applicable more broadly.
In this paper, the research objectives and guiding questions are introduced in the Section 1 while the formal hypotheses are presented in detail in the Section 3 to avoid redundancy.

2. Theoretical and Empirical Background on Scratch in Primary Education

Scratch, a block-based programming environment, has been widely adopted in primary education for introducing core concepts of programming and computational thinking. Across studies, Scratch is associated with gains in computational thinking, student motivation, and cross-curricular learning, though evidence on its direct impact on sustained attention is still limited.
Computational thinking and conceptual learning are areas in which Scratch is found to be useful, as a tool that encourages further development of these skills and their implementation in education settings. Systematic reviews and empirical studies report that Scratch can scaffold computational thinking practices (e.g., sequencing, abstraction and decomposition) in primary classrooms [6,8,19]. Classroom implementations and design-based studies further indicate that Scratch supports conceptual learning in mathematics and science by enabling students to externalize and test ideas through code artifacts [10,14,20]. Scratch projects are also useful tools for the evaluation of the computational thinking abilities of students [21]. The adaptability of Scratch for different levels of computational thinking is acknowledged in [22], where it is stated that by using Scratch, teachers can create more effective institutional and learning objectives to support students’ learning, as Scratch can be used for both “low-floor” and “high-ceiling” projects. Computational thinking is important as it is recognized for improving science literacy and consequently advancing SDG 4 [23]. Developing computational thinking and conceptual learning enhances students’ ability to acquire and develop problem-solving skills. By positively influencing the development of these skills, Scratch can lead to the needed changes in education.
The influence of Scratch on education is further supported by its cross-curricular application, which enables the benefits of using this tool in classes to be applied across various subjects. Scratch has been integrated across subjects (mathematics, science, language arts, and the arts), often within constructionist or project-based pedagogies that emphasize making and iteration [7,10,14,20,21,22,24]. Case studies over multiple schools highlight the feasibility and teacher uptake when Scratch is embedded into the regular curriculum rather than treated as an extracurricular add-on [7]. Design work with pre-service teachers shows how task structures, scaffolds, and assessment rubrics can align Scratch projects with curriculum goals [9]. The integration across disciplines supports SDG 4, especially Target 4.7, which emphasizes education for sustainable development, global citizenship, and appreciation of cultural diversity.
Due to previously stated attributes of Scratch, its impact on motivation, engagement, and creativity should be taken into account as an additional benefit that can result from its usage in classes. Multiple studies find that creating with Scratch relates to higher motivation, enjoyment, and self-expression, including through digital storytelling and game-based tasks [5,11,13,15]. Studies on teachers’ acceptance suggest generally positive perceptions of Scratch’s usefulness and ease of integration in instruction [25,26]. However, some findings are mixed regarding near-term transfer to problem-solving performance; in at least one study, learners reported enjoyment and interest without significant measured gains on problem-solving tests [5]. From the perspective of SDG 4, using Scratch is appealing, as it increases motivation, engagement, and creativity and aligns with Target 4.7 (education for sustainable development and global citizenship) and Target 4.4 (acquiring relevant skills for financial success). To achieve these goals and align education with the set Targets, it is of fundamental importance to foster collaboration and provide equal opportunities for all students. One of the major benefits of Scratch is that it provides equal opportunities for all students. Opportunities to work collaboratively provide great support to students for developing problem-solving skills and preparing for real-life tasks. Pair-programming and collaborative project work in Scratch have been linked to sustained motivation and comparable performance across genders, suggesting potential for equitable participation in computing activities [27]. Instruments developed to measure teachers’ perceptions of Scratch’s contribution to programming instruction also point to broad support for its collaborative affordances [26]. When students work on collaborative Scratch projects, they can incorporate their backgrounds and interests, catering to diverse learning styles [28]. These findings suggest that the benefits of using Scratch are connected and that one change introduced by Scratch in education leads to other positive changes. Collaborative activities lead to more equal education and increase students’ awareness of diversity in education. Scratch influences equality in education directly as well. Using Scratch is a good model for equality because it lowers barriers (such as geography and resources) and supports inclusive practices [29]. Scratch-based collaborative learning and impact on equality directly support Target 4.1 (free primary and secondary education), which refers to quality education available for all, Target 4.4 (relevant skills for financial success), Target 4.5 (eliminate all discrimination in education), and Target 4.7 (education for sustainable development and global citizenship).
SDG 4’s Target 4.2 (equal access to quality pre-primary education) explicitly underscores the importance of early childhood development, care, and pre-primary education. Scratch can support this goal by allowing the introduction of technology early in education, thereby strengthening the development of problem-solving skills. ScratchJr extends block-based creation to early childhood (ages 5–7), laying the groundwork for a developmental pathway into later Scratch activities and fostering early digital literacy [30]. Studies using Scratch with younger learners emphasize playful creation and narrative as bridges to foundational computational concepts [11,30]. Already, with a focus on these positive outcomes, it can be noted that Scratch, when implemented properly in education, can lead to deep and systematic changes that result in greater alignment with SDG 4. Scratch is an important tool as it goes beyond general computing skills. Scratch has been used to teach or reinforce domain-specific content, including mathematics (reasoning, representation, and problem structuring) [10], physics (e.g., dynamics and mechanics through simulation/animation) [20], and language learning (dialogue creation and multimodal composition) [13]. Additional reports document applications in engineering education via problem-based game projects [16] and teacher education contexts [9,24]. The possibility of its narrowed usage allows addressing adjusted goals in education to the concrete needs of the students in the classroom.
An area of special interest is the attention span among students and the role of Scratch in addressing challenges that arise from decreased attention span. A broader body of research emphasizes that maintaining students’ attention in class remains a persistent challenge. Studies consistently show that student attention tends to decline after 10–15 min of instruction, highlighting the difficulty of sustaining engagement during lessons [1,2]. Teachers and students themselves report that loss of focus and attention problems are common in the classroom environment [3]. These findings state the problem that needs to be resolved. Innovative solutions are discussed as a potential path towards addressing the problem of maintaining attention during lessons. The digitalization of classes is noted as one possible solution. Well-designed digital activities—such as robotics, storytelling with audiovisual support, and adaptive educational software—have been shown to positively influence students’ focus and on-task behavior [4,17,18,31]. Local research on educational software also points to its broader impact on the effectiveness of teaching and learning models [32], reinforcing the relevance of integrating digital tools into primary education.
Within the Scratch literature, however, direct measurement of sustained attention (e.g., frequency or duration of lapses and self-reports triangulated with observation) remains comparatively underexplored. Most studies predominantly report on motivation, engagement, creativity, or problem-solving outcomes rather than fine-grained attention metrics [5,6,7,8,9,10,11,13,15,16,19,27,33]. This leaves a gap that should be further addressed, as due to the main characteristics of Scratch, it is justified to assume that its usage in classes can influence attention span, focusing mostly on its capacity to increase student motivation and engagement. This gap motivates the present study’s focus on whether—and under which conditions—Scratch activities are associated with increased attention during lessons, in alignment with SDG 4’s emphasis on inclusive and effective learning environments.

3. Materials and Methods

In this paper, both qualitative and quantitative approaches were employed to provide a comprehensive analysis of the research questions regarding the impact of Scratch on students’ attention spans. Observation dates were coordinated with school staff, and class sizes are detailed in the Supplementary Materials. The research was conducted over 12 sessions, including six sessions for the fourth-grade students (three experimental and three control) and six for the third-grade students. The first series of lessons was conducted traditionally, without the use of educational software (control group), while the second series incorporated the Scratch educational software (experimental group). At the outset, students were informed that their responses would remain confidential, and parents were fully briefed on the study’s purpose. This approach aligns with SDG 4: Quality Education, emphasizing the use of inclusive and innovative digital tools to enhance learning outcomes.
Students from the 3rd and 4th grades of primary school in Novi Sad, Serbia, were included in the study. Each grade was divided into a control group and an experimental group. Parental consent was obtained prior to participation to ensure ethical compliance and the protection of minors. The design allows for a controlled comparison of Scratch’s effect on attention span across different age groups.
The questionnaire was adapted from [34] to align with the age of the respondents, the subject matter, and the study’s goals. While self-assessment instruments have inherent limitations, these were minimized given the simplicity and clarity of the items. Participation was anonymous, and students were clearly instructed on how to complete the questionnaire. Two items addressing loss of attention (“I’m bored with programming” and “I wonder what’s the point of programming”) were based on [2] and included on a Likert scale to quantify student experiences. This instrument directly supports testing the research’s hypotheses (H1–H3) regarding Scratch’s effect on attention span, potential gender differences, and the role of problem-solving activities.
Quantitative data were analyzed using both descriptive and inferential statistics. For Likert-scale items, frequency distributions, medians, and interquartile ranges were reported in line with recommendations for ordinal data [35,36]. To compare control and experimental groups, the Mann–Whitney U test was employed as a nonparametric alternative to the independent t-test. Internal consistency of the questionnaire was assessed using Cronbach’s alpha. For effect size, the probability of superiority statistic was calculated [35], providing an interpretable measure of group differences for nonparametric data. All analyses were conducted in SPSS 30.0 and JASP 0.19.2.0.
Qualitative data from interviews were analyzed thematically and comparatively to evaluate differences between groups, providing further insight into students’ experiences.
The methodology allows for testing the following hypotheses:
H1. 
The use of Scratch increases the time until students’ attention is interrupted in informatics classes.
H2. 
The effect of Scratch on attention span does not differ depending on student gender.
H3. 
Problem-solving activities in Scratch are positively associated with increases in attention span.
This combined quantitative and qualitative approach ensures a rigorous evaluation of Scratch as an educational tool, its potential to sustain student attention, and its contribution to inclusive and innovative learning environments. The study’s design directly aligns with SDG 4: Quality Education by investigating the effectiveness of digital educational tools in promoting student engagement, critical thinking, and equitable learning opportunities.

4. Results

A total of 89 respondents participated in the research, including 50 male respondents and 39 female respondents. The respondents were third and fourth graders, comprising 45 third graders and 44 fourth graders.
The participants were divided into two groups: the control group and the experimental group. The design was applied in both grades. As a result, the findings of this research can be applied to students in both third and fourth grades. Additionally, the results can be compared across genders to identify any differences that should be considered when evaluating the impact of using the Scratch educational program in the classroom. In the third grade, there were 21 students in the control group and 24 students in the experimental group, while in the fourth grade, there were 22 students in both groups (control and experimental).
The results of the research provide significant insights into the effects of Scratch on sustained attention. The reliability analysis indicated that both instruments demonstrated excellent internal consistency. For the learning activities (LA) scale, which measured attention across classroom activities (LA1–LA8), Cronbach’s Alpha was 0.946, based on eight items. This result suggests that the items were highly consistent and measured the same underlying construct of perceived attention during different learning tasks. For the R scale, which captured reasons for attention loss (R1–R14), Cronbach’s Alpha reached 0.978 across fourteen items. Such a high coefficient confirms very strong internal consistency, though it may also indicate some redundancy among the items, as several questions may reflect similar aspects of disengagement. Overall, these findings confirm that both instruments are highly reliable, providing a solid basis for subsequent analyses and interpretations.
The descriptive statistics based on medians and interquartile ranges (IQRs) provide a clear picture of how students in different groups perceived various classroom activities with respect to sustaining attention (see Table 1).
Responses to the teacher’s questions (LA1) were consistently rated at a moderate level across all groups (Median = 3, IQR = 0), suggesting stable perceptions with no variability. This stability implies that teacher questioning maintained a uniform level of engagement among students. Oral explanations of the material (LA2) received the lowest ratings (Median = 2) in all groups, with higher variability in the control groups (IQR = 2) compared to the experimental groups (IQR = 1). These findings suggest that teacher-centered explanations were generally perceived as less engaging, whereas the use of digital tools in experimental settings appeared to yield more consistent evaluations.
When examining more interactive forms of learning, activities involving active participation (LA3) were rated highest (Median = 4) across all groups, confirming that interactive learning strongly sustains attention. However, the experimental groups displayed greater variability (IQR = 2) than the control groups (IQR = 1), suggesting that while interactive approaches were broadly effective, individual differences influenced students’ levels of engagement. Turning to more traditional learning resources, the textbook (LA4) and workbook tasks (LA5) generally received moderate ratings (Median = 3). Still, the third-grade experimental group rated textbook tasks lower (Median = 2), which may reflect a decline in the perceived relevance of traditional assignments when digital tools are incorporated into instruction. A comparable pattern was observed in group tasks (LA6), which were also rated moderately (Median = 3), with higher variability in control groups (IQR = 2) compared to experimental ones (IQR = 1). This finding suggests that Scratch-supported tasks provided more consistent engagement in collaborative settings. Similarly, video activities (LA7) were generally rated highly (Median = 4), except in the 4th-grade control group, where the median dropped to 3. This difference highlights the added value of integrating digital tools to enhance attentional focus. Finally, web-based activities (LA8) received consistently high ratings (Median = 4, IQR = 1) across all groups, indicating strong and stable engagement with online content.
Overall, these results demonstrate that interactive and digital activities, such as active participation, video tasks, and web-based tasks, are most effective in sustaining student attention. In contrast, traditional methods, including oral explanations and textbook tasks, are less engaging. Experimental groups consistently showed lower variability in responses, pointing to the stabilizing effect of Scratch and digital approaches on students’ perception of attentional focus.
As it has been established that Scratch has a positive impact on attention span and contributes to helping students maintain their attention, it is important to analyze whether there is a difference in this influence among genders. The results show that median values for male and female students were nearly identical across most activities, suggesting that gender does not significantly influence sustained attention (see Table 2).
For LA1 (Responses to teacher’s questions), both groups had a median of 3, with slightly greater variability among boys (IQR = 1) compared to girls (IQR = 0). This difference was not statistically significant (p = 0.443). For LA2 (Oral explanations), the median remained low (2) for both genders, with an equal IQR = 1. Although girls’ responses were somewhat more consistent, the difference was not significant (p = 0.090). In LA3 (Active Participation Tasks), both groups reported a median score of 4. Still, variability was higher among boys (IQR = 2) compared to girls (IQR = 1), indicating that girls rated these tasks more consistently as sustaining attention. The difference was not statistically significant (p = 0.292). For LA4 and LA5 (Tasks from textbooks and Workbook tasks), the median value was 3 in both groups. Girls’ responses were more uniform (IQR = 0) compared to boys (IQR = 1), but the differences, although approaching significance in LA4 (p = 0.081), were not statistically confirmed. In LA6 (Group tasks), both genders had a median of 3, with boys again showing greater variability (IQR = 2 vs. 1). The p-value (0.072) indicated that the difference was close to significance but did not reach the conventional threshold of statistical significance. For LA7 (Video activities), both genders rated these activities highly (median = 4, IQR = 1), with no significant difference (p = 0.143).
The only statistically significant difference was observed for LA8 (Web activities). Both groups reported the same median (4) and IQR (1), but the p-value (p = 0.032) indicates that girls rated web-based activities as more effective for sustaining attention compared to boys.
Overall, the results reveal a consistent pattern across activities, suggesting that gender does not significantly influence students’ attention during most tasks. The single significant result for web-based activities (LA8) highlights that girls may find technology-supported activities more engaging or better aligned with their learning preferences. These findings provide sufficient evidence to support H2, suggesting the need to further explore whether there is a fundamental difference in digital activity types.
The Mann–Whitney U test was conducted to examine potential gender differences in students’ attention across the measured activities (LA1–LA8). The results showed that there were no statistically significant differences between male and female students for most variables (p > 0.05) (see Table 3). The only exception was observed for LA8 (web activities), where female students demonstrated slightly higher levels of attention compared to male students (U = 737.5, Z = −2.15, p = 0.032).
These findings suggest that gender did not systematically influence attention in the observed learning activities, thereby supporting Hypothesis H2. The observed difference in web-based activities may be interpreted as a task-specific effect rather than a general trend. This aligns with previous literature indicating that Scratch and similar digital learning environments foster equitable participation across genders [26,27].
The research connected problem-solving skills and attention span among students. Spearman’s rank correlation was conducted on problem-solving activities (LA3, LA6, LA7, and LA8) to examine their associations with sustained attention (see Table 4). The strength of correlation coefficients was interpreted using the conventional thresholds proposed by Cohen: ρ < 0.30 indicates a weak correlation, 0.30–0.50 a moderate correlation, 0.50–0.70 a strong correlation, and values above 0.70 a very strong correlation [37].
The analysis of Spearman correlations between problem-solving activities (LA3, LA6, LA7, and LA8) revealed uniformly positive and statistically significant associations (p < 0.01). The strongest correlation was observed between active participation tasks (LA3) and group work (LA6), with a very strong coefficient (ρ = 0.840), indicating that students who remained attentive during individual active tasks were also highly engaged in collaborative activities. Similarly, very strong correlations were found between LA3 and LA8 (ρ = 0.762), LA6 and LA8 (ρ = 0.774), and LA7 and LA8 (ρ = 0.714), suggesting that attention in problem-solving contexts extends consistently to multimedia and web-based activities. Strong correlations were also observed between LA3 and LA7 (ρ = 0.602) and between LA6 and LA7 (ρ = 0.681), highlighting the reinforcing role of video materials in sustaining focus during active and collaborative tasks.
Overall, these results indicate that problem-solving activities supported by Scratch not only maintain attention but also show a coherent pattern of reinforcement across task types. The convergence of very strong correlations underscores that students’ sustained attention is mutually supported when learning combines active participation, collaboration, and multimedia elements. This provides robust evidence in support of H3, confirming that Scratch-based problem-solving activities are positively and strongly associated with increased attention span.
To further understand the dynamics of students’ attention, the analysis is focused on the factors that contribute to attention loss. Examining these reasons complements the previous findings by highlighting not only when attention is sustained but also the circumstances under which it may waver. The analysis of median and interquartile range (IQR) values for reasons of attention loss (R1–R14) revealed that most reasons were reported at moderate levels (Mdn = 2), indicating that students did not frequently experience strong distractions during lessons (see Table 5). The most prevalent reasons were R2—Thinking about other things and R4—I was bored, both with a median of 3, suggesting that distraction and boredom were the most common causes of attention loss.
Notably, several items demonstrated differences between the control and experimental groups. For R4 (boredom), R5 (lesson was too long), and R8 (loss of interest), the control groups reported higher medians (3) compared to the experimental groups (Mdn = 2), with narrower IQR values in the experimental groups. This indicates that students in the control condition experienced boredom and loss of interest more frequently. At the same time, those in the Scratch-based experimental groups reported these reasons less often and more consistently. For the remaining items (R1, R3, and R6–R14), the median remained at two across groups, suggesting that Scratch had no substantial impact on factors such as difficulty in following the content, familiarity with the material, or perceiving the lesson as a waste of time.
Overall, the findings highlight distraction (R2) and boredom (R4) as the most critical challenges to maintaining attention. However, the use of Scratch appeared to mitigate some typical reasons for disengagement, particularly reducing boredom, perceptions of excessive lesson length, and loss of interest. These results provide additional support for Hypothesis H1, suggesting that Scratch-based instruction fosters more sustained and focused attention compared to traditional teaching.
The Kruskal–Wallis test was conducted to examine group differences in reasons for attention loss (R1–R14) across the four groups (third-grade control, third-grade experimental, fourth-grade control, and fourth-grade experimental) (see Table 6). The results showed that for most items, including R1 (unclear focus), R2 (thinking about other things), R3 (difficult to follow), R4 (boredom), R6 (already familiar), R7 (waste of time), and R9–R14, there were no statistically significant differences between groups (p > 0.05).
However, two items reached statistical significance. For R5 (It was too long for me), the Kruskal–Wallis test indicated a significant difference between groups (χ2 ≈ 9.2, p = 0.026). Similarly, for R8 (I lost interest), a significant difference was found (χ2 ≈ 10.7, p = 0.014). In both cases, the experimental groups reported lower median values and narrower IQRs compared to the control groups, suggesting that Scratch-based instruction reduced perceptions of lessons being too long and decreased reports of lost interest.
These findings indicate that while most reasons for attention loss were reported similarly across groups, Scratch-based teaching had a significant impact on mitigating two of the most common negative experiences related to sustained attention. This provides additional empirical support for Hypothesis H1 by showing that experimental groups experienced fewer interruptions in attention due to boredom and disinterest.

5. Discussion

5.1. Sustained Attention and Hypothesis H1

The analysis of medians and interquartile ranges (IQRs) for attention-related items (LA1–LA8) revealed that Scratch-based instruction supported more stable and sustained attention compared to traditional approaches. Interactive and digital tasks, particularly active participation (LA3), video (LA7), and web-based activities (LA8), consistently received higher or equal median scores in the experimental groups, with narrower IQRs. This indicates that students’ attention was not only sustained for longer but also perceived more uniformly. In contrast, traditional tasks such as textbook (LA4) and workbook activities (LA5) showed weaker effects, highlighting Scratch’s strongest impact in interactive contexts. Although attention was measured through self-reports rather than direct observation, these consistent advantages provide supportive evidence for H1. These findings align with previous research showing that digital and interactive learning environments enhance focus and engagement [2,3,4].

5.2. Gender Differences and Hypothesis H2

The analysis of gender differences revealed no statistically significant variation in attention between male and female students for most items (LA1–LA7). This supports H2, which proposed that Scratch’s effects on attention span are not gender-dependent. The only exception was LA8 (web activities), where female students reported slightly higher attention than male peers (U = 737.5, Z = −2.15, p = 0.032). This isolated difference may reflect task-specific preferences rather than a general gender effect. The overall pattern aligns with prior studies that emphasize Scratch’s capacity to foster equitable participation across genders and reduce traditional gender gaps in computing education [26,27]. Other findings suggest that both boys and girls can engage equally in creative and collaborative tasks when digital tools are integrated [5,13,15].

5.3. Problem-Solving Activities and Hypothesis H3

Spearman’s rank correlations demonstrated that Scratch-based problem-solving activities were strongly and significantly associated with sustained attention. Very strong correlations were found between active participation (LA3) and group work (LA6), as well as between these items and multimedia tasks such as video (LA7) and web-based activities (LA8). These results suggest that attention is mutually reinforced when problem-solving involves integrating individual engagement, collaboration, and digital resources. Prior research similarly highlights that Scratch promotes inclusive, cooperative, and creative learning environments [26,27], while multimedia and digital storytelling approaches have been shown to strengthen focus and motivation [5,11,15]. The present findings therefore support H3, reinforcing the idea that problem-solving activities in Scratch effectively sustain attention and reduce disengagement.

5.4. Reasons for Attention Loss

The analysis of reasons for attention loss (R1–R14) offered complementary insights. The most frequent reasons were thinking about other things (R2) and boredom (R4), which are consistent with prior findings on natural fluctuations of attention in classroom environments [1,2,3]. Significant group differences were detected for R5 (“it was too long for me”) and R8 (“I lost interest”), with experimental groups reporting lower medians and narrower IQRs. This suggests that Scratch reduced both boredom and loss of interest, two of the most common causes of disengagement. These results align with studies showing that digital, game-based, and multimedia approaches enhance motivation and mitigate attention fatigue [4,13,15]. Nonetheless, the persistence of R2 across all groups highlights that some degree of attentional lapse is unavoidable, reflecting natural cognitive dynamics such as mind-wandering [31].
Taken together, these findings provide strong support for all three hypotheses. Scratch-based instruction increased sustained attention, reduced typical reasons for disengagement, and promoted equitable participation across genders. Moreover, the positive correlations between problem-solving, collaborative, and multimedia activities reinforce Scratch’s potential to support effective and inclusive learning. These results complement existing literature on digital tools in education, showing that Scratch not only fosters creativity and computational thinking but also helps sustain focus in line with the objectives of SDG 4 (Quality Education) [4,7,17,24].

6. Conclusions

This study investigated the impact of Scratch-based learning on sustaining the attention of primary school students during informatics classes. The results consistently showed that interactive and digital activities—such as active participation, video, and web-based tasks—were most effective in maintaining focus. In contrast, traditional approaches, including oral explanations and textbook tasks, elicited lower ratings of attention. These findings provide strong support for Hypothesis H1, indicating that Scratch not only sustains but also stabilizes attention across diverse learning contexts. Moreover, Scratch significantly reduced common reasons for disengagement, particularly perceptions of excessive lesson length (R5) and loss of interest (R8), thereby mitigating two of the most prevalent barriers to sustained attention.
With respect to Hypothesis H2, gender differences in sustained attention were largely absent. Male and female students reported comparable levels of attentional focus across most activities, with only a minor difference in web-based activities (LA8), where girls indicated slightly higher attention. This supports earlier findings that Scratch fosters equitable participation and engagement independent of gender, reinforcing its role in promoting inclusivity in computing education.
Hypothesis H3 was also confirmed. The correlation analysis revealed strong and very strong positive associations between problem-solving activities, particularly between active participation (LA3) and group work (LA6), as well as their links with video (LA7) and web activities (LA8). These results suggest that students’ attention is mutually reinforced when learning combines individual engagement, collaboration, and multimedia resources, highlighting Scratch’s integrative and multimodal potential.
Taken together, the results underline Scratch’s pedagogical value as a tool that not only enhances attention but also fosters equity and collaboration in the classroom. The findings align with Sustainable Development Goal 4 (SDG 4: Quality Education), as Scratch supports inclusive and innovative teaching practices that enhance student motivation and attentional stability.
Nonetheless, some limitations should be acknowledged. The study relied on self-reported measures of attention, which reflect perceptions rather than direct behavioral or neurocognitive evidence. Furthermore, the sample was limited to third- and fourth-grade students in a single educational context, which restricts the generalizability of the findings. Future research should therefore employ mixed-methods and longitudinal designs, incorporate objective measures of attention (e.g., eye-tracking and physiological monitoring), and extend the investigation to additional subjects and age groups.
In conclusion, Scratch demonstrates substantial potential as a digital educational tool for sustaining attention, reducing disengagement, and supporting equity in learning. By embedding problem-solving, collaborative, and multimedia activities into informatics instruction, educators can create more engaging and inclusive classrooms, thereby advancing both pedagogical practice and the global objectives of SDG 4.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/su17209292/s1, Table S1: Lessons and dates.

Author Contributions

Conceptualization, N.T. and D.G.; methodology, N.T. and D.G.; software, S.J.; validation, V.M. and N.L.; formal analysis, K.V.; investigation, N.T., D.G., V.M., N.L. and K.V.; data curation, S.J.; writing—original draft preparation, D.G. and N.T.; writing—review and editing, D.G., V.M. and N.L.; visualization, K.V.; supervision, N.T., S.J. and V.M.; project administration, S.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Republic of Serbia—Autonomous Province of Vojvodina (protocol code 01-835/1 and date of approval is 20 June 2025).

Informed Consent Statement

Informed consent was obtained from the parents or legal guardians of all subjects involved in the study. The survey is anonymous. Individual data remain confidential and are used exclusively for scientific purposes.

Data Availability Statement

All data presented in this research is available upon a request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
dfdegrees of freedom
IQRInterquartile Range
LAsLearning Activities
nsnot significant
SDGSustainable Development Goal

References

  1. Bunce, D.M.; Flens, E.A.; Neiles, K.Y. How Long Can Students Pay Attention in Class? A Study of Student Attention Decline Using Clickers. J. Chem. Educ. 2010, 87, 1438–1443. [Google Scholar] [CrossRef]
  2. Wilson, K.; Korn, J.H. Attention during Lectures: Beyond Ten Minutes. Teach. Psychol. 2007, 34, 85–89. [Google Scholar] [CrossRef]
  3. Cicekci, M.A.; Sadik, F. Teachers’ and Students’ Opinions About Students’ Attention Problems During the Lesson. J. Educ. Learn. 2019, 8, 15. [Google Scholar] [CrossRef]
  4. Vedechkina, M.; Borgonovi, F. A Review of Evidence on the Role of Digital Technology in Shaping Attention and Cognitive Control in Children. Front. Psychol. 2021, 12, 1–22. [Google Scholar] [CrossRef]
  5. Gülbahar, Y.; Kalelioğlu, F. The Effects of Teaching Programming via Scratch on Problem Solving Skills: A Discussion from Learners’ Perspective. Inform. Educ.—Int. J. 2014, 13, 33–50. [Google Scholar]
  6. Fagerlund, J.; Häkkinen, P.; Vesisenaho, M.; Viiri, J. Computational thinking in programming with Scratch in primary schools: A systematic review. Comput. Appl. Eng. Educ. 2020, 29, 12–28. [Google Scholar] [CrossRef]
  7. Sáez-López, J.-M.; Román-González, M.; Vázquez-Cano, E. Visual programming languages integrated across the curriculum in elementary school: A two-year case study using “Scratch” in five schools. Comput. Educ. 2016, 97, 129–141. [Google Scholar] [CrossRef]
  8. Moreno-León, J.; Robles, G. Code to learn with Scratch? A systematic literature review. In Proceedings of the IEEE Global Engineering Education Conference (EDUCON), Abu Dhabi, United Arab Emirates, 10–13 April 2016; pp. 150–156. [Google Scholar]
  9. Vaca-Cardenas, A.L.; Bertacchini, F.; Tavernise, A.; Gabriele, L.; Valenti, A.; Elizabeth, D.; Pantano, P.; Bilotta, E. Coding with Scratch: The design of an educational setting for Elementary pre-service teachers. In Proceedings of the International Conference on Interactive Collaborative Learning, Firenze, Italy, 20–24 September 2015; pp. 1171–1177. [Google Scholar]
  10. Calder, N. Using Scratch to Facilitate Mathematical Thinking. Waikato J. Educ. 2018, 23, 43–58. [Google Scholar] [CrossRef]
  11. Parsazadeh, N.; Cheng, P.-Y.; Wu, T.-T.; Huang, Y.-M. Integrating Computational Thinking Concept into Digital Storytelling to Improve Learners’ Motivation and Performance. J. Educ. Comput. Res. 2020, 59, 470–495. [Google Scholar] [CrossRef]
  12. Karakaya Cirit, D. Coding in Preschool Science and Mathematics Teaching: Analysis of Scratch Projects of Undergraduate Students. Int. J. Contemp. Educ. Res. 2022, 9, 460–475. [Google Scholar] [CrossRef]
  13. Liu, K.-P.; Tai, S.-J.D.; Liu, C.-C. Enhancing language learning through creation: The effect of digital storytelling on student learning motivation and performance in a school English course. Educ. Technol. Res. Dev. 2018, 66, 913–935. [Google Scholar] [CrossRef]
  14. Svensson, K.; Eriksson, U.; Pendrill, A.-M. Programming and its affordances for physics education: A social semiotic and variation theory approach to learning physics. Phys. Rev. Phys. Educ. Res. 2020, 16, 010127. [Google Scholar] [CrossRef]
  15. Su, Y.-S.; Shao, M.; Zhao, L. Effect of Mind Mapping on Creative Thinking of Children in Scratch Visual Programming Education. J. Educ. Comput. Res. 2021, 60, 906–929. [Google Scholar] [CrossRef]
  16. Topalli, D.; Cagiltay, N.E. Improving programming skills in engineering education through problem-based game projects with Scratch. Comput. Educ. 2018, 120, 64–74. [Google Scholar] [CrossRef]
  17. Fernández-Batanero, J.M.; Piñero-Virué, R.; Rodríguez-González, C.A.; Reyes-Rebollo, M.M. Educational Robotics and Attention to Diversity: A Case Study. Eur. J. Educ. Res. 2020, 11, 739–749. [Google Scholar] [CrossRef]
  18. Bartan, M. The use of storytelling methods by teachers and their effects on children understanding and attention span. Southeast Asia Early Child. J. 2020, 9, 75–84. [Google Scholar] [CrossRef]
  19. Oluk, A.; Korkmaz, Ö. Comparing Students’ Scratch Skills with Their Computational Thinking Skills in Terms of Different Variables. Int. J. Mod. Educ. Comput. Sci. 2017, 8, 1–7. [Google Scholar] [CrossRef]
  20. Noftiana; Nasir, M.; Islami, N. Developmental Scratch-Based Online Learning Media in Dynamic Electric Dynamic Topic to Increase Students Concept Understanding in Students Junior High School. J. Phys. Conf. Ser. 2019, 1351, 012014. [Google Scholar]
  21. Stewart, W.; Beak, K. Analyzing Computational Thinking Studies in Scratch Programming: A Review of Elementary Education Literature. Int. J. Comput. Sci. Educ. Sch. 2023, 6, 35–58. [Google Scholar] [CrossRef]
  22. Erwinsyah, A.; Yusuf, M.F.; Laliyo, A.R.L.; Mursalin; Riumkina, I. Research Trends of Computational Thinking for Advancing Sustainable Development Goals (SDGs) In Science Learning: Bibliometric Analysis. J. Pendidik. IPA Indones. 2025, 14, 337–350. [Google Scholar] [CrossRef]
  23. Huang, J. Parsing the Use of Computational Concepts with Scratch Projects. In Proceedings of the 17th International Conference on Computer-Supported Collaborative Learning—CSCL, Buffalo, NY, USA, 10–14 June 2024; pp. 293–296. [Google Scholar]
  24. Iyamuremye, A.; Nsabayezu, E. Mathematics and Science Teacher’s Conception and Reflection on Computer Programming with Scratch: Technological and Pedagogical Standpoint. Int. J. Educ. Train. Learn. 2022, 6, 11–16. [Google Scholar] [CrossRef]
  25. Saltan, F.; Kara, M. ICT Teachers’ Acceptance of “Scratch” as Algorithm Visualization Software. High. Educ. Stud. 2016, 6, 146. [Google Scholar] [CrossRef]
  26. Yildiz, S.N.; Ates Cobanoglu, A.; Kisla, T. Development of the ICT Teachers’ Perceptions of the Contribution of Scratch Program to Programming Instruction Scale. Int. J. Comput. Sci. Educ. Sch. 2020, 4, 53–71. [Google Scholar] [CrossRef]
  27. Iskrenovic-Momcilovic, O. Pair programming with Scratch. Educ. Inf. Technol. 2019, 24, 2943–2952. [Google Scholar] [CrossRef]
  28. Ding, K.; Haduong, P.; Brennan, K. Learning Collaboratively with Scratch. In Proceedings of the 56th ACM Technical Symposium on Computer Science Education V.2, New York, NY, USA, 26 February–31 March 2025; p. 1753. [Google Scholar]
  29. Presicce, C.; Jain, R.; Rodeghiero, C.; Gabaree, E.L.; Rusk, E. WeScratch: An inclusive, playful and collaborative approach to creative learning online. Inf. Learn. Sci. 2020, 121, 695–704. [Google Scholar] [CrossRef]
  30. Bers, M.; Sullivan, A. Computer Science Education in Early Childhood: The Case of ScratchJr. J. Inf. Technol. Educ. Innov. Pract. 2019, 18, 113–138. [Google Scholar]
  31. Katz, B.; Shah, P.; Meyer, D.E. How to play 20 questions with nature and lose: Reflections on 100 years of brain-training research. Proc. Natl. Acad. Sci. USA 2018, 115, 9897–9904. [Google Scholar] [CrossRef]
  32. Pećanac, R.; Lambić, D.; Marić, M. The Influence of the Use of Educational Software on the Effectiveness of Communication Models in Teaching. 2011. Available online: https://research.matf.bg.ac.rs/handle/123456789/573 (accessed on 17 July 2025).
  33. Weng, X.; Wong, G. Integrating computational thinking into English dialogue learning through graphical programming tool. In Proceedings of the IEEE 6th International Conference on Teaching, Assessment, and Learning for Engineering (TALE), Hong Kong, China, 12–14 December 2017; pp. 320–325. [Google Scholar]
  34. Lambić, D.; Đorić, B.; Ivakić, S. Investigating the effect of the use of code.org on younger elementary school students’ attitudes towards programming. Behav. Inf. Technol. 2020, 40, 1784–1795. [Google Scholar] [CrossRef]
  35. Grissom, R.J. Probability of the superior outcome of one treatment over another. J. Appl. Psychol. 1994, 79, 314–316. [Google Scholar] [CrossRef]
  36. Norman, G. Likert scales, levels of measurement and the “laws” of statistics. Adv. Health Sci. Educ. 2010, 15, 625–632. [Google Scholar] [CrossRef]
  37. Cohen, J. Statistical Power Analysis for the Behavioral Sciences, 2nd ed.; Lawrence Erlbaum Associates: Hillsdale, NJ, USA, 1988. [Google Scholar]
Table 1. Descriptive Statistics for LA Variables by Groups (Median and IQR).
Table 1. Descriptive Statistics for LA Variables by Groups (Median and IQR).
Variable3rd Control3rd Experimental4th Control4th Experimental
LA1 *3 (0)3 (0)3 (0)3 (0)
LA22 (2)2 (1)2 (2)2 (1)
LA34 (1)4 (2)4 (1)4 (2)
LA43 (0)2 (1)3 (0)3 (1)
LA53 (0)3 (1)3 (0)3 (1)
LA63 (2)3 (1)3 (2)3 (1)
LA74 (1)4 (1)3 (1)4 (1)
LA84 (1)4 (1)4 (1)4 (1)
Notes: * Learning Activity.
Table 2. Median (IQR) by gender and p-values.
Table 2. Median (IQR) by gender and p-values.
VariableMale Median (IQR **)Female Median (IQR)p-Value
LA1 *3 (1)3 (0)0.443 ns
LA22 (1)2 (1)0.090 ns
LA34 (2)4 (1)0.292 ns
LA43 (1)3 (0)0.081 ns
LA53 (1)3 (0)0.204 ns
LA63 (2)3 (1)0.072 ns
LA74 (1)4 (1)0.143 ns
LA84 (1)4 (1)0.032 ***
Notes: * Learning Activity, ** Interquartile ranges, *** p < 0.05, ns not significant.
Table 3. Mann–Whitney U test.
Table 3. Mann–Whitney U test.
VariableMann–Whitney UZ **Asymp. Sig. (2-Tailed)Significance
LA1 *—Responses to teacher’s questions897.000–0.7680.443ns
LA2—Oral explanations of the material782.000–1.6970.090ns
LA3—Active participation tasks855.500–1.0540.292ns
LA4—Tasks from textbooks789.000–1.7420.081ns
LA5—Workbook tasks842.500–1.2710.204ns
LA6—Group tasks768.500–1.8020.072ns
LA7—Video activities817.000–1.4660.143ns
LA8—Web activities737.500–2.1450.032p < 0.05
Notes: * Learning Activity, ** How many standard deviations a specific data point is away from the mean, ns not significant.
Table 4. Spearman correlations between problem-solving activities and attention measures.
Table 4. Spearman correlations between problem-solving activities and attention measures.
Pair of Variablesρ (Spearman)Sig. (2-Tailed)Interpretation
LA3–LA60.840 **0.000Very strong positive correlation
LA3–LA70.602 **0.000Strong positive correlation
LA3–LA80.762 **0.000Very strong positive correlation
LA6–LA70.681 **0.000Strong positive correlation
LA6–LA80.774 **0.000Very strong positive correlation
LA7–LA80.714 **0.000Very strong positive correlation
Notes: ** p < 0.01 (2-tailed), which means that all correlations are statistically significant.
Table 5. Median (IQR) values for reasons for attention loss (R1–R14) across groups.
Table 5. Median (IQR) values for reasons for attention loss (R1–R14) across groups.
Variable3rd Control3rd Experimental4th Control4th Experimental
R1—Unclear focus2 (1)2 (1)2 (1)2 (1)
R2—Thinking about other things3 (1)3 (1)3 (1)3 (1)
R3—Difficult to follow2 (1)2 (1)2 (1)2 (1)
R4—I was bored3 (1)2 (1)3 (1)2 (1)
R5—It was too long for me3 (2)2 (1)3 (2)2 (1)
R6—Already familiar2 (1)2 (1)2 (1)2 (1)
R7—Waste of time2 (1)2 (1)2 (1)2 (1)
R8—I lost interest3 (2)2 (1)3 (2)2 (1)
R9—Activity type2 (1)2 (1)2 (1)2 (1)
R10—Lack of knowledge2 (1)2 (1)2 (1)2 (1)
R11—Not interested in subject2 (1)2 (1)2 (1)2 (1)
R12—Not important to pay attention2 (1)2 (1)2 (1)2 (1)
R13—Bored of programming2 (1)2 (1)2 (1)2 (1)
R14—Purpose of programming unclear2 (1)2 (1)2 (1)2 (1)
Table 6. Kruskal–Wallis test results for R1–R14.
Table 6. Kruskal–Wallis test results for R1–R14.
Variableχ2 (df * = 3)p-ValueInterpretation
R1–R4ns>0.05No difference
R5χ2 ≈ 9.20.026Significant difference
R6–R7ns>0.05No difference
R8χ2 ≈ 10.70.014Significant difference
R9–R14ns>0.05No differences
Notes: * degrees of freedom, ns not significant.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Tasić, N.; Glušac, D.; Makitan, V.; Jokić, S.; Ljubojev, N.; Vignjević, K. Promoting Sustainable Education Through the Educational Software Scratch: Enhancing Attention Span Among Primary School Students in the Context of Sustainable Development Goal (SDG) 4. Sustainability 2025, 17, 9292. https://doi.org/10.3390/su17209292

AMA Style

Tasić N, Glušac D, Makitan V, Jokić S, Ljubojev N, Vignjević K. Promoting Sustainable Education Through the Educational Software Scratch: Enhancing Attention Span Among Primary School Students in the Context of Sustainable Development Goal (SDG) 4. Sustainability. 2025; 17(20):9292. https://doi.org/10.3390/su17209292

Chicago/Turabian Style

Tasić, Nemanja, Dragana Glušac, Vesna Makitan, Snežana Jokić, Nadežda Ljubojev, and Katarina Vignjević. 2025. "Promoting Sustainable Education Through the Educational Software Scratch: Enhancing Attention Span Among Primary School Students in the Context of Sustainable Development Goal (SDG) 4" Sustainability 17, no. 20: 9292. https://doi.org/10.3390/su17209292

APA Style

Tasić, N., Glušac, D., Makitan, V., Jokić, S., Ljubojev, N., & Vignjević, K. (2025). Promoting Sustainable Education Through the Educational Software Scratch: Enhancing Attention Span Among Primary School Students in the Context of Sustainable Development Goal (SDG) 4. Sustainability, 17(20), 9292. https://doi.org/10.3390/su17209292

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop