Monday, 6 April 2015

BASICS OF JAVA (FILL IN THE BLANKS ASSIGNMENT)

1.      The sequence of instructions is called a _____________.
2.      Computer can understand only one language called _________________
3.      FORTRAN, BASIC, COBOL, C and C++ are some of the _____________.
4.      In structured language like C, the problem is broken into smaller blocks called ________.
5.      Languages like Simula, Smalltalk, C++ and Java adopt ____________approach in programming.
6.      Every object has a _____________ and ____________.
7.      A class inherits state (attribute) and behaviour (method) from its _____________.
8.      ____________ is a concept in OOP which hides unimportant implementation details from other objects.
9.      _____________ lets us ignore the irrelevant details and concentrate on essential ones.
10.  When two different objects interpret a single message differently and respond differently, it is known as _____________.
11.  Objects interact and communicate with each other using _____________
12.  Additional information passed along with the message is called _____________.
13.  Java was developed by _____________.
14.  The interpreter of Java is called JVM. Its full form is _____________.
15.  A program’s source code written in any language is translated into ____________ code with the help of a language translator.
16.  We work with an IDE called _____________for learning to create and execute Java programs.
17.  The full form of IDE is _____________ .
18.  javac is a Java _____________which provides the keywords and syntax along with data types, operators that are used in Java.
19.  Keywords are also called _____________words.
20.  Upper case and lower case of the same letter are treated different in Java. Thus Java is case _____________..
21.  Java uses a _____________character set that includes many more characters than ASCII character set.
22.  The operator that returns the remainder of the division of two operands is called _____________, its symbol is  ______
23.  The six relational operator symbols are _____________and ______.
24.  The logical operator, NOT does not need two operands to operate and so is a _____________operator.
25.  __________and _________are the two Boolean values.
26.  The three basic logical operators in Java are AND, OR  and NOT These are represented by the symbols ____, ____and             respectively.
27.  ? and : together is used for  _____________operation and works on ________ operands.
28.  = symbol is _____________operator.
29.  In the expression X++ , ++ is _____________operator and in - - X, - -  is _____________operator.
30.  The compiler evaluates an expression, according to the rule of  _____________.
31.  To overrule the precedence of the operators, _____________are used.
32.  _____________are names to identify the address memory cell where the data are stored.
33.  Constant values also called _____________, remain unaltered throughout the execution of the program.
34.  Java does not allow any type of mismatches of data and hence it is a _____________typed language.
35.  Java defines four types of integers: _____,_  ___,  ____and _______.
36.  _____________and _____________are floating point representation of numbers.
37.  Char type of data is identified by the single quotation mark with which it is enclosed. For example ‘_____________.
38.  String literal is a sequence of characters enclosed within _____________quotation marks.
39.  In Java a group of statements may be enclosed in braces to form a _____________.
40.  Two primary components make up the implementation of a class in Java: the class _____________and the class _____________.
41.  A class in Java starts with the key word ___________followed by a valid identifier. For example: _____________..
42.  The body of a class consists of the member _____________and member _____________of the class.
43.  _____________symbol indicates that whatever follows after it are comments in a  single line.
44.  Comments of more than one line can be given by enclosing them by _____ and ___symbols.
45.  Blank lines and spaces inserted within a program to enhance readability and clarity are termed as _____.
46.  Every Java application has a _____.method that tells how and in what sequence other methods are used.
47.  Every statement should terminate with the symbol _____ in Java.
48.  Main window of BlueJ is called  ____       _.
49.  In BlueJ the objects created are displayed in ____  _.
50.  ____ .     file that appears on the class structure overview of BlueJ may be used for documenting the project.
51.  In BlueJ we enter the codes in _____   window.
52.  After entering the codes we need to ____ the codes before executing the program.
53.  After executing the main method, the output appears on the ____       of BlueJ.
54.  We may click on to help symbol __ on the right bottom of the editor screen to know about the error in the program code.

55.  Computer ____     is a sequence of instructions to perform a specific task.

