stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Introduction to Programming Concepts Flashcards | StudBud
Explore
/
Introduction to Programming Concepts
Introduction to Programming Concepts
34 terms
·
StudBud Administration
·
88 plays
An introduction to #programmingLanguages and #IDE.
Flashcards
34 cards
F
Practice quiz
P
Host live
L
Questions
34
Answers
1
Which button do you need to press (on NetBeans)to debug a project?
C
B
A
D
2
Pseudo-code... (mark any correct answer)
can be in the form of a short paragraph
shows a sequence of actions (an algorithm)
is a formal language
is an informal language
3
A programming paradigm is...
a design that you prepare before you start coding
a structure found in any programming language
a way or style of programming
another word for pseudo-code
4
Which of the following is a valid identifier?
void
name 3
name A
$name
5
Where do you click to add a breakpoint? A or B?
A
B
6
Which of the following software are considered to be IDEs? (mark any correct answer)
TextPad
NetBeans
Microsoft Visual Studio
Netflix
7
Identify the return, name and parameters of this method signature.
Returns an array of int and takes an int as a parameter
Returns an int and as parameters it takes an array of int and another int
Returns an int and as parameters it takes an array of int and two int
Doesn't return anything and takes an array of integers as parameters
8
The object-oriented programming paradigm... (mark all correct answers)
makes use of objects which can communicate
can only be used for desktop-applications
makes code re-use impossible
is possible only on Linux
9
What is the output of this code?
I Java
I Java
IJava
Iava
10
The functional programming paradigm... (mark all correct answers)
programs which evaluate mathematical functions, it facilitates code reuse
usually results in relatively short code and full of control flows
code reuse is impossible as all calculations are done in one class
11
Some IDEs include intelligent code completion. This means that...
the IDE automatically takes backups of your code
the IDE automatically builds/compiles your code
the IDE suggests what you might want to type next
12
A computer program... (mark any correct answer)
process information and outputs data
is something which the developer writes
is a list of instructions written in a programming language
can be a list of instructions written in plain English
13
The syntax of a programming language... (mark any correct answer)
is made up by a set of rules which needs to be followed
are comments that you put in your code
helps to define whether a piece of code is valid or invalid
can be changed by any programmer
14
What is the output of the following code?
1 3 4
1 2 3 4
1
1 3 4 5
15
If I need to enter two students how should I answer the second question?
Y
y
n
N
16
The computer... (mark any correct answer)
can only do what it is instructed to do
without programs is still a very intelligent machine
without programs is not an intelligent machine
using programs, can process data and output information
17
The procedural programming paradigm...
must make use of a lot classes and instances of these classes
can only be used in web-application
makes use of procedures/routines and is easy to understand, use, and test
is very difficult to use and requires a particular OS
18
If you were to write a desktop application you might choose... (mark any correct answer)
JavaScript
Java
HTML
C#
19
An IDE is a tool which... (mark any correct answer)
helps developers/testers to develop, test, and debug the program
helps the end-user to run the program
helps developers to code the program
20
Pseudo-code is used... (mark any correct answer)
during the design stage
after the actual coding
to facilitate understanding to humans
when the programmer is still planning what to do/how to do something
21
What is the output of this loop?
2
1 3 5
2 4
3
22
A variable in programming... (mark any correct answer)
has a name
is a program which can change
is a storage location intended to hold an image
is a storage location intended to hold a value
23
The declarative programming paradigm...
relatively short code, expressing only logic without control flows
contains a lot of complicated control-flow
focusing on control flow and subroutines
usually results in long code
24
Which of the following is a valid identifier?
£name
2name
name
my name
25
Concepts common to programming languages include... (mark any correct answer)
Scripts
Having an IDE
Control Structures
Variables
26
A control structure in programming... (mark any correct answer)
is a piece of code which enables the program to make a decision
is a piece of code which terminates the program
usually makes use of one or more conditions
it allows lines of code to execute in a particular order
27
IDE stands
Integrated Development Enviroment
Iterated Deep Environment
Integrated Development Enrolment
Iterated Development Environment
28
A programming language... (mark any correct answer)
must be formally-defined
must be ambiguous
must be unambiguous
can contain synonyms and metaphors
29
When using, the event-driven programming paradigm... (mark any correct answer)
program flow is determined randomly depending on the OS
program flow is determined by events
you usually associate code (actions) with events
usually the program make use of a GUI
30
Different programming languages exist because... (mark any correct answer)
developers can prefer one over another
each have their strengths and weaknesses
one language can be used for anything and everything
multiple languages are used to write your program
31
Raw facts, such as numbers, letters and words are...
data
information
programs
commands
32
Which two of the following statements are correct? (mark any correct answers)
a program can be written using multiple paradigms (eg OOP and Event-driven)
a programming language can only fall under one specific paradigm
a programming language can be a multi-paradigm language
a program can only be written using a single paradigm
33
What is the output of the following code:
1 2 3 4 5 6 7 8 (underneath each other)
1 2 3 4 5 6 7 8 (next to each other)
0 1 2 3 4 5 6 7 (underneath each other)
0 1 2 3 4 5 6 7 (next to each other)
34
In programming, the three types of control structures are:
sequence, selection, and if
repetitions, loop, and iteration
sequence, selection, and iteration
selection, sequence, and decision