IGCSE COMPUTER SCIENCE PAPER #2
KNOWLEDGE EXAM QUESTIONS WITH
COMPLETE ANSWERS
Char - Answer-single character
String - Answer-An(ordered) sequence of characters
Example of char - Answer-A OR ?
Example of String - Answer-hello world
Boolean - Answer-A data type with two possible values
Example of Boolean - Answer-True/ False
conditional statement- IF example - Answer-IF X < 0 THEN
PRINT "Negative" ELSE
PRINT "Not negative" ENDIF
conditional statement- CASE example - Answer-CASE X OF
1: PRINT ("ONE")
2: PRINT ("TWO")
OTHERWISE PRINT ("Less than ONE or more than TWO")
ENDCASE
repeat... until loop - Answer-a repetition where the number of repeats is not known that
is completed at least once
FOR... TO ... NEXT - Answer-a set number of repetitions
WHILE ... DO ... ENDWHILE - Answer-A repetition where the number of repeats is not
known that may never be completed
What is a conditional statement? - Answer-To allow different routes through a program.
dependent on meeting certain criteria
Flowchart symbols -Oval - Answer-Start/End
Flowchart symbols Arrows - Answer-connector
Flowchart symbols Parallelogram - Answer-Input/Output
KNOWLEDGE EXAM QUESTIONS WITH
COMPLETE ANSWERS
Char - Answer-single character
String - Answer-An(ordered) sequence of characters
Example of char - Answer-A OR ?
Example of String - Answer-hello world
Boolean - Answer-A data type with two possible values
Example of Boolean - Answer-True/ False
conditional statement- IF example - Answer-IF X < 0 THEN
PRINT "Negative" ELSE
PRINT "Not negative" ENDIF
conditional statement- CASE example - Answer-CASE X OF
1: PRINT ("ONE")
2: PRINT ("TWO")
OTHERWISE PRINT ("Less than ONE or more than TWO")
ENDCASE
repeat... until loop - Answer-a repetition where the number of repeats is not known that
is completed at least once
FOR... TO ... NEXT - Answer-a set number of repetitions
WHILE ... DO ... ENDWHILE - Answer-A repetition where the number of repeats is not
known that may never be completed
What is a conditional statement? - Answer-To allow different routes through a program.
dependent on meeting certain criteria
Flowchart symbols -Oval - Answer-Start/End
Flowchart symbols Arrows - Answer-connector
Flowchart symbols Parallelogram - Answer-Input/Output