You are on page 1of 8

SPECIFIC INSTRUCTION FOR THE STUDENT

Qualification: Programming (JAVA) NCIII


Full Units of • Perform object-oriented analysis and design in Java Programming
Competency • Create and fine tune Java technology applications using object-oriented
programming concept.
Student Name

Given the necessary tools, materials, instruments, and equipment, perform the following task in 4
hours:

Description of Project and Task:


• Create a system for Registration which will save the records of the user’s information into the
database.

Project Title: “Sample Registration System”

Screen Design

Menu Frame

Sign In Frame

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


Sign Up Frame

Main Frame

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


Specifications
- The System is generally composed of 4 Frames (Menu, Sign Up, Sign In, Main).

Menu Frame (refer to Menu Frame Screen Display for layout)


• Sign In <Button>
• Sign Up <Button>
• Exit <Button>

➢ If the user clicks on the Sign In button, it will open the Sign In Frame and the Menu
Frame will close.
➢ If the User clicks on the Sign Up button, it will open the Sign Up Frame and the Menu
Frame will close.
➢ If the User clicks on the Exit button, the Menu frame will close.

Sign Up Frame (refer to the Sign Up Frame Screen Display for layout)
• First Name <TextBox>
• Middle Name <TextBox>
• Last Name <TextBox>
• Gender <TextBox>
• Birthdate <TextBox>
• Email <TextBox>
• Password <TextBox>
• Exit <Button>
• Sign Up <Button>

➢ If the user clicks on the Sign Up button, it will register the inputted information into
the database. If the insertion of data to database is successful, a window will alert
saying “Registration Successful!”. Else if the insertion of data to database is no
successful, a window will alert saying “Registration Failed!”.
➢ If the user clicks on the Exit button, the Menu Frame will open and the Sign Up Frame
will close.

Sign In Frame (refer to the Sign In Frame Screen Display for layout)
• Email <TextBox>
• Password <TextBox>
• Sign In <Button>
• Exit <Button>

➢ If the user clicks on the Sign In button, it will validate if the inputted Email and
Password is Registered in the database. If the inputted Email and Password is
registered in the database, a window will alert saying “Welcome!” and will open the
Main Frame and the Sign In Frame will close. If the inputted Email and Password is
Not Registered in the database, a window will alert saying “Wrong Email/Password!”
and will stay on the Sign In Frame.
➢ If the user clicks on the Exit button, it will open the Menu Frame and closes the Sign
In Frame.

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


Main Frame (refer to the Main Frame Screen Display for layout)
• Add <Button>
• Close <Button>
• *The Display Pane <JTable>
➢ Upon opening the Main Frame, the Display Pane will display all the registered users
from the database.
➢ If the user clicks on the Add button, it will open the Sign Up Frame and closes the
Main Frame.
➢ If the user clicks on the Close button, it will open the Menu Frame and closes the
Main Frame.

Database Specifications
Database Name: “dbYourLastname”
Table Name: “tblUsers”
tblUsers
Data
No. Field Name Description Size Format Range
Type
1 First_Name User’s Firstname varchar 32 A-Z
Middle_Name User’s varchar 32 A-Z
2
Middlename
3 Last_Name User’s Lastname varchar 32 A-Z
4 Gender User’s Gender varchar 32 A-Z
5 Birthdate User’s Birthdate date YYYY-MM-DD
6 Email User’s Email varchar 32 A-Z
7 Password User’s Password varchar 32 A-Z

Final Output
➢ The Final output should be saved in a Java Project with the file name format
“Java_YourLastname” which should contain the 4 Frames.

