CS50 - The Basics Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an IDE

A

It is an integrated development environment. It’s an application interface that allows the user to program in a chosen language such as Python. It has options for it to be converted into a file to store and some other miscellaneous features

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

What is a data type?

A

It is a declared type of variable which determines how the variable will store.

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

What are all the data types?

A

Int.(integer and non-decimal numbers),
unsigned int. is a qualifier , doubles the positive range of variables.
bool(ean) true or false,
float - real numbers,
char - singular character.
Double - used for variables that will store floating-point values.
Void - placeholder for nothing

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

What is an array.

A

It is a fundamental data structure to hold values at the same Type at contiguous memory locations.

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

What is the purpose of conditional statements (if, else, elif)?

A

Allows programs to make decisions and take different forks in the road, depending on the values of variables or user input

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

What is the purpose of loops

A

Allow your programs to execute lines of code repeatedly, saving you from needing to copy and paste or otherwise repeat lines of code

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