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