Programming Flashcards

1
Q

What is programming

A

process of converting ideas into instructions that a computer can understand and execute

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

What is a bug

A

something unexpected happens

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

What is a crash

A

when the program stops early or freezes

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

Use of many programming languages

A

some are good for small devices with limited memory where as others are used for complex mathematical computations

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

source code

A

instructions written for the computer in plain text i.e. no bold , italics or underline

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

3 ways to translate source code into machine code

A

  • compile it
  • interpret it
  • combination of both
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Types of languages

A

compiled, interpreted and combination

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

compiled languages

A

C, C++ , objective-C

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

interpreted languages

A

PHP and JavaScript

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

combination of compiled and interpreted languages

A

Java, C# and Python

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

IntelliSense

A

feature of Visual Studio code that gives code suggestions

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

What can python do

A

its a general purpose language

  • web apps
  • internal company tools
  • scientific analysis
  • create games
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Syntax

A

rules of a programming language

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

Statements in programming

A

Individual actions you want your program to take

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

What are statements made of ?

A

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

What are operators

A

any symbol used to calculate values after giving inputs , example : *+-

operands = inputs

17
Q

how are values calculated in programming ?

A

In programming , multiplication and division is calculated before addition or subtraction

Multiplication comes first then divison
Addition comes before subtraction but after multiplication or division

18
Q

Types of errors

A

  • Syntax- language rules broken
  • Runtime- unable to execute
  • Semantic- output is not what you expected
19
Q

Website to lookup any errors

A

stackoverflow.com

20
Q

strings

A

letters and numbers inside a double quote, example : “umazissexy”

21
Q

Rules of variables in python

A

  1. dont start with a number, it can contain letters, numbers and underscores
  2. spaces are not allowed in names ( yo hi)
  3. names are case senseitive (cookie and Cookie are different)
  4. variables cant be keywords
22
Q

How to view all the keywords in python

its a code that needs to be run

A

  • import keyword
  • print(keyword.kwlist)
23
Q

Float meaning in programming

A

Any number with a decimal point

24
Q

Conditional/Boolean expression

A

Any expression that breaks down to either true or false

25
Q

Relational Operators

give their symbols

A

  1. == Equal to
  2. != Not equal to
  3. < Less than
  4. > Greater than
  5. > = Greater than or equal to
  6. <= Less than or equal to
26
Q

How many indentations required to add a code to the “if” statement

hint : click the tab button

A

4

27
Q

How to use if-else statements

A

the else statement is only followed up after an “if” statment

28
Q

How to write if and if-else statements

A

  • if 5>6:
  • print(“5 is greater , wtf”)
  • else:
  • print(“5 is not greater,phew”)
29
Q

How to use a function that can be repeated easily

A

Function used is def

  1. def itsumaz():
  2. print(“man umaz is so sexy and confident”)
    3.itsumaz()
30
Q

Parameter

A

Allow functions to change their behaviors based on some input

31
Q

Arguements

A

values that we give to our functions

we give functions arguements by placing values in () in the function

32
Q

Whats python, C++ and Java inherited from ?

A

C programming language

C was developed in 1970s

33
Q

Which Languages can you use for IOS and web apps

A

  • IOS - Swift and Objective-C
  • Ruby and Javascript