


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A series of questions and answers related to computer games development, covering fundamental concepts in programming, including data types, conditional statements, loops, and libraries. It is a valuable resource for beginners in computer science or game development, offering a structured approach to understanding key concepts.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



What are copyright rights? - SOLUTION -Rights that apply to creative works What is a command? - SOLUTION -Instruction to a computer to perform a task print("Hello World") What are comments? - SOLUTION -Annotations added to code to provide additional information #comments will have a hashtag What is debugging? - SOLUTION -Process of finding and fixing issues in a program What is a program? - SOLUTION -Collection of commands What is Python? - SOLUTION -General purpose programming language What is syntax? - SOLUTION -Structure of statements in a computing language What is a variable? - SOLUTION -Way of storing and keeping track of data score = 0 What is a string? - SOLUTION -Data type that is a sequence of characters "How are you?" What is an integer? - SOLUTION -Data type that is a whole number
e.g. 7 What is a float? - SOLUTION -Decimal number e.g 7. What is a boolean? - SOLUTION -Data type that can only have True or False values What is a conditional statement? - SOLUTION -Piece of code that contains an if, if/elif or if/else What are operators? - SOLUTION -Specific symbols that carry out mathematical, comparator, and/or logical statements What is a loop? - SOLUTION -Code that repeats a block until a set condition is met What is a while loop? - SOLUTION -Loop that repeats a block until a set condition is met What is an if statement? - SOLUTION -Conditional statement that picks a path based on a condition provided What is an elif statement? - SOLUTION -Conditional statement that picks a path if the previous condition(s) are False and its own condition is True What is an else statement? - SOLUTION -Conditional statement that picks a path if all previous conditions are False What is a library/module? - SOLUTION -Collection of resources and commands What is the purpose of 'from random import randint'? - SOLUTION -Generate a random number
What is the greater than operator? - SOLUTION -Operator > What is the text colour green? - SOLUTION - setTextColour(GREEN)