IGCSE Computer Science Quiz: Security Essentials

This quiz assesses your understanding of key security concepts relevant to the Cambridge IGCSE Computer Science syllabus. It covers topics like authentication, input validation, and security best practices. To succeed, you should be familiar with basic programming logic, common security threats, and preventative measures.

Scenario: A small online store, "TechGadgets," needs to secure its customer data. They use a simple system to verify user logins, as shown in the code below. The quiz will ask you to analyze this code and answer questions about general security practices.

            
01. SET valid_users TO ["admin", "user1", "user2"]
02. INPUT username
03. IF username IN valid_users THEN
04.     INPUT password
05.     IF password = "Secret123" THEN
06.         OUTPUT "Login successful"
07.     ELSE
08.         OUTPUT "Incorrect password"
09.     ENDIF
10. ELSE
11.     OUTPUT "User not found"
12. ENDIF
            
        
Question 1 of 10

Quiz Results

Previous Attempts