56.  ____      is step-by-step instruction written in logical sequence.

57.  ____       are similar to program codes without the syntax of a language.

58.  ____       is a diagrammatic representation of algorithm.

59.  Removing the syntax, semantic and logical errors in a program is called __________.

60.  The statement within the block is executed one after the other. This type of structure is called______ structure.

61.  Use of ______ statement creates an unconditional jump within program.
62.  ________ structure is used when tranfer of control takes place to the other part of the program depending on some conditon. 
63.  Java offers three selection statements: ______ and _____.
64.  While if statement checks only for the condition that evaluates true,_____ structure checks for both truth and falsity of a condition.
65.  The ______ structure in Java consists of series of case keyword.
66.  Each of the case value must be a unique literal ______ and not a _______.
67.  _____ statement  is used to skip out of switch structure.
68.  Switch structure is an efficient way of writing multiple ____ statements that contains only ______ conditions of integral values.
69.  Repetitive statements in programming are called _______ or ______.
70.  In Java the looping statements ____,_____ and ______ are used for performing iteration.
71.  ______ part of the loop  contains assignment of value to a  control variable.
72.  ­­­­________ part of the loop is to test whether a boolean expression evaluates to true or false.
73.  _______ part is used for updating the initial value of the control variable.
74.  For executing a statement or a block of codes repeatedly a specified number of times ___ loop is used.
75.  ____ and _____ loops can be used where the number of iteration is not known before hand.
76.  ____ statement skips the rest of the statement of the body of the loop and exits the loop before the iteration is completed.
77.  ______ statement forces to skip the rest of the statement of the body of the loop before the loop finishes the  iteration and passes control to execute the ___  iteration of the loop.
78.  break and continue statements used with ____ can transfer control to any part of the program.
79.  When break and continue statements are used within nested loops the ______ loop gets affected.










ANSWER KEY
1.      The sequence of instructions is called a Program.
2.      Computer can understand only one language called Machine /binary language.
3.      FORTRAN, BASIC, COBOL, C and C++ are some of the High Level Languages.
4.      In structured language like C, the problem is broken into smaller blocks called modules.
5.      Languages like Simula, Smalltalk, C++ and Java adopt object oriented approach in programming.
6.      Every object has a state, behaviour and identity.
7.      A class inherits state (attribute) and behaviour (method) from its super class.
8.      Encapsulation is a concept in OOP which hides unimportant implementation details from other objects.
9.      Information hiding lets us ignore the irrelevant details and concentrate on essential ones.
10.  When two different objects interpret a single message differently and respond differently, it is known as polymorphism.
11.  Objects interact and communicate with each other using messages
12.  Additional information passed along with the message is called parameter.
13.  Java was developed by Sun Microsystems.
14.  The interpreter of Java is called JVM. Its full form is Java Virtual Machine.
15.  A program’s source code written in any language is translated into machine code with the help of a language translator.
16.  We work with an IDE called BlueJ for learning to create and execute Java programs.
17.  The full form of IDE is Integrated Development Environment.
18.  javac is a Java compiler which provides the keywords and syntax along with data types, operators that are used in Java.
19.  Keywords are also called Reserved words.
20.  Upper case and lower case of the same letter are treated different in Java. Thus Java is case sensitive..
21.  Java uses a Unicode character set that includes many more characters than ASCII character set.
22.  The operator that returns the remainder of the division of two operands is called modulus, its symbol is  %.
23.  The six relational operator symbols are >, >=,  <, <=, ==,  and !=.
24.  The logical operator, NOT does not need two operands to operate and so is a unary operator.
25.  True and false are the two Boolean values.
26.  The three basic logical operators in Java are AND, OR  and NOT These are represented by the symbols &&, || and ! respectively.
27.  ? and : together is used for  conditional operation and works on three operands.
28.  = symbol is assignment operator.
29.  In the expression X++ , ++ is increment operator and in - - X, - -  is decrement operator.
30.  The compiler evaluates an expression, according to the rule of  precedence.
31.  To overrule the precedence of the operators, parenthesis  are used.
32.  Variables are names to identify the address memory cell where the data are stored.
33.  Constant values also called literals, remain unaltered throughout the execution of the program.
34.  Java does not allow any type of mismatches of data and hence it is a strongly typed language.
35.  Java defines four types of integers: byte, short, int and long.
36.  Float and double are floating point representation of numbers.
37.  Char type of data is identified by the single quotation mark with which it is enclosed. For example ‘computer’.
38.  String literal is a sequence of characters enclosed within double quotation marks.
39.  In Java a group of statements may be enclosed in braces to form a block.
40.  Two primary components make up the implementation of a class in Java: the class declaration and the class body.
41.  A class in Java starts with the key word class followed by a valid identifier. For example:class student..
42.  The body of a class consists of the member variables and member methods of the class.
43.  // symbol indicates that whatever follows after it are comments in a  single line.
44.  Comments of more than one line can be given by enclosing them by /* and */ symbols.
45.  Blank lines and spaces inserted within a program to enhance readability and clarity are termed as white spaces.
46.  Every Java application has a main method that tells how and in what sequence other methods are used.
47.  Every statement should terminate with the symbol ; in Java.
48.  Main window of BlueJ is called  project window.
49.  In BlueJ the objects created are displayed in object bench.
50.  README.TXT file that appears on the class structure overview of BlueJ may be used for documenting the project.
51.  In BlueJ we enter the codes in Editor window.
52.  After entering the codes we need to compile the codes before executing the program.
53.  After executing the main method, the output appears on the Terminal Window of BlueJ.
54.  We may click on to help symbol ? on the right bottom of the editor screen to know about the error in the program code.

