What is Pseudocode?
Variables, Data Types & Math
Boolean Logic & Conditionals
Loops & Code Tracing
Errors & Flowcharts
100

Pseudocode is technically not one of these, since it has no compiler, no interpreter, and no universal rules. Different textbooks and exams write it differently.

What is a (real/actual) programming language?

100

While Java uses the equals sign for assignment, the TExES 241 pseudocode notation uses this distinctive symbol instead.

What is ← (the left arrow)?

100
Unlike Java, which uses curly brackets to mark the boundaries of a code block, TExES 241 pseudocode uses these kinds of explicit keyword phrases.
What are "end if," "end for," and "end while"? (closing keyword statements)
100
This is the main reason the TExES 241 certification exam uses pseudocode instead of Java, Python, or C++ to test candidates' computer science knowledge.
What is "to be language-agnostic" (so it doesn't favor candidates who know one specific programming language)?
100
In TExES 241 pseudocode, functions that don't return a value are declared with this keyword, while functions that do return a value are declared using the data type of the value returned — unlike Java, where this other keyword is used for non-returning methods.
What is "procedure" (pseudocode) vs. "void" (Java)?
200

This data type would be the most appropriate choice for storing a value of 3.1415926535 with high precision.

What is double?

200
Given the pseudocode: int result ← 10 MOD 3 — this is the value stored in result.
What is 1?
200

Following the order of precedence, this is the value of: int result ← (4 + 2) * 3 ^ 2 MOD 7 - 1

What is 4? (3^2 = 9; 6 * 9 = 54; 54 MOD 7 = 5; 5 - 1 = 4)

200

Given String name ← "Pedro" and int score ← 15, this is the exact output of: 

print "Hello, " + name + "! Your score is: " + score

What is "Hello, Pedro! Your score is: 15"?

200

Trace this code and give the final output:

int a ← 4

int b ← 2

int c ← a ^ b

int d ← c MOD 5

print d

What is 1? (4^2 = 16, then 16 MOD 5 = 1)

300

Given p = false and q = true, this is the value of: not p and not q

What is false? (not false = true; not true = false; true and false = false)

300
By De Morgan's Law, the expression not (p or q) is logically equivalent to this expression.
What is (not p) and (not q)?
300

With int age ← 25, this is what the program prints:

if (age ≥ 18 and age ≤ 65)

   print "Working-age group"

else

   print "Not working-age"

end if

What is "Working-age group"?

300

With boolean isLoggedIn ← true and boolean hasPremiumAccess ← false, trace this nested conditional and give the output: 

if (isLoggedIn == true) 

   if (hasPremiumAccess == true) 

      print "Welcome to Premium Dashboard"

   else 

      print "Welcome to Basic Dashboard" 

   end if 

else 

     print "Please log in first" 

end if

What is "Welcome to Basic Dashboard"?

400
This loop type is the best choice when the number of iterations is known in advance.
What is a for loop?
400

Trace and give the output:

for (int x ← 1; x < 5; x ← x + 1) 

   print x

end for

What is 1 2 3 4?

400

Trace and give the output:

int i ← 10

while (i > 0) 

    print i + " "

    i ← i - 2

end while

What is "10 8 6 4 2"?

400

Trace this do while loop and give the output: 

int x ← 10

do 

  print "Hi " 

  x ← x - 3

while (x > 0)

What is "Hi Hi Hi Hi"? (prints four times: x = 10, 7, 4, 1; stops when x = -2)

400

Trace this repeat until loop and give the output: 

int x ← 2 

repeat 

   print x + " "

   x ← x * 2 

until (x ≥ 100)

What is "2 4 8 16 32 64"?

500
This error type produces no console warnings — the program runs successfully, but the output is incorrect.
What is a logic error?
500
The pseudocode x ← 5 / 0 would produce this category of error, which happens during program execution.
What is a runtime error?
500
In a flowchart, decision points like if statements are represented by this specific shape.
What is a diamond?
500
Writing prin "Hello" instead of print "Hello" would produce this category of error.
What is a syntax error?
500
When evaluating a flowchart, this visual feature is the quick trick used to identify that the process includes iteration.
What is a flow line that connects back to an earlier step? (a loop-back arrow)