Posts

Showing posts from 2013

Source-code errors found during compilation

There might be questions in CIE from chapter 3.2 asking about errors found during lexical, syntax and semantic stages of compilation. Below I describe found errors Errors during Lexical Analysis: There are relatively few errors which can be detected during lexical analysis. a) Strange characters Some programming languages do not use all possible characters, so any strange ones which appear can be reported. Note however that almost any character is allowed within a quoted string. b) Long quoted strings (1) Many programming languages do not allow quoted strings to extend over more than one line; in such cases a missing quote can be detected. Languages of this type often have some way of automatically joining consecutive quoted strings together to allow for really long strings. c) Long quoted strings (2) If quoted strings can extend over multiple lines then a missing quote can cause quite a lot of text to be 'swallowed up' before an error is detected. The ...

10 Advices for Students to Choose the Best Teacher

Image
Tuitions are very popular choice of students for revisions. When deciding for a teacher, every teacher is not the same. It is not necessary that the teacher your friends go to is also the best for you. Teachers have different adopted ways of teaching and most stick to the same method for years. For a teacher it might be the proven method but for you it may not work. Learning with a teacher is not about just taking their lectures but it's an art that comprises of many facets. Following are ten advices to follow when choosing a teacher for tuition. #1 Word of mouth:   Hear what others say about a teacher. That friend, class fellow or acquaintance might have an excellent experience in person or their someone had it in past. Word of mouth definitely helps choosing a good teacher but not all teachers are best suited to everyone. It is not at all necessary that others' good experiences stand true for you too. No doubt they are generally good and how well they make y...

P2 Observations required to be considered when appearing for CIE exam.

Following are the points need to be considered when you are finished with the P2 syllabus. 1. STRING MANIPULATION A. Dealing with string as an array B. Dealing with string with respect to ASCII 2. FLOWCHART:  Every flowchart in paper 2 that is required to be converted to its pseudocode or source code is a function or procedure. 3. FILE MANIPULATION:  It is always in pseudocode & requires mostly assumptions. 4. SCREEN/REPORT DESIGNING:  Allocated marks are increasing so more practice is required. 5. NESTING:  All loop forms for nesting must be practiced. 6. FUNCTIONS  A. By value B. By referance  (Take help from 3.5) 7. RECURSION:  Appear only for dry run 8. ARRAYS:  Must be practiced with loops (both simple and nested). 9. RECORD FORMATS (Types, UDT) A. Files saved with these UDT's. B. One field in a UDT as an array. C. UDT variable as an array. D. Dealing with a record format array when one of UDT's field is an ...