2.2.1 Programming Concepts Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Python is a _________ __________

A

Python is a programming language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name 3 facts about python

A

Simple syntax similar to English
Designed to be easy to use
It’s a high-level language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a syntax in programming?

A

The ‘grammar’ of programming. It means there are rules for how you can write your code. If you don’t follow the rules, your program won’t run properly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An output in Python is an ___-_____ ________

A

An output in Python is an on-screen display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

To make text appear (or output to the screen) you can use _________

A

print

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What’s the correct syntax to output:

Dulwich College Seoul

A

print (“Dulwich College Seoul”)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’s the correct name of these?

A

parentheses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Something we want the computer to remember is called a __________

A

variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When choosing a variable name you must:

A

Not include spaces
Use only letters, numbers and underscore _
Using upper and lowercase numbers is different

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

To print a variable name (for example ‘cheese’) you would code

A

print (cheese)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly