Comp 1010 Flashcards
1
Q
In line comment
A
//comment
2
Q
Multi line comment
A
/*
*/
3
Q
Data is separated by
A
Comas
4
Q
Syntax highlights
A
Coloring commands
5
Q
Various versions of command means
A
Various parameters requiered
6
Q
Compile type error
A
Prevents you from compiling
7
Q
Execution type errors
A
Compile but can’t run
8
Q
Logic errors
A
Runs but not as expected
9
Q
How to use comments to debug
A
Commenting out the command to see where the issue is
10
Q
What is comp programming
A
Problem solving
11
Q
Most programming languages
A
Are similar
12
Q
How to calculate the number of operations performed each seconds by a computer?
A
n operations/s/cores * n of cores = n of operations/s
13
Q
Line
A
line(xstart, ystart, xend, yend);
14
Q
Size of the canva
A
size(w, h)
15
Q
Triangle
A
triangle(x1, y1, x2, y2, x3, y3);