Make a computer science quiz on algorithms, data structures, Big O, or computational thinking, with AP CSP pseudocode or AP CSA Java items and an answer key.
Free · No account · Answer key included · Print or save as PDF
Build your quiz
Describe the topic and set the details. You get a quiz with an answer key.
60/5000
Free · No sign-up · PDF export
GradeWithAI is used by 21,000+ teachers, including teachers at
A computer science quiz assesses concepts (what a data structure is for, how efficient an algorithm is) and code reading (what a snippet does). This generator drafts 3 to 20 CS questions on algorithms, data structures, Big O, and computational thinking, with an answer key. Trace every code question yourself before assigning.
A sorting quiz covers bubble, selection, insertion, merge, and quick sort, with Big O questions such as why merge sort beats bubble sort on a 1,000-element list. Data structure questions include traversal and operation-cost items.
Sorting and searching algorithms with Big O analysis
Arrays, linked lists, stacks, queues, trees, and hash tables
AP CSP-style pseudocode or Java for AP CSA
Computational thinking: decomposition, pattern recognition, and abstraction
Ask for conceptual items (what does a hash table give you over a list), code-trace items (what does this loop print), or both. Code-trace questions can include common student errors such as off-by-one loops, scope confusion, and reference versus value.
For AP Computer Science Principles, ask for questions in the style of the exam reference sheet's pseudocode. For AP Computer Science A, ask for Java questions on objects, loops, classes, ArrayList, and 2D arrays. Check items against College Board's current course framework.
Enter the topic or paste the text, then set the grade, subject, number of questions, and difficulty.
The quiz and answer key usually take 20 to 40 seconds.
Read the questions, turn answers on or off, and print or save a PDF.
Teachers across subjects, from AP history to astrophysics, on grading with GradeWithAI.
“I've really enjoyed using the GradeWithAI program. It saves me a ton of time, especially when I have class sizes of 35 or 36 students times five.”

“GradeWithAI doesn't just grade. It gives the student reasoning as to why every point is awarded or not awarded. That is a very valuable thing for the students.”

“More impressive though is that it corrects student answers not simply using a pre-written answer, but by following the thought process they've pursued.”

“For Chadwick users, GradeWithAI has improved feedback efficiency and effectiveness, as it is grounded in existing platforms and is highly adaptable.”

“GradeWithAI [provides] students with timely individualized feedback on their homework assignments and formative assessments. This is a job that is virtually impossible for a teacher to do on a regular basis.”

“Students have also appreciated the consistency and immediacy of the feedback I can provide through GradeWithAI. This has enabled them to make necessary corrections and achieve their desired scores on any assignment.”

GradeWithAI grades completed quizzes against your answer key, including Google Forms short-answer questions.
Sync assignments from Canvas, Google Classroom, or Google Forms, or upload files from any other LMS
Reads typed work and handwritten pages from scans or phone photos
Edit any score or comment before students see it
Send scores and comments back to Canvas or Google Classroom, or export a CSV
Grading the completed tests and quizzes? See how the AI test grader works

Multiple choice, true or false, short answer, fill in the blank, and matching. Ask for specific types in the description, or leave it open for a mix.
Yes: easy, moderate, challenging, or mixed. Set the grade level too, since it changes the vocabulary and the kind of thinking the questions ask for.
Yes. Print or save a PDF without answers for students, then turn on Show answers and print again for a copy with the correct answers and explanations.
Yes, from pasted text. Paste up to 5,000 characters, such as a section of a chapter or an article, and the questions come from that text. There is no file upload, so copy the text out of a PDF first.
Not on the page. Copy the questions into your own document to change the wording, or generate again for a new set.
Yes. Generate again with the same description to get a different set of questions on the same material, for example for another class period or a makeup quiz.
Usually 20 to 40 seconds.
Upload the completed quizzes to GradeWithAI and add your answer key or rubric; the quiz doesn't carry over on its own. GradeWithAI also grades Google Forms quizzes, including short-answer questions, and needs a free account.
It is sent to an AI model to write the quiz. Nothing is saved to an account. Leave student names and other personal details out.
Yes, with no account or credit card.
Starting points for the quizzes teachers ask for most, with the topic and grade filled in.
21,000+ teachers use GradeWithAI to grade essays, tests, and handwritten work, and report saving 10+ hours a week.
The free plan grades 25 submissions every 30 days. No credit card.
Reported by teachers using GradeWithAI, with feedback on every submission they grade.


