{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Introduction to programming Flashcards

(27 cards)

1
Q

The following languages are compiled except for which?

C, C++, C#, Objective C, Cobal, Swift

A

C# is not compiled, it is considered a hybrid.

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

The following languages are considered hybrid languages except for which?
Java, C#, PHP, Python, VB.NET,

A

PHP# is an interpreted scripting language.

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

The following are interpreted scripting languages except for which?
VBScript, Javascript, Java, PHP, Actionscript,

A

Java is considered a hybrid language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
If (boolean condition) Then
    (consequent)
Else
    (alternative)
End If
//All are considered what?
A

Conditional statements, conditional expressions and conditional constructs

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

Modules, Subroutines, Subprograms, Routines, Functions, Callable Units, Procedures, and Methods are what?

A

A piece of program code that is executed when the subroutine is called or invoked. Sometimes called a “code block” or block of code”.

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

What happens when a function is called?

A

All of the code inside the function is executed.

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

Should functions be defined first?

A

Yes, define them all together at the top of your code. This makes for better code readability.

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

What two things that functions do?

A

Return values and accept data.

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

What is a Library?

A

A library is a set of functions that come with your language compiler. The library is integrated into the compiler.

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

Library code is organized in such a way that it can be used how?

A

Libraries are organized to be used by multiple programs that have no connection to each other.

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

Who created Python?

A

Guido van Rossum

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

When was Python created?

A

Python was conceived in the late 1980s, and its implementation began in December 1989 by Guido van Rossum

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

Python Version 1.0 was released in what year?

A

Python reached version 1.0 in January 1994.

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

What is the latest version of Python?

A

Python 3.6 - Released in December 23, 2016

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

What is the file extension for Python?

A

*.py

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

What is an Algorithm

A

A algorithm is a solution to a problem and meets one of the following.

  1. A list of instructions, procedures, or formula that solves a problem.
  2. Can be proven.
  3. Something that always finishes and works.
17
Q

What is an Argument?

A

An argument is a value that is passed into a command, function, or routine.

18
Q

What is a boolean?

A

A Boolean, bool, or Boolean expression is a value that is either TRUE or FALSE.

19
Q

What is a boolean data type?

A

A boolean data type is any data type that has either a true or false value, yes or no value, or on or off (1 or 0) value.

20
Q

What is a Data Type?

A

A data type is a classification of the type of data that a variable or object can hold in computer programming.

21
Q

What is a floating point?

A

A floating-point number is one where the position of the decimal point can “float” rather than being in a fixed position within a number.

22
Q

Define an If Else statement?

A

An if else statement in programming is a conditional statement that runs a different set of statements depending on whether an expression is true or false.

23
Q

Define an If statement?

A

An if statement is a programming conditional statement that, if proved true, performs a function or displays information.

24
Q

What is a Loop?

A

A loop describes the process of a software program or script repeats the same instructions or processes the same information over and over until receiving the order to stop.

25
A good example of a class is?
A blueprint, or template.
26
An object is created from what?
An object is created from a class (blueprint).
27
What is inheritance in programming?
Inheritance allows you to use properties from an existing class. It reduces redundancies in coding.