CS2111

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/103

flashcard set

Earn XP

Last updated 1:52 AM on 12/14/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

104 Terms

1
New cards
Multitasking
Which of the following is not part of OOP?
2
New cards
object in OOP
an instance of a class
3
New cards
False
In C, cannot directly compare two structures with ==; thus, this operator lacks uniformity
4
New cards
method
a procedure or function
5
New cards
objects
OOP promotes a way of programming that allows programmers to think in terms of ________.
6
New cards
Functional Programming
Its main aim is to reduce side effects that are accomplished by isolating them from the rest of the software code.
7
New cards
Functional Programming
It does not support iteration like loop statements and conditional statements like If-Else
8
New cards
Logic Programming
These are specially designed for fault diagnosis, natural language processing, planning, and machine learning.
9
New cards
Logic Programming
It is totally based on formal logic.
10
New cards
Logic Programming
It simply uses predicates.
11
New cards
LISP
was the first functional programming language.
12
New cards
Functional Programming
FP is _________ .
13
New cards
Control abstractions
Simplify properties of the transfer of control
14
New cards
encapsulation
Information Hiding can be also be termed as ________.
15
New cards
inheritance
The process by which one object can acquire the properties of another object is ______.
16
New cards
False
In a language that is truly orthogonal, constructs do not behave differently in different contexts (clone)
17
New cards
Ability to reuse classes
What is the advantage of OOP over traditional programming?
18
New cards
\n Axioms
are logical statements that are assumed to be true and from which other true statements can be proved
19
New cards
Initialize a newly created object
Constructors are used to _________.
20
New cards
Declaration
The process of giving a variable a name and a data type
21
New cards
smalltalk
can be said as purely object oriented.
22
New cards
Inference rules
are ways of deriving or proving new statements from a given set of statements.
23
New cards
Abstraction
is a collection of similar operations from two different components into a new component
24
New cards
Translator
A program that accepts other programs and either directly executes them or transforms them into a form suitable for execution
25
New cards
Orthogonal design
The constructs can be combined in any meaningful way, with no unexpected restrictions or behaviors
26
New cards
False
Generality refers to how well the features of a language are integrated
27
New cards
first
Program execution begins with the ________ line of code
28
New cards
True
Languages that satisfy the criterion of regularity are said to adhere to the principle of least astonishment.
29
New cards
assembly language
A set of mnemonic symbols for instruction codes and memory locations
30
New cards
Variables
Use of symbolic names to hide computer memory locations containing data values
31
New cards
generality
It is achieved by avoiding special cases in the availability or use of constructs and by combining closely related constructs into a single more general one
32
New cards
True
In C, cannot directly compare two structures with ==; thus, this operator lacks uniformity
33
New cards
True
In a language that is truly orthogonal, constructs do not behave differently in different contexts
34
New cards
True
Languages that satisfy the criterion of regularity are said to adhere to the principle of least astonishment.
35
New cards
False
Generality refers to how well the features of a language are integrated
36
New cards
orthogonality
The constructs can be combined in any meaningful way, with no unexpected restrictions or behaviors
37
New cards
Programmer Efficiency
It refers to how quickly and easily can a person read and write in the programming language
38
New cards
uniformity
refers to the consistency of appearance and behavior of language constructs
39
New cards
writablity
It is the quality of a language that enables a programmer to use it to express computation clearly, correctly, concisely, and quickly
40
New cards
generality
A language with this property avoids special cases wherever possible
41
New cards
Cargo.toml
It is a manifest file in which you can specify a bunch of different metadata about your package.
42
New cards
False
? Indicates any character that is vague
43
New cards
string
Which data type is used to create a variable that should store text?
44
New cards
coins
Which of the following is NOT a token?
45
New cards
false
Syntax of a language refers to the meaning of the language
46
New cards
whitespaces
This is used so the compiler knows where one statement ends and where another begins.
47
New cards
False
Repetition is done by sequencing the items
48
New cards
math.floor
What is the method that is used in rounding down to the nearest integer?
49
New cards
if satement
What structure do you use to make computer make decisions in python?
50
New cards
define()
The _____ function is used to create a constant in PHP syntax.
51
New cards
The first used to describe the syntax of Algol60.
52
New cards
Fun
In Kotlin, what is used to declare a function?
53
New cards
Repetition is indicated by a _________
54
New cards
white spaces
Token delimiters are known as _____.
55
New cards
true
Specifying semantics is more difficult than specifying syntax
56
New cards
//
What is the symbol used for adding comments in JavaScript?
57
New cards
Google
Dart was developed by?
58
New cards
\#
How do we create a single line comment on ruby?
59
New cards
True
Tokens can be formally described by regular expressions
60
New cards
True
Predefined identifiers are identifiers that have been given an initial meaning for all programs in the language but are capable of redirection.
61
New cards
True
The structure of the tokens or words of a language refers to lexical structure
62
New cards
fn
What keyword is used to define functions in Rust?
63
New cards
Scanning phase is the phase in which the translator processes the tokens, determining the program’s syntactic structure
64
New cards
John Backus and Peter Naur
Who developed a notational system for describing these grammars?
65
New cards
Syntax
It refers what the language constructs look like.
66
New cards
UML Diagram
Which of the following is NOT a variation of BNF?
67
New cards
choice
A pattern of regular expression that is indicated by a vertical bar
68
New cards
Boolean
It is a data type that is either true or false.
69
New cards
alert("Hello World");
In JavaScript, how do you write "Hello World" in an alert box?
70
New cards
False
Semantics refers to the structure of the language
71
New cards
Uniformity
It refers to the consistency of appearance and behavior of language constructs
72
New cards
programming language
A notation for communicating to a computer what we want it to do
73
New cards
declaration
The process of giving a variable a name and a data type
74
New cards
Encapsulation
This OOP principle states that all important information is contained inside an object and only select information is exposed.
75
New cards
LISP
__________ was the first functional programming language.
76
New cards
inhertitance
The process by which one object can acquire the properties of another object is
77
New cards
logical statements
are statements that are either true or false
78
New cards
logic programming language
It is a notational system for writing logical statements together with specified algorithms for implementing inference rules.
79
New cards
axioms
are logical statements that are assumed to be true and from which other true statements can be proved
80
New cards
compiler
It translates programming language statements into machine code
81
New cards
object-oriented programming
It is a computer programming model that organizes software design around data, or objects.
82
New cards
objects
are instances of a class created with specifically defined data.
83
New cards
Principles of Object-Oriented Programming
inheritance, polymorphism, encapsulation, abstraction
84
New cards
Programming Paradigms
Imperative Programming, Declarative Programming, Functional Programming, Object-Oriented Programming
85
New cards
flutter
A framework that uses dart’s native compilation ability to generate fast cross-platform apps.
86
New cards
.py
What is the correct file extension for Python files?
87
New cards
.php
The default file extension of PHP files is ________.
88
New cards
\#
It is used to create a single line comment in Ruby.
89
New cards
identifier
It refers to the items which the user defines the names
90
New cards
let
It is the identifier used in Javascript to declare that a variable can be reassigned
91
New cards
ECMAScript
It is a JavaScript standard intended to ensure the interoperability of web pages across different browsers.
92
New cards
JS
is short for Javascript
93
New cards
boolean
In Python, it is a data type that is either true or false.
94
New cards
operators
These are symbols used to perform a specific operation on data
95
New cards
\#include
//Basic syntax of C
____________

int main() {
printf("Hello students. God bless on your exams!");
}
96
New cards
myString
\# My first program in R Programming ______________ "Hello, World!"

\
print ( myString)
97
New cards
System.out.println
public class myFirstJavaProgram {

public static void main(String\[\] args) {

___________________("Hello World");

}

}
98
New cards
php
_________ // This is a single-line comment in PHP

\
?>
99
New cards
println!
fn main() {

___________("Saying hello in Rust");

}
100
New cards
\[1, 4, 3\]
Write the output of this Python program:

list1 = \[1,2,3\]
list2 = list1
list1\[1\] = 4
print(list2)

Explore top flashcards