stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Languages and Concepts Flashcards | StudBud
Explore
/
Programming Languages and Concepts
Programming Languages and Concepts
21 terms
·
StudBud Administration
Test your knowledge on programming languages, pseudocode, and fundamental programming concepts
Flashcards
21 cards
F
Practice quiz
P
Host live
L
Questions
21
Answers
1
What is the biggest difference between pseudocode and programming languages?
There is no difference
Pseudocode can be executed
Pseudocode cannot be executed
Pseudocode is more complex
2
What will the following code display? 'my_name = "John"; print(my_name)'
my_name
John
None of these
Error
3
Which of the following is a float?
"42"
42
42.0
None of these
4
What is the purpose of the 'input()' function in Python?
To run a program
To display output
To store data
To gather user input
5
What is the output of 'print("I am " + str(25) + " years old")'?
I am 25years old
Error
I am 25 years old
I am years old
6
What does string concatenation do?
Combines strings
Converts strings to numbers
Splits strings
None of these
7
True or false: A string can include numbers.
True
False
8
What will the following code display? 'DISPLAY("Hello" + " World")'
Error
HelloWorld
None of these
Hello World
9
What will 'num_dimes = 4' followed by 'print(num_dimes)' output?
4
Error
num_dimes
None of these
10
What is pseudocode used for?
To outline programs
To create graphics
To write executable code
To debug errors
11
True or false: Python is the only programming language you will learn.
True
False
12
What is the output of 'print("You own " + "7" + " dogs")'?
You own 7 dogs
You own dogs
Error
You own str(7) dogs
13
What is the output of 'print("Hello" + " " + "World")'?
Error
HelloWorld
None of these
Hello World
14
Which statement is written in AP Pseudocode?
echo("Hello")
DISPLAY("Hello")
output("Hello")
print("Hello")
15
What is the purpose of the input command?
To gather user input
To store data
To run a program
To display output
16
Which of the following is a programming language?
AP Pseudocode
Python
None of these
Pseudocode
17
What does the command 'print' do in Python?
Displays output
Stores a variable
Runs a loop
Creates a function
18
True or false: You can combine Python and AP Pseudocode in one program.
False
True
19
What is the first step in the 3-Step Process?
Explain in words
Write in pseudocode
Debug the code
Write in Python
20
What is a variable in programming?
A type of loop
A storage box for data
A command
A fixed value
21
What is the output of 'print("Hello World!")'?
Error
Hello World
print("Hello World!")
Hello World!