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

Fund Prog

BSCS
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)
21 views3 pages

Fund Prog

BSCS
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

LANAO SCHOOL OF SCIENCE AND TECHNOLOGY INC.

Maranding, Lala, Lanao Del Norte


DEPARTMENT OF COMPUTER SCIENCE
1st Semester S.Y 2022-2023
PRELIMINARY EXAMINATION for FUNDAMENTALS OF PROGRAMMING (CC 102)
BSCS 1
Name: _____________________________________ Course & Year: ______________ Date:
_______________ Score: ______________
I. MULTIPLE CHOICE. Choose the letter of the best answer.
1. Any hardware or software in which a program runs. a. simple
a. Programming b. object-oriented
b. Platform c. robust
c. Runtime environment d. secured
d. API 9. A methodology that simplify software development
2. It is also known as desktop application or window- and maintenance by providing some rules.
based application. a. polymorphism
a. web application b. object oriented
b. enterprise application c. inheritance
c. mobile application d. abstraction
d. standalone application 10. Java is ______ because of no explicit pointer.
3. An application that runs on the server side and a. simple
creates dynamic page. b. object-oriented
a. web application c. robust
b. enterprise application d. secured
c. mobile application 11. It adds security by separating the package for the
d. standalone application classes of the local file system from those that are
4. An application that is distributed in nature, such as imported from network sources.
banking applications. a. classloader
a. web application b. bytecode verifier
b. enterprise application c. security manager
c. mobile application d. class
d. standalone application 12. checks the code fragments for illegal code that can
5. An application that is created for mobile devices. violate access right to objects.
a. web application a. classloader
b. enterprise application b. bytecode verifier
c. mobile application c. security manager
d. standalone application d. class
6. Who is the proponent of Java programming 13. It determines what resources a class can access
language? such as reading and writing to the local disk,
a. Charles Babbage a. classloader
b. John von Neumann b. bytecode verifier
c. Anton van Leeuwenhoek c. security manager
d. James Gosling d. class
7. When was the Java programming language 14. Java uses strong memory management.
created? a. simple
a. 1998 b. object oriented
b. 1991 c. Architecture neutral
c. 1995 d. robust
d. 1996 15. Java has no implementation dependent features.
8. Java language is _______because the syntax is a. simple
based on C++. b. object oriented
c. Architecture neutral c. variable initialization
d. robust d. assignment statement
16. We may carry the java bytecode to any platform. 27. A data value, or set of operations that compute a
a. high performance d value.
b. distributed a. expression
c. multi-threaded b. equation
d. portable c. operation
17. java is faster than traditional interpretation since d, string
bytecode is close to native code. 28. Used in mathematical expressions in the same
a. high performance way that they are used in algebra.
b. distributed a. Misc operators
c. multi-threaded b. Logical Operators
d. portable c. Arithmetic Operators
18. It can be numbers, characters or other value that d. Assignment Operators
can be produces by a human or computer. 29. Used to comparing two variables for equality, non-
a. programs equality, greater than, less than, etc.
b. information a. Relational operators
c. data b. logical operators
d. java c. assignment operators
19. A piece of your computer’s memory that is given a d. misc operators
name and type, and can store a value. 30. Used to check whether an expression is true or
a. data false.
b. memory a. bitwise operators
c. variable b. logical operators
d. data type c. assignment operators
20. A variable may start with a dollar sign? d. misc operators
a. true 31. Perform operations on integer data at the
b. false individual bit-level.
21. A variable cannot start with an underscore? a. bitwise operators
a. true b. logical operators
b. false c. assignment operators
22. Reserved words can be used as variable names. d. misc operators
a. True 32. Used in Java to assign values to variables.
b. false a. bitwise operators
23. Space is not allowed in variable names. b. logical operators
a. true c. assignment operators
b. false d. misc operators
24. A java statement that creates a new variable of a 33. A java statement that creates a new variable of a
given type. given type.
a. statement a. statement
b. variable declaration statement b. variable declaration statement
c. initialization c. initialization
d. assignment statement d. assignment statement
25. A statement that stores a value into a variable’s 34. A statement that stores a value into a variable’s
memory location. memory location.
a. statement a. statement
b. variable declaration statement b. variable declaration statement
c. initialization c. initialization
d. assignment statement d. assignment statement
26. when we assign a value to a variable when we 35. when we assign a value to a variable when we
declare a variable is called ______. declare a variable is called ______.
a. statement a. statement
b. variable declaration statement b. variable declaration statement
c. variable initialization a. simple b. object-oriented c. robust d. secured
d. assignment statement 44. A methodology that simplify software
36. Any hardware or software in which a program development and maintenance by providing some
runs. rules.
a. Programming a. polymorphism b. object oriented
b. Platform c. inheritance d. abstraction
c. Runtime environment 45. Java is ______ because of no explicit pointer.
d. API a. simple b. object-oriented c. robust d. secured
37. It is also known as desktop application or window- 46. It adds security by separating the package for the
based application. classes of the local file system from those that are
a. web application imported from network sources.
b. enterprise application a. classloader b. bytecode verifier
c. mobile application c. security manager d. class
d. standalone application 47. checks the code fragments for illegal code that can
38. An application that runs on the server side and violate access right to objects.
creates dynamic page. a. classloader
a. web application b. bytecode verifier
b. enterprise application c. security manager
c. mobile application d. class
d. standalone application 48. It determines what resources a class can access
39. An application that is distributed in nature, such as such as reading and writing to the local disk,
banking applications. a. classloader b. bytecode verifier
a. web application c. security manager d. class
b. enterprise application 49. Java uses strong memory management.
c. mobile application a. simple b. object oriented
d. standalone application c. Architecture neutral d. robust
40. An application that is created for mobile devices. 50. Java has no implementation dependent features.
a. web application a. simple b. object oriented
b. enterprise application c. Architecture neutral d. robust
c. mobile application II. Problem Solving. Solve the given problems and
d. standalone application show your solution. (50 pts)
41. Who is the proponent of Java programming
language? 1. 78 * 2
a. Charles Babbage 2. 39 / 3
b. John von Neumann 3. 83 % 6
c. Anton van Leeuwenhoek 4. (57 / 2) % 3
d. James Gosling 5. 10 + [3 + (21 + 7) / 3]
42. When was the Java programming language 6. 3 + (20 % 8) / 2 + 7
created? 7. 5 + [7 * (2 + 8) / 3]
a. 1998 8. 3.2 * 5 + 7.25 * 3/ 2
b. 1991 9. 80 % [3 * (11 + 8) - 2] *3
c. 1995 10. (7.8 * 15) + [3.15 + 2*10]
d. 1996 11. 11 % 2 /0
43. Java language is _______because the syntax is
based on C++.

“Trust yourself. You know more than you think you do.”
Prepared by: Approved by:
LESTLIE JOY P. LIGUTOM CRISPO J. SENO JR.
Instructor, DCS Coordinator, DCS

You might also like