FTCE CS - Programming Languages
What is an Applet?
a java program that runs in a web browser
Predict the output: class Test { public static void main(String[ ] args) { System.out.println(10 + 20 +"Go Java"); } }
30GoJava
In Java, every statement must end with this symbol
;
What is a class in Java?
A class is a blue print from which individual objects are created
In Scratch the location of a Sprite is defined by
It's x and y position on the Cartesian plane
What is function overloading?
Methods with same name but different parameters
Command to move a sprite
Move
__________________ programming language provides a programmer with the ability to precisely define each step in the performance of a task as well as the means to be strongly modular.
Procedural ----The focus of procedural programming is to break down a programming task into a collection of data structures, variable, and subroutines, as opposed to object oriented programming, which breaks down a programming task into objects.
What is a class variable?
Static variables within a class but outside any method
super class
Variables, methods, and constructors which are declared private can be accessed only on the members of the super class.
super class
Variables, methods, and constructors which are declared protected can be accessed by any subclass of the super class
General programming construct that allows a piece of code to be name and then called by name
block(function/module/procedure)
General programming construct that allows a program to make a decision
conditional
In Scratch the commands to move sprites include:
go to glide to move
General programming construct that allows a program to repeat the same set of instructions
loop
super class
variables, methods, and constructors which are declared public in the superclass can be accessed by any class.
What is Encapsulation?
It is the technique of making the fields in a class private and providing access to the fields via public method