stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
NOCTI - Code Programs (Seniors) Flashcards | StudBud
Explore
/
NOCTI - Code Programs (Seniors)
NOCTI - Code Programs (Seniors)
19 terms
·
StudBud Administration
Test your knowledge on basic concepts and syntax of programming languages
Flashcards
19 cards
F
Practice quiz
P
Host live
L
Questions
19
Answers
1
For loop repeats code a specific number of times
True
False
2
Closest to machine code
Markup language
Scripting language
Assembly language
High-level language
3
Valid variable name
my_variable
#value
2variable
class
4
Purpose of if-else statement
Declare variables
Make decisions
Store data
Create infinite loop
5
Valid floating-point data type
Boolean
String
Double
Int
6
Symbol for single-line comment in C++
/* */
--
#
//
7
Functions reduce code duplication
Cannot return values
Called once
Must have parameters
Reduce code duplication
8
Python is classified as
Machine code
Interpreted
Compiled
Assembly
9
Purpose of a Boolean variable
Store text values
Store true or false
Store decimal numbers
Store whole numbers
10
Loop that executes at least once
Foreach loop
While loop
Do-while loop
For loop
11
Correct syntax for Python variable
x = 10
let x = 10;
var x = 10;
int x = 10;
12
&& is used for AND conditions
True
False
13
Correct way to define array in Java
array numbers = [1, 2, 3];
int[] numbers = {1, 2, 3};
int numbers = {1, 2, 3};
list numbers = {1, 2, 3};
14
Best for storing a single character
Boolean
Char
Integer
String
15
Language for iOS app development
COBOL
Ruby
Swift
PHP
16
Common language for web apps
Assembly
COBOL
C
JavaScript
17
Example of a low-level language
Java
Assembly
C#
Python
18
Semicolon required at end of function body
True
False
19
String is a primitive data type in Java
False
True