430 research outputs found

    Syntactic generation of practice novice programs in Python

    Get PDF
    Abstract: In the present day, computer programs are written in high level languages and parsed syntactically as part of a compilation process. These parsers are defined with context-free grammars (CFGs), a language recogniser for the respective programming language. Formal grammars in general are used for language recognition or generation. In this paper, we present the automatic generation of procedural programs in Python using a CFG. We have defined CFG rules to model program templates and implemented these rules to produce infinitely many distinct practice programs in Python. Each generated program is designed to test a novice programmer’s knowledge of functions, expressions, loops, and/or conditional statements. The CFG rules are highly generic and can be extended to generate programs in other procedural languages. The resulting programs can be used as practice, test or examination problems in introductory programming courses. 500,000 iterations of generated programs can be found at: https://tinyurl.com/ pythonprogramgenerator. A survey of 103 students’ perception showed that 93.1% strongly agreed that these programs can help them in practice and improve their programming skills

    The Vehicle, 1969, Vol. 11 no. 2

    Get PDF
    Vol. 11, No. 2 Table of Contents Short Story: The TripCharles Whitepage 4 PhotoDale Huberpage 5 A NightRoger Zulaufpage 6 Sixteen-year-old Students...NBpage 6 LostJim Biropage 6 The AmateurRoger Zulaufpage 7 ManRoger Zulaufpage 7 My CamelotRonald Garnerpage 7 The Rose and the BriarKenneth L. Folkertspage 9 Who Am I?Frank McKennedypage 10 PhotoDale Huberpage 11 Mr. Samuel ClemensLarry A. Millerpage 11 Lock OutAra Childspage 12 Excuse MeRoger Zulaufpage 12 On Shadows from a Candle \u2767Michael G. McKeepage 12 beginning of an endCaryl Dagropage 12 DrawingMADpage 13 We Ain\u27t Un HurJames Birchlerpage 13 Genesis II, 18 \u2767Michael G. McKeepage 13 Short Story: A Patent Leather PaleEleanor Aikenpage 14 hungry childRoger Zulaufpage 15 DrawingRoger Zulaufpage 15 PhotoRoger Digglepage 16 Do You Like The Rain?Linda Boltmanpage 17 Seasons ChangePerry J. Carterpage 17 PhotoDale Huberpage 19 Whistling TreesPam McKinneypage 19 PostscriptThomas W. Reapage 20 PhotoDale Huberpage 20https://thekeep.eiu.edu/vehicle/1020/thumbnail.jp

    The Vehicle, 1969, Vol. 11 no. 2

    Get PDF
    Vol. 11, No. 2 Table of Contents Short Story: The TripCharles Whitepage 4 PhotoDale Huberpage 5 A NightRoger Zulaufpage 6 Sixteen-year-old Students...NBpage 6 LostJim Biropage 6 The AmateurRoger Zulaufpage 7 ManRoger Zulaufpage 7 My CamelotRonald Garnerpage 7 The Rose and the BriarKenneth L. Folkertspage 9 Who Am I?Frank McKennedypage 10 PhotoDale Huberpage 11 Mr. Samuel ClemensLarry A. Millerpage 11 Lock OutAra Childspage 12 Excuse MeRoger Zulaufpage 12 On Shadows from a Candle \u2767Michael G. McKeepage 12 beginning of an endCaryl Dagropage 12 DrawingMADpage 13 We Ain\u27t Un HurJames Birchlerpage 13 Genesis II, 18 \u2767Michael G. McKeepage 13 Short Story: A Patent Leather PaleEleanor Aikenpage 14 hungry childRoger Zulaufpage 15 DrawingRoger Zulaufpage 15 PhotoRoger Digglepage 16 Do You Like The Rain?Linda Boltmanpage 17 Seasons ChangePerry J. Carterpage 17 PhotoDale Huberpage 19 Whistling TreesPam McKinneypage 19 PostscriptThomas W. Reapage 20 PhotoDale Huberpage 20https://thekeep.eiu.edu/vehicle/1020/thumbnail.jp

    Evaluation of a task-based community oriented teaching model in family medicine for undergraduate medical students in Iraq

    Get PDF
    BACKGROUND: The inclusion of family medicine in medical school curricula is essential for producing competent general practitioners. The aim of this study is to evaluate a task-based, community oriented teaching model of family medicine for undergraduate students in Iraqi medical schools. METHODS: An innovative training model in family medicine was developed based upon tasks regularly performed by family physicians providing health care services at the Primary Health Care Centre (PHCC) in Mosul, Iraq. Participants were medical students enrolled in their final clinical year. Students were assigned to one of two groups. The implementation group (28 students) was exposed to the experimental model and the control group (56 students) received the standard teaching curriculum. The study took place at the Mosul College of Medicine and at the Al-Hadba PHCC in Mosul, Iraq, during the academic year 1999–2000. Pre- and post-exposure evaluations comparing the intervention group with the control group were conducted using a variety of assessment tools. RESULTS: The primary endpoints were improvement in knowledge of family medicine and development of essential performance skills. Results showed that the implementation group experienced a significant increase in knowledge and performance skills after exposure to the model and in comparison with the control group. Assessment of the model by participating students revealed a high degree of satisfaction with the planning, organization, and implementation of the intervention activities. Students also highly rated the relevancy of the intervention for future work. CONCLUSION: A model on PHCC training in family medicine is essential for all Iraqi medical schools. The model is to be implemented by various relevant departments until Departments of Family medicine are established

    Measurement of the cross-section of high transverse momentum vector bosons reconstructed as single jets and studies of jet substructure in pp collisions at √s = 7 TeV with the ATLAS detector

    Get PDF
    This paper presents a measurement of the cross-section for high transverse momentum W and Z bosons produced in pp collisions and decaying to all-hadronic final states. The data used in the analysis were recorded by the ATLAS detector at the CERN Large Hadron Collider at a centre-of-mass energy of √s = 7 TeV;{\rm Te}{\rm V}andcorrespondtoanintegratedluminosityof and correspond to an integrated luminosity of 4.6\;{\rm f}{{{\rm b}}^{-1}}.ThemeasurementisperformedbyreconstructingtheboostedWorZbosonsinsinglejets.ThereconstructedjetmassisusedtoidentifytheWandZbosons,andajetsubstructuremethodbasedonenergyclusterinformationinthejetcentreofmassframeisusedtosuppressthelargemultijetbackground.ThecrosssectionforeventswithahadronicallydecayingWorZboson,withtransversemomentum. The measurement is performed by reconstructing the boosted W or Z bosons in single jets. The reconstructed jet mass is used to identify the W and Z bosons, and a jet substructure method based on energy cluster information in the jet centre-of-mass frame is used to suppress the large multi-jet background. The cross-section for events with a hadronically decaying W or Z boson, with transverse momentum {{p}_{{\rm T}}}\gt 320\;{\rm Ge}{\rm V}andpseudorapidity and pseudorapidity |\eta |\lt 1.9,ismeasuredtobe, is measured to be {{\sigma }_{W+Z}}=8.5\pm 1.7$ pb and is compared to next-to-leading-order calculations. The selected events are further used to study jet grooming techniques

    Search for direct pair production of the top squark in all-hadronic final states in proton-proton collisions at s√=8 TeV with the ATLAS detector

    Get PDF
    The results of a search for direct pair production of the scalar partner to the top quark using an integrated luminosity of 20.1fb−1 of proton–proton collision data at √s = 8 TeV recorded with the ATLAS detector at the LHC are reported. The top squark is assumed to decay via t˜→tχ˜01 or t˜→ bχ˜±1 →bW(∗)χ˜01 , where χ˜01 (χ˜±1 ) denotes the lightest neutralino (chargino) in supersymmetric models. The search targets a fully-hadronic final state in events with four or more jets and large missing transverse momentum. No significant excess over the Standard Model background prediction is observed, and exclusion limits are reported in terms of the top squark and neutralino masses and as a function of the branching fraction of t˜ → tχ˜01 . For a branching fraction of 100%, top squark masses in the range 270–645 GeV are excluded for χ˜01 masses below 30 GeV. For a branching fraction of 50% to either t˜ → tχ˜01 or t˜ → bχ˜±1 , and assuming the χ˜±1 mass to be twice the χ˜01 mass, top squark masses in the range 250–550 GeV are excluded for χ˜01 masses below 60 GeV

    Search for pair-produced long-lived neutral particles decaying to jets in the ATLAS hadronic calorimeter in ppcollisions at √s=8TeV

    Get PDF
    The ATLAS detector at the Large Hadron Collider at CERN is used to search for the decay of a scalar boson to a pair of long-lived particles, neutral under the Standard Model gauge group, in 20.3fb−1of data collected in proton–proton collisions at √s=8TeV. This search is sensitive to long-lived particles that decay to Standard Model particles producing jets at the outer edge of the ATLAS electromagnetic calorimeter or inside the hadronic calorimeter. No significant excess of events is observed. Limits are reported on the product of the scalar boson production cross section times branching ratio into long-lived neutral particles as a function of the proper lifetime of the particles. Limits are reported for boson masses from 100 GeVto 900 GeV, and a long-lived neutral particle mass from 10 GeVto 150 GeV

    Facilitating Memory for Novel Characters by Reducing Neural Repetition Suppression in the Left Fusiform Cortex

    Get PDF
    Gui Xue is with Beijing Normal University and University of Southern California, Leilei Mei is with Beijing Normal University and University of California Irvine, Chuansheng Chen is with University of California Irvine, Zhong-Lin Lu is with University of Southern California, Russell A. Poldrack is with UT Austin, Qi Dong is with Beijing Normal University.Background -- The left midfusiform and adjacent regions have been implicated in processing and memorizing familiar words, yet its role in memorizing novel characters has not been well understood. Methodology/Principal Findings -- Using functional MRI, the present study examined the hypothesis that the left midfusiform is also involved in memorizing novel characters and spaced learning could enhance the memory by enhancing the left midfusiform activity during learning. Nineteen native Chinese readers were scanned while memorizing the visual form of 120 Korean characters that were novel to the subjects. Each character was repeated four times during learning. Repetition suppression was manipulated by using two different repetition schedules: massed learning and spaced learning, pseudo-randomly mixed within the same scanning session. Under the massed learning condition, the four repetitions were consecutive (with a jittered inter-repetition interval to improve the design efficiency). Under the spaced learning condition, the four repetitions were interleaved with a minimal inter-repetition lag of 6 stimuli. Spaced learning significantly improved participants' performance during the recognition memory test administered one hour after the scan. Stronger left midfusiform and inferior temporal gyrus activities during learning (summed across four repetitions) were associated with better memory of the characters, based on both within- and cross-subjects analyses. Compared to massed learning, spaced learning significantly reduced neural repetition suppression and increased the overall activities in these regions, which were associated with better memory for novel characters. Conclusions/Significance -- These results demonstrated a strong link between cortical activity in the left midfusiform and memory for novel characters, and thus challenge the visual word form area (VWFA) hypothesis. Our results also shed light on the neural mechanisms of the spacing effect in memorizing novel characters.This study was supported by the Program for New Century Excellent Talents in University, the National Science Foundation (grant numbers BCS 0823624 and BCS 0823495), the National Institute of Health (grant number HD057884-01A2), and the 111 Project of China (B07008). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.Psycholog

    Low Frequency Groans Indicate Larger and More Dominant Fallow Deer (Dama dama) Males

    Get PDF
    Background: Models of honest advertisement predict that sexually selected calls should signal male quality. In most vertebrates, high quality males have larger body sizes that determine higher social status and in turn higher reproductive success. Previous research has emphasised the importance of vocal tract resonances or formant frequencies of calls as cues to body size in mammals. However, the role of the acoustic features of vocalisations as cues to other quality-related phenotypic characteristics of callers has rarely been investigated. Methodology/Principal Findings: We examined whether the acoustic structure of fallow deer groans provides reliable information on the quality of the caller, by exploring the relationships between male quality (body size, dominance rank, and mating success) and the frequency components of calls (fundamental frequency, formant frequencies, and formant dispersion). We found that body size was not related to the fundamental frequency of groans, whereas larger males produced groans with lower formant frequencies and lower formant dispersion. Groans of high-ranking males were characterised by lower minimum fundamental frequencies and to a lesser extent, by lower formant dispersions. Dominance rank was the factor most strongly related to mating success, with higher-ranking males having higher mating success. The minimum fundamental frequency and the minimum formant dispersion were indirectly related to male mating success (through dominance rank). Conclusion/Significance: Our study is the first to show that sexually selected vocalisations can signal social dominance in mammals other than primates, and reveals that independent acoustic components encode accurate information on different phenotypic aspects of male quality
    corecore