
Pseudocode + Practice Test III
Presentation
•
Mathematics
•
6th - 8th Grade
•
Practice Problem
•
Hard
+2
Standards-aligned
Atharv (KMS)
Used 2+ times
FREE Resource
7 Slides • 5 Questions
1
Pseudocode III +
Practice Test
2
Arrays
An array is a data structure (remember those?)
It's like a list of data, for example, [1, 2, 3] or ["a", "b", "c"] (notice how arrays are denoted via square brackets)
In some programming languages arrays can hold data of different types; array [1, "a", 3.5] holds an integer, a letter, and a decimal.
3
2D Arrays
A 2D array is an array of arrays, like so.
x = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
4
Array Indexing
Given an array x = [1, 4, 8, 2], use x[0] to get the first element in the array, 1. Use x[i - 1] to get the ith element in the array (so, since the 3rd element is 8, x[2] = 8)
Given the 2D array y = [[1, 2], [3, 4]], y[0] = [1, 2] and y[1] = [3, 4]. Then, y[0][0] = 1 and y[0][1] = 2.
5
Strings
A string is like an array, but it can only hold characters. This is a character: "1". "1" is not the same as 1.
An example of a string would be "How_odd_it_would_be_to_write_without_the_first_letter_of_the_English_lexicon."
6
Strings Indexing
Given the string # = "hashtag"
#[0] = "h", #[4] = "t"
#[:3] = "has" (first 3 letters)
#[4:] = "htag" (last 4 letters)
#[2:5] = "shta" (letters between position 2 and 5 inclusive)
7
Practice Test
8
Multiple Choice
Which of these boolean expressions is most likely 0
a * b * c
a + b + c
1
a * b + c
c^3
9
Multiple Choice
Simplify this
A
AB
NOTA + B
A * B * NOTC
NOTA * NOTB + NOTC
10
Multiple Choice
PUSH("A"), PUSH("M"), PUSH("E"), X = POP(), PUSH("R"), X = POP(), PUSH("I"),
X = POP(), X = POP(), X = POP(), X = POP(), PUSH("C"), PUSH("A"), PUSH("N")
After performing these operations on a queue, what would the next element to be popped out be?
E
R
I
C
A
11
Draw
Draw a binary search tree of the word, ATHARV.
Here's the alphabet in order... ABCDEFGHIJKLMNOPQRSTUVWXYZ
12
Multiple Choice
Here's a hint:
The print statement prints out the result
RI
SA
NI
GA
ET
Pseudocode III +
Practice Test
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
9 questions
Find the constant of proportionality from a graph
Presentation
•
7th Grade
10 questions
Unit Rate and Graphs
Presentation
•
7th Grade
8 questions
Evaluating algebraic expressions
Presentation
•
6th - 8th Grade
8 questions
dimensional analysis : Rates
Presentation
•
6th - 8th Grade
10 questions
EVALUACION DE MATEMÁTICA
Presentation
•
6th - 8th Grade
10 questions
Penjumlahan dan Pengurangan Aljabar
Presentation
•
12th Grade - University
10 questions
Rational and Irrational numbers
Presentation
•
7th - 8th Grade
11 questions
Types of Slope
Presentation
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Factors 4th grade
Quiz
•
4th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
Discover more resources for Mathematics
48 questions
8TH GRADE MATH FAST REVIEW
Quiz
•
8th Grade
14 questions
Volume of rectangular prisms
Quiz
•
7th Grade
20 questions
Math Review
Quiz
•
6th Grade
22 questions
Simple Probability
Quiz
•
7th Grade
23 questions
6th Grade Math Review
Quiz
•
6th Grade
21 questions
Math Review
Quiz
•
7th Grade
15 questions
Order of Operations (no exponents)
Quiz
•
5th - 6th Grade
18 questions
Mean, Median, mode, and range
Quiz
•
6th Grade