{ "@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" } }

Learning Unit 1 Programming Theory Flashcards

(12 cards)

1
Q

Purpose of a programmer

A

To code programs to be used by the end user.

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

System.out.print or Sytem.out.println()

A

Uses print() or println() method will display (output window). Whatever is in the round brackets after method name.

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

Print method displays what

A

Is in brackets on output window and next output will be on the same line.

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

Println method displays what

A

Is in brackets and next output is on the next line.

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

Function of round brackets () in methods in Java (after their names)

A

To identify that they are methods.

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

Some methods have

A

Values in the brackets, some do not.

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

Important to call a method

A

With the correct number of parameters.

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

IDE

A

Integrated Development Environment.

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

Java IDE

A

Enables you to type in code for a Java program and provides options to compile and run your program.

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

IDE possibly highlights

A

Certain Java words and comments in a different color/in bold.

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

Some IDE’s even provide

A

Functions that will help you find errors in your code while it is running.

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

When you have a program (_______.java) open your IDE, and you select Compile or Run, the following takes place:

A
  • Java statements are first check for syntax errors (if any errors program can’t compile & error messages display)
  • Java program translated into program in Java byte code formate (computer machine code), new file saved with extension class (____.class)
  • Successful compilation, bytecode is run.executed by running program
  • During execution of program (first statement in main method onwards) output is displayed when relevant statement is carried out
How well did you know this?
1
Not at all
2
3
4
5
Perfectly