CodeHS Code High School Certifications — Questions and Answers
Question 1: How should a professional handle a situation where institutional policy conflicts with ethical standards?
- Advocate for policy change while following ethical guidelines (Correct answer)
- Resign immediately without addressing the issue
- Ignore both and use personal judgment alone
- Always follow institutional policy without question
Correct answer: Advocate for policy change while following ethical guidelines
Professionals should advocate for policy changes while maintaining ethical standards, seeking resolution through proper channels.
Question 2: In a supervised learning model, what is the role of labeled training data?
- It stores the model's weights after training
- It provides input-output pairs so the model can learn the mapping between them (Correct answer)
- It eliminates the need for a validation set
- It is used only to test the model after training is complete
Correct answer: It provides input-output pairs so the model can learn the mapping between them
Labeled training data pairs inputs with correct outputs, allowing the supervised learning algorithm to learn the relationship and generalize to new examples.
Question 3: What should a CodeHS professional do when they encounter a situation beyond their competence?
- Delegate to an unlicensed assistant
- Refer to a qualified specialist or seek additional training (Correct answer)
- Ignore the situation
- Attempt to handle it anyway
Correct answer: Refer to a qualified specialist or seek additional training
Recognizing the limits of ones competence and making appropriate referrals is a fundamental professional responsibility.
Question 4: Which machine learning approach is best suited for training an agent to play a video game by rewarding good moves?
- Unsupervised learning
- Transfer learning
- Reinforcement learning (Correct answer)
- Supervised learning
Correct answer: Reinforcement learning
Reinforcement learning trains agents by providing rewards for desired actions and penalties for undesired ones, making it ideal for game-playing AI.
Question 5: What is the purpose of the UIViewController class in iOS development?
- To define the app's navigation bar
- To handle the app's data storage
- To control the interaction between the app and the device hardware
- To manage the layout and appearance of user interface elements (Correct answer)
Correct answer: To manage the layout and appearance of user interface elements
The `UIViewController` class in iOS development is a fundamental component responsible for managing a single screen or a portion of an app's user interface. It acts as a controller, coordinating between the app's data (model) and its visual representation (view). `UIViewController` handles events, updates the UI, and manages the lifecycle of its associated view, making it central to building interactive iOS applications.
Question 6: Which statement best describes the ethical principle of non-discrimination in CS education?
- CS courses should be reserved for students who show natural aptitude
- Advanced students should receive more teacher attention
- Students who misbehave should be excluded from engaging activities
- All students deserve equitable access to rigorous CS learning opportunities regardless of background (Correct answer)
Correct answer: All students deserve equitable access to rigorous CS learning opportunities regardless of background
Non-discrimination requires that every student has equitable access to high-quality CS education regardless of race, gender, or background.
Question 7: What does the 'gradebook' feature in CodeHS allow a certified CodeHS teacher to do?
- Track student progress and assignment scores (Correct answer)
- Generate quiz questions automatically
- Submit national certification applications
- Enroll students in AP exams
Correct answer: Track student progress and assignment scores
The CodeHS gradebook lets teachers monitor individual and class-wide student progress, completion rates, and assignment scores.
Question 8: A teacher finds a student's blog post that criticizes the school's CS curriculum. What is the ethical response?
- Report the student to administration for disciplinary action
- Respect the student's right to free expression and reflect on the feedback (Correct answer)
- Lower the student's participation grade as a consequence
- Ask other students to respond negatively to the blog post
Correct answer: Respect the student's right to free expression and reflect on the feedback
Students have free expression rights, and professional educators should consider constructive criticism rather than retaliate.
Question 9: In the CodeHS AI curriculum, what is a 'training set' used for?
- Evaluating the final model's real-world performance
- Teaching the model by exposing it to examples so it can learn patterns (Correct answer)
- Adjusting hyperparameters during model selection
- Storing model predictions for later analysis
Correct answer: Teaching the model by exposing it to examples so it can learn patterns
The training set is the data used to fit or teach the model, allowing it to learn the patterns needed to make predictions.
Question 10: What is the primary purpose of a school's Acceptable Use Policy (AUP) for technology?
- To prevent teachers from using personal devices at work
- To define appropriate and ethical use of school technology resources (Correct answer)
- To limit the number of devices per classroom
- To restrict students from using the internet
Correct answer: To define appropriate and ethical use of school technology resources
An AUP establishes guidelines for ethical and responsible use of school technology by all users.
Question 11: In Xcode, which programming language is primarily used for iOS app development?
- Swift (Correct answer)
- Java
- Kotlin
- Objective-C
Correct answer: Swift
Swift is Apple's powerful and intuitive programming language for building apps across all Apple platforms, including iOS, macOS, watchOS, and tvOS. Developed to be safe, fast, and modern, Swift is the primary language used in Xcode for iOS app development. It has largely replaced Objective-C as the preferred language due to its improved syntax, performance, and safety features.
Question 12: A teacher notices a student's code contains a complex algorithm that appears far beyond the student's demonstrated ability. What is the most ethical next step?
- Fail the student immediately for suspected plagiarism
- Have a private conversation with the student to understand their process (Correct answer)
- Give full credit since the code works correctly
- Publicly question the student in front of the class
Correct answer: Have a private conversation with the student to understand their process
Speaking privately with the student gives them a fair opportunity to explain their work before any conclusions are drawn.
Question 13: How does CodeHS support students who are learning English as a second language (ESL) in a CS classroom?
- It provides a separate ESL-only platform
- It automatically translates all content to 50 languages
- It requires students to pass an English proficiency test first
- Instructional videos with closed captions and visual coding environments reduce language barriers (Correct answer)
Correct answer: Instructional videos with closed captions and visual coding environments reduce language barriers
Closed-captioned videos and visual environments like Karel reduce language dependency, making content more accessible to ESL learners.
Question 14: What is the primary purpose of the CodeHS 'Points' system displayed to students?
- To gamify learning by rewarding students for completing exercises and encouraging continued engagement (Correct answer)
- To rank students publicly against other schools
- To charge students real money for premium features
- To replace letter grades on official transcripts
Correct answer: To gamify learning by rewarding students for completing exercises and encouraging continued engagement
CodeHS points are a gamification mechanism that reward effort and completion, motivating students to persist through challenging exercises.
Question 15: In CodeHS, what is the educational rationale for providing 'hints' that reveal partial solutions rather than the full answer?
- Partial hints promote productive struggle, keeping students cognitively engaged without bypassing the learning (Correct answer)
- Full answers are too long to display on screen
- Hints are randomly generated and have no educational design
- Full answers are reserved for teachers only for legal reasons
Correct answer: Partial hints promote productive struggle, keeping students cognitively engaged without bypassing the learning
Partial hints scaffold thinking without eliminating the challenge, preserving the learning opportunity while reducing frustration.
Question 16: Which behavior exemplifies academic integrity for a student using AI coding tools in a CodeHS course?
- Copying AI output word-for-word without review
- Submitting AI-generated code as entirely their own work
- Sharing AI-generated solutions with classmates for all assignments
- Using AI to understand concepts and then writing original code (Correct answer)
Correct answer: Using AI to understand concepts and then writing original code
Using AI as a learning aid while producing original work maintains academic integrity.
Question 17: What is active listening in professional communication?
- Asking as many questions as possible during the conversation
- Waiting for your turn to speak while planning your response
- Fully concentrating on and understanding the speakers message before responding (Correct answer)
- Taking detailed notes without making eye contact
Correct answer: Fully concentrating on and understanding the speakers message before responding
Active listening involves giving full attention to the speaker, understanding their message, and providing appropriate feedback.
Question 18: What is 'secondary transition planning' under IDEA?
- Moving a student from elementary to middle school
- Transferring student records between school districts
- Transitioning from special to general education class
- Coordinated activities to help students move from school to post-secondary life (Correct answer)
Correct answer: Coordinated activities to help students move from school to post-secondary life
Transition planning must begin by age 16 (or earlier in some states) and focuses on goals for post-secondary education, employment, and independent living.
Question 19: Which type of assessment does CodeHS use to measure student understanding after completing a section?
- Checkpoint quizzes with auto-graded multiple-choice and coding questions (Correct answer)
- Standardized state exams imported automatically
- Portfolio-only assessment with no quizzes
- Only oral exams administered in person
Correct answer: Checkpoint quizzes with auto-graded multiple-choice and coding questions
CodeHS uses checkpoint quizzes combining multiple-choice and coding questions, automatically graded, at the end of each section.
Question 20: Which action reflects ethical professional development for a CS educator?
- Actively learning about emerging technologies to improve instruction (Correct answer)
- Reusing the same lesson plans for 10 years without updates
- Attending workshops only when required by contract
- Delegating curriculum updates entirely to administrators
Correct answer: Actively learning about emerging technologies to improve instruction
Continuously updating one's skills and knowledge is a core professional responsibility in a fast-changing field like CS.
Question 21: What does 'inclusion' mean in special education practice?
- Eliminating all academic standards for students with disabilities
- Providing special education services only in resource rooms
- Educating students with disabilities alongside their non-disabled peers with appropriate supports (Correct answer)
- Placing all students with disabilities in separate classrooms
Correct answer: Educating students with disabilities alongside their non-disabled peers with appropriate supports
Inclusion means that students with disabilities participate in general education settings with the supports and services needed to succeed.
Question 22: What does the ++ operator do in C++?
- Increments the value of a variable by 1 (Correct answer)
- Doubles the value of a variable
- Decrements the value of a variable by 1
- Resets the value of a variable to zero
Correct answer: Increments the value of a variable by 1
The `++` operator in C++ is the increment operator. It is a unary operator that increases the value of its operand by one. For example, if `x` is 5, then `x++` or `++x` will change the value of `x` to 6. This operator is commonly used in loops and for simple counting operations.
Question 23: Which measure is commonly used to evaluate the effectiveness of a CodeHS CTE pathway at the district level?
- Parent satisfaction surveys only
- Teacher attendance records
- Number of football wins
- Industry certification attainment rates (Correct answer)
Correct answer: Industry certification attainment rates
Industry certification attainment rates are a key Perkins V accountability measure used to evaluate how well a CTE pathway prepares students for careers.
Question 24: What is an example of social engineering in cybersecurity?
- An attacker tricking an individual into revealing sensitive information (Correct answer)
- A hacker using malware to infect a system
- An attacker exploiting a software vulnerability
- A denial of service attack on a website
Correct answer: An attacker tricking an individual into revealing sensitive information
Social engineering is a manipulation technique that exploits human psychology to trick individuals into performing actions or divulging confidential information. An attacker might impersonate a trusted entity, use urgency, or create a sense of fear to persuade a victim. Unlike technical attacks, social engineering preys on human trust and vulnerability rather than software or system flaws.
Question 25: What is 'differentiated instruction' in the context of supporting students with disabilities?
- Teaching each student a completely different curriculum
- Providing one-on-one instruction for all special education students
- Assigning different letter grades based on disability status
- Adjusting content, process, product, or environment based on individual student readiness and needs (Correct answer)
Correct answer: Adjusting content, process, product, or environment based on individual student readiness and needs
Differentiated instruction involves intentional planning to meet diverse learner needs within the same learning environment.
Question 26: A teacher wants to introduce cybersecurity concepts to students. Which CodeHS course pathway is most appropriate?
- AP Calculus BC
- Digital Photography elective
- Physical Education technology module
- Introduction to Cybersecurity or Cybersecurity Fundamentals course (Correct answer)
Correct answer: Introduction to Cybersecurity or Cybersecurity Fundamentals course
CodeHS offers dedicated cybersecurity courses covering topics like encryption, network security, and safe computing practices.
Question 27: Which JavaScript function is used to select an element by its ID?
- document.querySelector()
- document.getElementById() (Correct answer)
- selectElement()
- getElementByClass()
Correct answer: document.getElementById()
The `document.getElementById()` JavaScript function is a fundamental method for interacting with the Document Object Model (DOM). It allows developers to retrieve a reference to an HTML element by its unique `id` attribute. This function is widely used to manipulate specific elements, such as changing their content, style, or adding event listeners, making dynamic web pages possible.
Question 28: What is the purpose of scenario planning?
- To avoid making any decisions until the future is clear
- To prepare for multiple possible futures by developing response strategies (Correct answer)
- To select the single most likely outcome
- To predict the future with certainty
Correct answer: To prepare for multiple possible futures by developing response strategies
Scenario planning explores multiple possible futures to develop flexible strategies and improve organizational resilience.
Question 29: Which of the following is an example of unsupervised learning?
- Predicting house prices from historical sales data
- Spam email classification using labeled examples
- Image recognition trained on labeled photos
- Customer segmentation grouping similar buyers without predefined categories (Correct answer)
Correct answer: Customer segmentation grouping similar buyers without predefined categories
Unsupervised learning finds hidden patterns or groupings in data without labeled outputs; customer segmentation is a classic clustering example.
Question 30: What does 'AP CS A' stand for in the context of CodeHS course offerings?
- Advanced Placement Computer Science A (Correct answer)
- Approved Programming Computer Science Assessments
- Applied Programming Computer Science Applications
- Advanced Programming Computer Science Academics
Correct answer: Advanced Placement Computer Science A
AP CS A stands for Advanced Placement Computer Science A, a College Board course focused on Java programming.
Question 31: Which student organization is commonly associated with CTE computer science pathways that CodeHS students may join?
- Student Government Association
- National Honor Society
- CTSO such as FBLA or TSA (Correct answer)
- Beta Club
Correct answer: CTSO such as FBLA or TSA
Career and Technical Student Organizations (CTSOs) like FBLA (Future Business Leaders) and TSA (Technology Student Association) are tied to CTE CS pathways.
Question 32: What is a stakeholder analysis in strategic planning?
- Listing all employees by department
- Analyzing only shareholder financial returns
- Calculating staff turnover rates
- Identifying who is affected by decisions and understanding their interests and influence (Correct answer)
Correct answer: Identifying who is affected by decisions and understanding their interests and influence
Stakeholder analysis identifies all parties with an interest in the organizations decisions, helping manage relationships and expectations.
Question 33: Which team member is legally required to be present at every IEP meeting?
- The student's parent or guardian (Correct answer)
- Occupational therapist
- District superintendent
- School psychologist
Correct answer: The student's parent or guardian
IDEA mandates parental participation in IEP meetings as a safeguard of parental rights.
Question 34: What is the primary purpose of the 'var' keyword in JavaScript?
- To declare a constant variable
- To declare a variable with a global scope
- To assign a value to a variable
- To declare a variable with a function scope (Correct answer)
Correct answer: To declare a variable with a function scope
In JavaScript, the `var` keyword is used to declare variables that are scoped to the function in which they are declared. This means the variable is accessible anywhere within that function, but not outside of it. While `var` can also create global variables if declared outside any function, its primary characteristic is function-level scoping, unlike `let` and `const` which are block-scoped.
Question 35: Which of the following best describes machine learning?
- A type of database management system
- A programming language used exclusively for robotics
- A system that follows explicitly programmed rules to make decisions
- A subset of AI where systems learn patterns from data without being explicitly programmed (Correct answer)
Correct answer: A subset of AI where systems learn patterns from data without being explicitly programmed
Machine learning is a subset of AI in which algorithms learn from data to improve performance on tasks without being explicitly programmed for each scenario.
Question 36: Which HTML element is used to create an ordered list?
- ol (Correct answer)
- li
- dl
- ul
Correct answer: ol
The `<ol>` HTML element is used to create an ordered list, where each list item is numbered sequentially. This is ideal for presenting steps, rankings, or any sequence where the order of items is significant. Each individual item within the ordered list is defined using the `<li>` (list item) tag.
Question 37: In CodeHS CTE pathways, what does 'secondary to postsecondary alignment' mean?
- Aligning middle school and high school schedules
- Ensuring high school courses map logically to college-level courses to reduce duplication (Correct answer)
- Synchronizing bell schedules across districts
- Transferring student records between schools
Correct answer: Ensuring high school courses map logically to college-level courses to reduce duplication
Secondary to postsecondary alignment ensures that high school CTE coursework connects seamlessly to college programs, preventing students from repeating content.
Question 38: How should a teacher handle discovering that two students submitted identical code on an individual assignment?
- Give both students zeros without discussion
- Follow the school's academic integrity policy and investigate before acting (Correct answer)
- Only penalize the student who submitted second
- Assume it was a coincidence and take no action
Correct answer: Follow the school's academic integrity policy and investigate before acting
Following established academic integrity procedures ensures a fair and consistent response.
Question 39: Which HTML tag is used to link an external CSS file to an HTML document?
- style
- link (Correct answer)
- css
- script
Correct answer: link
The `<link>` HTML tag is specifically designed to create relationships between the current document and an external resource, most commonly an external stylesheet. When used with `rel="stylesheet"` and `href="path/to/style.css"` attributes, it tells the browser to apply the styles defined in the linked CSS file to the HTML document. This separation of concerns improves code organization and reusability.
Question 40: A school wants to align its CodeHS curriculum with the AP Computer Science Principles framework. Which CodeHS feature directly supports this goal?
- Random course shuffler
- Automatic college application submission
- Pre-mapped AP CSP course with aligned lessons and practice PTs (Correct answer)
- Off-platform PDF textbook download
Correct answer: Pre-mapped AP CSP course with aligned lessons and practice PTs
CodeHS offers an AP CSP course with lessons and performance tasks mapped directly to the College Board framework.
Question 41: What is the primary goal of CodeHS's 'Intro to Computer Science' course at the high school level?
- Train students in hardware repair
- Introduce foundational programming and problem-solving skills (Correct answer)
- Teach advanced database administration
- Prepare students for network engineering jobs
Correct answer: Introduce foundational programming and problem-solving skills
The intro course builds foundational programming skills and computational thinking to prepare students for further CS study.
Question 42: What is the difference between strategic and tactical planning?
- They are identical processes at different levels
- Strategic planning deals only with finances
- Strategic sets long-term direction; tactical outlines specific short-term actions (Correct answer)
- Tactical planning is more important than strategic
Correct answer: Strategic sets long-term direction; tactical outlines specific short-term actions
Strategic planning establishes overall direction and goals, while tactical planning defines the specific actions to achieve them.
Question 43: What should a CodeHS professional do when facing a conflict of interest?
- Proceed as normal without disclosure
- Ignore it if no one notices
- Disclose the conflict and recuse if necessary (Correct answer)
- Delegate to an unqualified colleague
Correct answer: Disclose the conflict and recuse if necessary
Transparency through disclosure and recusal when appropriate maintains professional integrity and public trust.
Question 44: Which file extension is typically associated with an Android application package?
- .dmg
- .exe
- .apk (Correct answer)
- .ipa
Correct answer: .apk
The `.apk` (Android Application Package) file extension is the standard format for distributing and installing applications on Android devices. An `.apk` file is an archive file that contains all the elements an Android app needs to be installed correctly on a device, including code, resources, assets, certificates, and manifest file. It's essentially the executable file for Android apps.
Question 45: What does 'overfitting' mean in the context of machine learning?
- The training process takes too long to converge
- The model is too simple to capture patterns in the data
- The model learns the training data too well, including noise, and fails to generalize (Correct answer)
- The model performs poorly on both training and test data
Correct answer: The model learns the training data too well, including noise, and fails to generalize
Overfitting occurs when a model memorizes training data noise and specifics, resulting in high training accuracy but poor performance on unseen data.
CodeHS Code High School Certifications
The CodeHS Certifications exam tests educators and students on the full suite of CodeHS certification programs, covering both technical accreditation content (AI/ML, programming languages, cybersecurity, web development) and CS teaching competencies including curriculum standards, classroom management, and data-driven instruction.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds
These practice questions were written with AI tools. They are not real exam questions. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- help.codehs.com — Test delivery, exam format, score release, time limit, eligibility, fees, passing score, retake policy, score validity, exam information · verified Oct 2026