Unit 1: Primitive Types Flashcards

1
Q

(int)

A

A data type in programming that represents whole numbers without decimal points. It stands for “integer” and can be used to store positive, negative, or zero values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

*= operator

A

A shorthand notation used in programming to multiply and assign a value to a variable. It multiplies the current value of the variable by another value and stores the result back into the same variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Access Modifiers

A

Keywords in programming that determine the accessibility of classes, methods, and variables. They control whether other parts of the program can access and use these elements.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

AP CSA

A

Stands for Advanced Placement Computer Science A. It is an advanced level course offered in high schools that focuses on teaching students the fundamentals of computer science and programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Arithmetic Operators

A

Symbols used in programming to perform mathematical operations on numerical values. They include addition, subtraction, multiplication, division, and modulus.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Array of chars

A

A data structure that stores a sequence of characters. It is often used to represent strings in programming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Assignment operator

A

Used to assign a value to a variable. It is represented by the equals sign (=) and it assigns the value on the right side of the equals sign to the variable on the left side.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Binary Code

A

A coding system that uses only two digits, 0 and 1, to represent information. It is the fundamental language of computers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

BlueJ

A

An integrated development environment (IDE) primarily used for teaching introductory Java programming. It provides a simplified interface and visual tools to help beginners understand object-oriented concepts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

boolean

A

A data type that can only have two possible values - true or false. It is often used in programming to make decisions and control the flow of a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Camel Casing

A

A naming convention where each word in a compound identifier is capitalized except for the first word, which starts with a lowercase letter. It is commonly used in programming languages to make variable and function names more readable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Classes

A

User-defined data types in object-oriented programming. They serve as blueprints for creating objects by defining their attributes and methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Code Tracing

A

The process of manually following the execution of a program to understand how it works and identify any errors or bugs. It involves stepping through each line of code, keeping track of variable values and function calls.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Compound Assignment Operators

A

Shorthand notations that combine an arithmetic operation with the assignment operator. They allow you to perform an operation and assign the result to a variable in a single step.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data Type Declaration

A

Specifies the type of data that a variable can hold in a programming language. It defines what kind of values can be stored and how those values can be manipulated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Decrement Operator (–)

A

Used to decrease the value of a variable by 1. It subtracts 1 from the current value of the variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Decrementing

A

Refers to the process of decreasing a value by a certain amount. It is commonly used in programming to subtract a specific number from a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Division Symbol (/)

A

Used in programming to perform the mathematical operation of division between two numbers. It takes a dividend (the number being divided) and a divisor (the number dividing the dividend), and returns the quotient (the result of division).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Double

A

In Java, is both a wrapper class for primitive type double and also represents real numbers with decimal points. It provides useful methods for performing mathematical operations on these numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Double

A

In Java, it is both a wrapper class for primitive type double and also represents real numbers with decimal points. It provides useful methods for performing mathematical operations on these numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

final keyword (in context of constants)

A

Used to declare a constant variable in Java, meaning its value cannot be changed once assigned. It is often used to define values that should not be modified throughout the program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Final Modifier

A

Used in programming languages to indicate that a variable cannot be changed once it has been assigned a value or that a method cannot be overridden by subclasses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

High-level programming languages

A

Languages that are designed to be easily understood by humans. They use natural language elements and abstract away low-level details, making it easier for programmers to write code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Increment Operator (++)

A

Used to increase the value of a variable by 1. It adds 1 to the current value of the variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

InputMismatchException

A

An exception that occurs when the input provided by the user does not match the expected data type or format. It is commonly thrown by methods in the Scanner class when trying to read a value of one type but encountering a different type.

26
Q

int

A

A primitive data type in Java used to store whole numbers without decimal points. It has a fixed size and represents integer values within a specific range.

27
Q

Integer.MAX_VALUE

A

Refers to the maximum possible integer that can be stored in Java’s int data type. It is a constant value equal to 2^31 - 1.

28
Q

Integer.MIN_VALUE

A

A constant in Java that represents the smallest possible value for an integer. It is equal to -2^31.

29
Q

IntelliJ

A

An integrated development environment (IDE) specifically designed for Java programming. It provides a user-friendly interface and a wide range of features to help developers write, debug, and test their code efficiently.

30
Q

Java Virtual Machine (JVM)

A

A virtual machine that executes Java bytecode. It provides the runtime environment for running Java applications and translates bytecode into machine code that can be executed by the computer’s operating system.

31
Q

Java

A

