ICT 401 questions Flashcards

Programming for Information Age (39 cards)

1
Q

What is Computer Programming?

A

Computer programming is the process of humans communicating with computers to make them perform specific tasks.

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

Explain SDLC?

A

Software development life cycle (SDLC) is a structured process that is used to design, develop, and test good-quality software. The goal of the SDLC life cycle model is to deliver high-quality, maintainable software that meets the user’s requirements.

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

What is pseudocode?

A

Pseudocode is a method used by programmers to plan out algorithms and code structures in a way that is easy to read and understand, without worrying about the syntax of a specific programming language.

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

What is IDE?

A

IDE stands for integrated development environment, and it’s a type of software that helps programmers create code. It does so by combining a number of functions into a single program, allowing users to write, test, and execute programs all from the same place, sometimes even with a graphical user interface.

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

What is Syntax?

A

Rules of language (a set of rules that tells the computer how to understand and run the code correctly)

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

Two types of testing?

A

White box and Black box

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

What are the data types?

A

String, integer, float, boolean

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

What ASCII stands for?

A

American Standard Code for Information Interchange

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

What MUTABLE means?

A

Mutable means that something can be changed or modified after it is created.

In programming, this usually refers to data types.

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

What CONCATINATION means?

A

Concatenation means joining two or more strings (or other sequences) together into one (combining 2 strings).

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

What String Slicing means?

A

String slicing means extracting a specific part (substring) from a string using index positions.

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

What are the boolean operators?

A

AND, OR and NOT

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

What are the Python functions?

A

-BUILT IN
-USER DEFINED

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

What is Modulo operator (%) in Python?

A

Modulo operator (%) in Python gives the remainder when one number is divided by another.
In Python, you can calculate the modulos of numeric types int and float. Also, you can calculate the modulo of negative numbers.

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

What are the Relational Operators?

A

== (equal), != (not equal), > (greater than), < (less than), >= (greater than or equal to), <= (less than or equal to)

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

What Array means?

A

An array is a collection of elements stored in a single variable, where each element can be accessed using an index.

17
Q

What UNICODE means?

A

Unicode provides a unique number for every character.

18
Q

What is a STRING?

A

A string is a sequence of characters used to represent text in programming.

19
Q

How to declare a String?

A

Strings in python are usually surrounded by a pair of
non-directional single quotation marks, or double
quotation marks.

20
Q

Escaped characters in a string:

A

' Single Quote
" Double Quote
\ Backslash
\n New Line
\t Tab

21
Q

Scrutinizing strings:

A

*Use id () to check its unique identification number
*Use type () to check its data type

22
Q

What is a Control Structure?

A

A control structure is a decision that the
computer makes or a block of programming that analyses variables
and chooses a direction in which to go based on
given parameters

23
Q

What SSI stands for?

A

Sequence (the order in which tasks are to be executed).
Selection (executed only if a certain condition is met)
Iteration (a loop that allows part of the program to be executed multiple times).

24
Q

What control structure is conditional and unconditional?

A

Sequence is Unconditional
Selection & Iteration are Conditional

25
What is Function?
Named reusable block of code
26
What are the 2 types of function?
Built-in and User defined
27
What is indentation?
Indentation is the space or tab added at the beginning of a line of code to show structure or hierarchy
28
What CAR stands for?
CALL ACTION RETURN
29
How to define a function?
Use the (def) keyword
30
A Python function must be defined before it is called?
YES
31
What is Lambda function?
A lambda function is a small, anonymous function defined using the lambda keyword — usually used for short, throwaway functions.
32
What is Generator function?
Generator functions allow you to declare a function that behaves like an iterator, i.e., it can be used in a for loop.
33
What is Decorator function?
A decorator takes in a function, adds some functionality and returns the function without modifying the underlying code of the original function.
34
What is Monolithic code?
Monolithic code refers to a large, single-tiered block of code where all parts of a program — like the user interface, business logic, and data access — are tightly combined in one unit.
35
Functions have Local variables:
- must be declared before used -variable defined inside function scope -cannot be accessed outside of function -different functions can have same variable names
36
What is a LIST?
* Used to store multiple items in a single variable. * Enclosed using square brackets * Items in the same list do not have to be of the same data type * One list can contain multiple copies of an identical item
37
What is a DICTIONARY?
A dictionary is a data structure that stores data in key-value pairs {Enclosed using curly brackets}
38
What is a SET?
A set is a collection of unique, unordered items in Python. One set cannot contain multiple copies of an identical item.
39
What is a TUPLE?
Tuple is basically a list, but items cannot be added or removed * Enclosed using brackets () * A tuple can have duplicated items and is unsorted.