Programming Logic & Design (MIDTERMS)
It is a set of instructions for a computer to follow.
Computer Program
Computer Algorithm
Programming
Computer Instruction
Arrange these data types from lowest to highest precision. Widening conversion (implicit casting).
Byte
Short
Int
Long
Float
Double
Mish and Mash.
Stores whole numbers from -32,768 to 32,767.
Char
Stores whole numbers from -2,147,483,648 to 2,147,483,647.
Byte
Stores fractional numbers. Sufficient for storing 6 to 7 decimal digits.
Double
Stores true or false values.
Boolean
Stores a single character or letter.
Long
Stores whole numbers from -128 to 127.
Short
Stores whole numbers from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Float
Stores fractional numbers. Sufficient for storing 15 decimal digits.
Int
Program that translates assembly language instructions into machine language.
Translator
Compiler
Interpreter
Assembler
Select two (2) common low-level languages.
Computer Language
Machine Language
Assembly Language
Java Language
Programming languages that use natural languages, such as the English language.
Low-level Languages
Natural Languages
English Language
High-level Languages
Predefined data types by the language and named by a keyword.
Primitive Data Types
Data Types
Non-primitive Data Types
Normal Data Types
Used to specify the set of values and their operations.
Variable
Data Types
Constant
Type Casting
Translates one (1) program statement at a time.
Interpreter
Translator
Compiler
Assembler
Rules of the language. Example is print or write to produce an output.
Commands
Syntax Errors
Syntax
Logical Errors
A name for a memory location that stores a specific value, such as numbers and letters.
Variable
Data Types
Constant
Type Casting
A memory location whose value cannot be changed during program execution.
Variable
Data Types
Constant
Type Casting
These are program statements that carry out tasks that the program has to perform.
Coding
Programming
Commands
Syntax
Arrange these problem-solving processes from first to last step.
Problem Analysis
Algorithm Design
Coding
Execution
Converting a value from a specific type to a variable of another type.
Variable
Data Types
Constant
Type Casting
Arrange these data types from highest to lowest precision. Narrowing conversion (explicit casting).
Double
Float
Long
Int
Short
Byte
A step-by-step problem-solving process in which a solution is arrived at in a finite amount of time.
Programming
Flowchart
Algorithm
Pseudocode
A combination of natural language and programming language.
Pseudocode
Flowchart
Algorithm
Java Programming Language
A named constant can be assigned a value only once.
True
False
Select ALL operators used in java.
Arithmetic Operators
Mixed Operators
Logical Operators
Assignment Operators
Functional Operators
Relational Operators
Conjunctional Operators
Indicates the direction of the process flow.
Connector
Flow Lines
Process
Predefined Process
Used to represent a process step or activity.
Data
Activity Block
Predefined Process
Process
Which operators uses +, -, *, /, and %?
Arithmetic Operators
Logical Operators
Assignment Operators
Relational Operators
Which operators uses >, >=, <, <=, ==, and !=?
Arithmetic Operators
Logical Operators
Assignment Operators
Relational Operators
What is Predefined Process?
Used to represent a process step such as computation, initialization, etc.
The use of an algorithm specified outside the program.
The direction of the process flow by connecting other shapes
This represents the data used as inputs or outputs.
Which operators uses &&, ||, ^, and !?
Arithmetic Operators
Logical Operators
Assignment Operators
Relational Operators
Which operators uses =, +=, -=, *=, /=, %=, ++, and --?
Arithmetic Operators
Logical Operators
Assignment Operators
Relational Operators
Approach to analyzing such complex problems by planning software development and controlling the development process.
Problem Analysis
Programming Procedural
Programming Methodology
Programming Analysis
The problem is broken down into functions that perform one (1) task each.
Functional Programming
Procedural Programming
Object-Oriented Programming
Evaluational Programming
Mish and Mash.
An expression that has operands of different data types.
Mixed Expression
An expression that returns a numeric value.
Arithmetic Expression
An expression that returns a boolean value when evaluated.
Logical Expression
In Object-Oriented Programming, the solution resolves around entities or objects that are part of the problem.
True
False
A high-level programming language used to write programs that run on any operating system or device.
Operating Language
Java Language
Programming Language
Natural Language
Select ALL expressions used in java.
Arithmetic Expression
Mixed Expression
Logical Expression
Assignment Expression
Functional Expression
Relational Expression
Conjunctional Expression
What do we mean by "expression"?
An expression cannot return other type of values such as boolean or string.
A construct made up of variables and operators that evaluates to a single value.
Translates java bytecode into machine language and executes it.
Source Code
Java Compiler
Java Environment Machine
Java Interpreter
Programming statements written in a high-level language is called 'source code'.
True
False
It is a collection of rules that specifies which operations need to be performed in an expression.
Order of Prejudice
Order of Presidence
Order of Arrangement
Order of Precedence
At which java package does String class belong to?
Java.io
Java.util
Java.awt
Java.lang
A set of tools that help write programs easily, such as NetBeans.
Development Environment
Java Virtual Machine
Java Environment
Java Environment Machine
Select ALL true statements about scanner.
Import java.util.*; is an example of how to import the class.
A class in the java.util package.
The methods of this class are used to read data from the standard input device and store data into variables.
Scanner in = new Scanner (System.input);
Mish and Mosh.
Used to create an output in a specific format.
Println()
Moves the insertion point to the following line after the output is displayed.
Print()
Displays an output, and the insertion point stays in the current line.
Printf()
Which is NOT a characteristic of an applet?
It runs in a browser.
It is a program embedded in a Web page.
It is a stand-alone program.
Statement 1. Console application supports character output to a computer.
Statement 2. Windowed application creates a GUI with elements such as menus, buttons, dialog boxes, etc.
Statement 1 is True and Statement 2 is False.
Statement 1 is False and Statement 2 is True.
Both statements are True.
Both statements are False.
A format specifier is a placeholder for a numeric value.
True
False
A _____ is the basic unit of a Java program.
Class
Main
Argument
Code
Mix and Match.
A name of a program component, such as class, object, or variable.
Argument
A special method and is the entry point of the program execution.
String
A series of characters that appear as exactly as entered.
Identifiers
An information passed to a method so it can perform its task.
Statement
An action that the program has to perform.
Main
Select ALL requirements in naming identifiers.
It must begin with a letter of the English alphabet, an underscore, or a dollar sign.
An identifier cannot begin with a digit or number.
It can be one of the following values: true, false, or null
It cannot be a reserved keyword.
It is case sensitive. NUMBER, Number, and numbers are not the same.
It can only have any combination of letters, digits, underscores, or dollar sign.
White spaces are allowed
Reserved words or keywords have special predefined meaning and cannot be used in naming variables, classes, methods, or identifiers.
True
False
Includes a complete set of java runtime environment tools for developing, debugging, and monitoring java applications.
Java Runtime Environment
Java Development Kit
Java Ide
Java Environment Machine
Which of the followings is NOT a definition of Java Runtime Environment?
Covers most end-users needs.
It is needed to install to the computer to write, compile, and execute java programs.
It contains everything required to run java applications on a system.
Mish and Mash.
Collections of related classes that have been grouped together into a folder.
Comments
Used to explain the details in a program.
Single-line comments
Reserved keyword in java used to access the classes in a package.
Import
Comments that are enclosed between /* and */.
Multiple-line comments
Comments that begin with // and can be placed anywhere in the line.
Packages
{"name":"Programming Logic & Design (MIDTERMS)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Arrange these data types from lowest to highest precision. Widening conversion (implicit casting)., Mish and Mash., Mish and Mash.","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
More Surveys
POD: IM BACKKK
5227
L&J Radio's Top 20 Viewers Choice Country Countdown
100
Mod 2017 GP3 revamp
5231
Application for OP on the Benji SMP
9417
Childcare and Development
420
THE Beltane 2023 Feedback
4250
A&D SURVEY | How we can better Serve You in 2022
11612
How has COVID changed how you interact with people?
14717