0% found this document useful (0 votes)
26 views

Class 6 Computer CH 8 Worksheet

Uploaded by

Soumen Pradhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Class 6 Computer CH 8 Worksheet

Uploaded by

Soumen Pradhan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DELHI PUBLIC SCHOOL RAMPURHAT

CLASS: VI
CHAPTER 8

Worksheet 1
1. Fill in the blanks using the given words.

memory pseudocode loop Boolean Coding


a. The informal way of writing the code before its final implementation is called as .

b. An action which repeats again and again till a particular condition is met is called .

c. variables are used to hold data in the computer’s .

d. is the process of giving written commands to a computer, that can be saved and executed.

e. datatype is used to represent the values True and False in a logical expression.

2. State whether the following statements are true (T) or false (F).

a. Different programming language can have different syntax.

b. The output of 47 mod 12 is 10.

c. The output of 8<10 is TRUE.

d. Operators that work upon two operands are called unary operators.

e. The ‘=’ is known as assignment operator.

3. Write the type of operator and the result for the following expression.

OPERATOR EXPRESSION TYPE RESULT


a. Eng = 90 Sci = 96 Eng + Sci
b. Score1 = 100 Score2 = 90 Score1 <= score2
c. A = 9 B=3 A+ = B
d. X = 2 Y=5 (Y > X AND Y + X == 7)
e. X = TRUE Y = FALSE X and Y

4. If a = 12, b = 3 and c = 8, then evaluate the following expressions.

a. d = a – b + c → The value of d is .

b. a– = b → The value of a is .

c. c++ → The value of c is .

d. a < b or c == 8 → The output will be .

e. a > b and a > c → The output will be .


5. Solve the following expressions.

a. x=5 b. x = “my ”
y = 10 y = “country”
a=3
z = “India is ” + x + y
b=x+y–3
b++ m = “Ram ”
a-- a = x + “name is” + m
b+ = a
What will be the final values of a and z?
What will be the final values of a, b, x and y?

Worksheet 2
1. Fill in the blanks using the given words.

Var Integer algorithm address debugging


a. Step-by-step instructions to solve a problem is called .

b. The process of finding errors in a program and fixing them is called .

c. is a numeric data type that can hold whole numbers.

d. variable has three main aspects: a name, a value and an in the computer’s memory.

e. The keyword is used to declare a variable in JavaScript.

2. State whether the following statements are true (T) or false (F).

a. The output of 89 >= 89 is FALSE.

b. The output of 45! = 45 is TRUE.

c. Operators that work upon single operand are called unary operators.

d. The == is called as assignment operator.

e. Logical operators are used to evaluate whether an expression is True or False.

3. Write the type of operator and the result for the following expression.

OPERATOR EXPRESSION TYPE RESULT


a. Total = 345 Subject = 5 Total / subject
b. Score1 = 100 Score2 = 90 Score1! = score2
c. A = 9 B=3 A* = B
d. X = 2 Y=5 (Y>X or Y+X==17)
e. X = TRUE Y = FALSE X or Y

4. If a = 12.6 , b = 3.5 and c = 8, then evaluate the following expressions.

a. d = a * b → The datatype of d is .

b. c++ → The datatype of c is .


c. x = a / 2 → The datatype of x is .

d. a>c and b>a → The datatype of answer is .

e. 1==0 or a>c → The datatype of d is .

5. Solve the following expressions:

a. x = 5 b. x = “my ”
y = 10 y = “name ”
a=3 z = “India.”
b=x+3–y m = “Ram ”
b-- a = x + y + “ is ” + m
a++ b = m + “ is living in ” + z
a* = b What will be the final values of a and b?
What will be the final values of a, b, x and y?

You might also like