0% found this document useful (0 votes)
6 views3 pages

Grade 8 Chap 5 Notes

The document is a lesson plan for Grade 8 Computer Science at Veda International School, focusing on conditional, looping, and jumping statements in Java. It includes definitions of key terms, short answer questions about looping statements, the use of 'if' statements, the 'default' keyword in switch statements, and explanations of syntax and logical errors. Additionally, it covers the 'for' loop syntax, differences between 'break' and 'continue' statements, and the concept of jumping statements.

Uploaded by

oxfordmeera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Grade 8 Chap 5 Notes

The document is a lesson plan for Grade 8 Computer Science at Veda International School, focusing on conditional, looping, and jumping statements in Java. It includes definitions of key terms, short answer questions about looping statements, the use of 'if' statements, the 'default' keyword in switch statements, and explanations of syntax and logical errors. Additionally, it covers the 'for' loop syntax, differences between 'break' and 'continue' statements, and the concept of jumping statements.

Uploaded by

oxfordmeera
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Veda International School

Kusugal Road, Hubballi Ph: 0836-2002275


(Proposed ICSE Board)

Grade : 8

Subject : Computer Date :

CHAPTER-5 : CONDITIONAL, LOOPING AND JUMPING STATEMENTS IN JAVA

QI)NEW WORDS
1. Initialisation
2. Executing
3. Violating
4. Default keyword
5. Increment
6. Decrement
7. Transferred
8. Terminates
9. Iteration

QII) Short answer type questions.

1. What is looping statements in java?


Ans: Looping statements are the control flow statements that allow us
to repeatedly execute a set of statements for a given number of times.

2. What is the use of the if statements in java?


Ans: It allows us to test a condition before executing a block of statements.

3. What is the use of default keyword in switch statement?


Ans: If there is no matched case found, the default keyword specifies some
code to execute.

4. What is syntax error?


Ans: Syntax error occurs due to violating rules of Java programming
language.

QII) Long answer type questions.

1. What is the for loop in Java? Write its syntax.


Ans: For loop in Java repeat a set of statements a definite number of times.
Syntax :
for (Initialisation ; conditional expression ; increment/decrement)
{
[statements]
}
2. What is the difference between break and continue statements?
Ans: Break statements – * It forcefully terminates the loop where it lies.
* It skips the rest of the statements next to
break keyword.
Continue statements – * It forces the next iteration of the loop to
take place.
* Skips the current iteration.

3. What are jumping statements? Write the names of any two jumping
statements.
Ans: The control of the program needs to be transferred out of the loop body
even if all the values of the iterations of the loop have not
been completed. So jumping statements are used.
Break and Continue are two jumping statements in Java.

4. What is the difference between syntax error and logical error?


Ans: Syntax Error – The error that occur due to violating the rules of Java
programming language are called Syntax error.
Logical error – The error where the program compiles and
executes successfully but gives the incorrect result.

You might also like