A high-level, object-oriented programming language that is widely used for developing applications and software. It is known for its platform independence, meaning that programs written in Java can run on any device or operating system with a Java Virtual Machine (JVM).

32
Q

Machine code

A

The lowest level of instructions that can be executed directly by a computer’s hardware. It consists of binary digits (0s and 1s) representing specific operations performed by the processor.

33
Q

Method

A

A named sequence of instructions that can be called or invoked to perform a specific task or action. Methods are used for code reusability, organization, and abstraction.

34
Q

Methods

A

Functions defined within a class that perform specific tasks or actions when called upon by an object. They can manipulate data, interact with other objects, or return values.

35
Q

Modulo Operator (%)

A

Used in programming to find the remainder when one number is divided by another. It takes a dividend and a divisor, and returns the remainder after performing division.

36
Q

Modulo Operator

A

Represented by the symbol %, returns the remainder of a division operation. It is used to determine if a number is divisible by another number.

37
Q

Multiplication Symbol (*)

A

Used in programming to perform the mathematical operation of multiplication between two numbers. It takes two operands, one on each side, and returns their product.

38
Q

nextBoolean()

A

A method used in Java to read the next boolean value from the input source. It retrieves and returns the next boolean token as a boolean data type (either true or false).

39
Q

nextDouble()

A

A method used in Java to read the next floating-point (decimal) value from the input source. It retrieves and returns the next double token as a double data type.

40
Q

nextInt()

A

A method used in Java to read the next integer value from the input source. It retrieves and returns the next integer token as an int data type.

41
Q

Object

A

An instance of a class that represents a specific entity or thing in a program. It contains both data (attributes) and behavior (methods).

42
Q

Objects

A

Instances of a class that represent real-world entities or concepts. They encapsulate data (attributes) and behavior (methods) into a single entity.

43
Q

Order of Operations

A

The order in which mathematical operations should be performed to obtain the correct result. It follows the acronym PEMDAS, which stands for Parentheses, Exponents, Multiplication and Division (from left to right), and Addition and Subtraction (from left to right).

44
Q

Overflow

A

Occurs when a calculation exceeds the maximum value that can be represented by a given data type. This can result in unexpected behavior or errors in programs.

45
Q

Post-increment

A

An operator that increases the value of a variable after using it in an expression. It returns the original value and then adds one unit to it.

46
Q

Pre-increment

A

An operator that increases the value of a variable before using it in an expression. It adds one unit to the original value and then returns the updated result.

47
Q

Primitive data type

A

Basic data types provided by programming languages, such as integers, floating-point numbers, booleans, and characters. They represent simple values and have predefined characteristics.

48
Q

Primitive data types

A

Basic data types that are built into a programming language and represent simple values. They include integers, floating-point numbers, characters, booleans, and more.

49
Q

Protected Access

A

A level of access control in object-oriented programming that allows members (variables and methods) to be accessed within the same class, subclasses, and classes in the same package.

50
Q

Reference Data Types

A

Data types that store references or memory addresses of objects rather than the actual values. They point to the location in memory where the object is stored.

51
Q

repl.it

A

An online coding platform that allows users to write, run, and debug code in various programming languages directly from their web browser.

52
Q

Scanner class

A

A built-in Java class that allows users to read input from various sources, such as the keyboard or a file.

53
Q

String class

A

A built-in class in Java that represents a sequence of characters. It provides various methods to manipulate and work with strings.

54
Q

String

A

A sequence of characters in Java, enclosed in double quotes. It represents text and can be manipulated using various methods.

55
Q

Syntax Error

A

A mistake in the structure or format of a program’s code that prevents it from being compiled or executed properly. It occurs when the code violates the rules and grammar of the programming language.

56
Q

System.out.print()

A

A method in Java that allows you to display text or values on the console. It does not add a new line after printing.

57
Q

System.out.println

A

A Java statement used to display output on the console. It prints the specified message or value and adds a new line character at the end.

58
Q

Variable Declaration

A

Refers to the process of creating variables by specifying their names and types before they are used in programming. It reserves memory space for storing values associated with those variables.

59
Q

Variable Initialization

A

The process of assigning an initial value to a variable when it is declared. It ensures that the variable has a valid starting value before it is used in the program.

60
Q

Visual Studio Code

A

A lightweight yet powerful source code editor developed by Microsoft. It supports multiple programming languages and offers various extensions to enhance productivity during coding.

61
Q

Void

A

A keyword used in method declarations to indicate that the method does not return any value. It is used when a method performs an action but does not produce a result.