Marking Scheme:
No. Criteria Max Score
Score
1 Menu Frame layout is followed 5
2 Menu Frame (Sign In, Sign Up, and Exit button are working) 8
3 Sign In Frame layout is followed 5
4 Sign In Frame (Email, and Password Textbox is working) 8
5 Sign In Frame (Sign In button is working) 16
6 Sign Up Frame layout is followed 5
7 Sign Up Frame (Textbox fields are working) 8
8 Sign Up Frame (Sign Up button is working) saves record to the 16
database
9 Main Frame (layout is followed 5
10 Main Frame (Add, and Close button are working) 8
11 Main Frame displays registered users from the database. 16
TOTAL 100
Assessment Result: Competent Not Yet Competent

Student’s Name & Signature Date:

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


PROGRAMMING (JAVA) NCIII
MULTIPLE CHOICE (30 POINTS)
1. He led the team of engineers in Sun Microsystems in development of Java.
a. James Gosling
b. John Cameron
c. James Cameron
d. John Gosling
2. It is responsible for loading classes into the JVM.
a. Class Loader
b. Object Loader
c. Java Loader
d. Java Code Loader
3. Java has derived most of its syntax from ________.
a. C and C++
b. VB.Net
c. PHP
d. Pascal
4. What is the format name of the file that has been created when a Java source code has been compiled?
a. JVM
b. Bytecode
c. Interpreter
d. compiler
5. When a Java source code has been compiled, what is the extension name of the file that has been created?
a. .cpp
b. .class
c. .java
d. .javac
6. This contains the JVM resources in order to start with Java Development.
a. JVM
b. Platform
c. JRE
d. JDK
7. It is a software development environment used for developing Java applications and applets. It includes the Java
Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation
generator (Javadoc) and other tools needed in Java development.
a. JRE
b. Platform
c. JDK
d. JVM
8. This is software environment where the java program runs.
a. Compiler
b. Object Oriented platform
c. Syntax
d. Java platform
9. This is a capability of a single program to execute several tasks independently and continuously.
a. Portable
b. Multithreading
c. Distributed
d. Dynamic
10. Java is architecture neutral….
a. Because there are no implementation dependent features.
b. Because classes are loaded on demand
c. Because there is a lack of pointers that avoids security problems.
d. Because it provides securities by default.

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


11. This class is used in converting one data type into another.
a. Primitive class
b. Wrapper class
c. Main class
d. Public class
12. ____________________ is used by the JDK tool to generate HTML documentation for java programs.
a. Single-line comment
b. HTML comment
c. Java Doc
d. Comments
13. What is the corresponding Wrapper class for the primitive data type char?
a. Char
b. Class
c. Character
d. Integer
14. Single-line comments are denoted by __________.
a. --
b. <!-- -->
c. //
d. */-- -- /*
15. ____________ is used to store specific value or literals that can be used in different parts of the program.
a. Identifiers
b. Class
c. Variables
d. Methods
16. The _____________ operator works on integer values, by manipulating its bit-pattern equivalent.
a. bitwise
b. binary
c. shift
d. cast
17. These are used for its manipulations.
a. Bitwise and Bitshift Operators
b. Bitwise only
c. Bitshift only
d. Bitwise or Bitshift Operatore
18. It is a symbol used to evaluate if two operands are equals.
a. <>
b. =
c. !=
d. ()
19. These are symbols that are used to perform specific action.
a. Operands
b. Operation
c. Operators
d. Conditions
20. This is an arithmetic operator that needs only one operand to perform its task.
a. Bitwise Operator
b. Assignment Operator
c. Ternary Operator
d. Cast Operator
21. An __________ can be a value, variable or computation of values and variables using operators and evaluate them to
a value.
a. Expression
b. Statement
c. Operation
d. Assignment
22. If (x<0) || (X>10) is an example of a ___________ expression.
a. bitwise
b. logical
c. cast
d. relational

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


23. what is the symbol for modulus?
a. ~
b. %
c. !
d. &

24. Also called the ternary operator, these are used to evaluate which value should be returned to a variable.
a. Arithmetic
b. Conditional
c. Assignment
d. Logical
25. The following are the branching statement in java except:
a. return
b. continue
c. break
d. finalize
26. The __________ statement causes the program flow to exit from the body of the switch construct.
a. default
b. goto
c. break
d. continue
27. These are programming blocks that are used to redirect the flow of your program.
a. Decision Structure
b. Control Structures
c. Expressions
d. Conditions
28. The _____________ loop is commonly used whenever we traversed.
a. while
b. for
c. do-while
d. repeat
29. ____________ is a property of array objects that you can use to get the size of the array.
a. Length
b. Size
c. Array Size
d. Width
30. The if statement enables a program to selectively execute other statements, based on some criteria. These criteria
must be _____________.
a. String data type
b. Integer data type
c. Java identifiers
d. Boolean expression

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT


ANSWER SHEET

Student’s Name:

Qualification Title: Programming (JAVA) NCIII

Name of School:
Date of Institutional
Assessment:

MULTIPLE CHOICE
ENCIRCLE the letter of your choice.

1. A B C D 16. A B C D
2. A B C D 17. A B C D
3. A B C D 18. A B C D
4. A B C D 19. A B C D
5. A B C D 20. A B C D
6. A B C D 21. A B C D
7. A B C D 22. A B C D
8. A B C D 23. A B C D
9. A B C D 24. A B C D
10. A B C D 25. A B C D
11. A B C D 26. A B C D
12. A B C D 27. A B C D
13. A B C D 28. A B C D
14. A B C D 29. A B C D
15. A B C D 30. A B C D

PROGRAMMING (JAVA) NCIII: INSTITUTIONAL ASSESSMENT

You might also like