All In One Flashcards
(166 cards)
A programmer has been asked to lead a project that uses AI to search for patterns in WiFi signals to improve efficiency and range. The programmer will use the software development lifecycle ( SDLC) as a model for design and implementation. Which step is the programmer in when choosing a programming language and typing the code?
Code the program
Which term refers to the state of a process when it’s being created?
New
What is the name of the CPU scheduling method in which a process is not interrupted and is allowed to finish before another process starts?
First come, first serve
Which statement describes a characteristic of sequential file access?
The file is seen as linear.
Which is an example of integer data type?
A) 3.14
B) “hello”
C) true
D) 42
42
Which data type is used to represent textual data?
String
Which variable name is valid in most programming languages?
Variable_123
Which statement correctly assigns the value 10 to the variable X?
A) x==10
B) 10 =x
C) x=>10
D) x=10
What is used for iteration in programming?
While loop
What is the result of the expression 2+3x4?
14
Which operator has the highest precedence?
X
Which value is a floating-point number?
A) “3.14”
B) 3.14
C) 42
D) true
3.14
What is the result of the expression (2+3)x4?
20
What is a linked list?
A collection of elements, each containing a reference to the next element.
What best describes a stack?
Last-in, first-out (LIFO) structure
What is the primary characteristic of a queue?
There is a first-in, first-out (FIFO) access
What is a subprogram?
A sequence of program instructions that Perform a specific task
In psuedocode, how would you call a function named CalculateSum with two parameters a and b?
CalculateSum ( a,b)
What is the primary purpose of using subprograms in a program?
To allow for code reuse and better organization.
Which operation is used to add an element to the top of a stack?
Push
Which scenario is a stack most suitable for?
Storing undo operations in a text editor
What is the main purpose of object- oriented programming ( OOP)?
To organize code into reusable components called objects
Which statement describes a class in OOP?
A blueprint for creating objects
What is encapsulation in OOP?
The practice of keeping data and methods that manipulate the data in a single unit