55.  Computer program is a sequence of instructions to perform a specific task.

56.  Algorithm  is step-by-step instruction written in logical sequence.

57.  Pseudo codes are similar to program codes without the syntax of a language.

58.  Flowchart is a diagrammatic representation of algorithm.

59.  Removing the syntax, semantic and logical errors in a program is called debugging.

60.  The statement within the block is executed one after the other. This type of structure is called sequential structure.

61.  Use of goto statement creates an unconditional jump within program.
62.  Control structure is used when tranfer of control takes place to the other part of the program depending on some conditon. 
63.  Java offers three selection statements: if, if...else and switch.
64.  While if statement checks only for the condition that evaluates true, if...else structure checks for both truth and falsity of a condition.
65.  The switch structure in Java consists of series of case keyword.
66.  Each of the case value must be a unique literal constant and not a variable.
67.  break statement  is used to skip out of switch structure.
68.  Switch structure is an efficient way of writing multiple if statements that contains only equality conditions of integral values.
69.  Repetitive statements in programming are called iteration or looping.
70.  In Java the looping statements for, while and do...while are used for performing iteration.
71.  Initialization part of the loop  contains assignment of value to a  control variable.
72.  Condition part of the loop is to test whether a boolean expression evaluates to true or false.
73.  Modification part is used for updating the initial value of the control variable.
74.  For executing a statement or a block of codes repeatedly a specified number of times for loop is used.
75.  while and dowhile loops can be used where the number of iteration is not known before hand.
76.  break statement skips the rest of the statement of the body of the loop and exits the loop before the iteration is completed.
77.  continue statement forces to skip the rest of the statement of the body of the loop before the loop finishes the  iteration and passes control to execute the next  iteration of the loop.
78.  break and continue statements used with label can transfer control to any part of the program.

79.  When break and continue statements are used within nested loops the inner loop gets affected.

6 comments:

  1. Inspiring writings and I greatly admired what you have to say , I hope you continue to provide new ideas for us all and greetings success always for you..Keep update more information..
    python Training in Pune
    python Training in Chennai
    python Training in Bangalore

    ReplyDelete
  2. Good Blog
    For data science training in Bangalore, Visit:
    Data Science training in bangalore

    ReplyDelete