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
String is a primitive data type in Java
True
False
2
Correct syntax for Python variable
var x = 10;
x = 10
let x = 10;
int x = 10;
3
Example of a low-level language
Python
Java
C#
Assembly
4
Language for iOS app development
COBOL
PHP
Ruby
Swift
5
Closest to machine code
Assembly language
Scripting language
High-level language
Markup language
6
Loop that executes at least once
Do-while loop
For loop
Foreach loop
While loop
7
Correct way to define array in Java
int numbers = {1, 2, 3};
list numbers = {1, 2, 3};
array numbers = [1, 2, 3];
int[] numbers = {1, 2, 3};
8
Common language for web apps
COBOL
Assembly
C
JavaScript
9
Best for storing a single character
Char
Boolean
Integer
String
10
Purpose of if-else statement
Store data
Make decisions
Declare variables
Create infinite loop
11
Symbol for single-line comment in C++
//
--
/* */
#
12
Functions reduce code duplication
Reduce code duplication
Called once
Cannot return values
Must have parameters
13
&& is used for AND conditions
True
False
14
Purpose of a Boolean variable
Store true or false
Store whole numbers
Store text values
Store decimal numbers
15
Python is classified as
Assembly
Compiled
Machine code
Interpreted
16
For loop repeats code a specific number of times
False
True
17
Valid floating-point data type
Int
String
Double
Boolean
18
Valid variable name
#value
2variable
my_variable
class
19
Semicolon required at end of function body
False
True