CS 1337 Test 1
🇬🇧
In English
In English
Practice Known Questions
Stay up to date with your due questions
Complete 5 questions to enable practice
Exams
Exam: Test your skills
Course needs 15 questions
Learn New Questions
Manual Mode [BETA]
The course owner has not enabled manual mode
CS 1337 Test 1 - Leaderboard
CS 1337 Test 1 - Details
Levels:
Questions:
14 questions
🇬🇧 | 🇬🇧 |
What is compiled | The process of translating the program to assembly |
What is interpretation | You see the code changes instantly |
What is execution | Its compiled then interpreted line by line |
What is jvm | The virtual machine that translates java line by line |
3 errors in code | Syntax, run time, logic |
What is pseudocode | A simplified version of code that you can write an algorithm in, used for planning |
What are the four different ways that the flow of control can progress through a program? Explain each one | Selection, repetition, method call, sequence |
What are the characteristics of a high-level language. | It looks like english and is easy to read |
How does an object class encapsulate data? | Makes fields private |
What is the purpose of mutator methods? setters | They changer the value of the fields |
What is the purpose on constructors? getters | They define how to create an object |
What are the naming rules? | Same name as class no return type |
What is an accessor method | Getters, get a field value. getBleh |
How to write a mutator (setter) | Public void setNumber(String number){ this.number = number; } public void setMaxOccupancy(int max){ if(max >= 25 && max <= 600) this.maxOccupancy = max; else }. this.maxOccupancy = 25; |