stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
xCode 1 Flashcards | StudBud
Explore
/
xCode 1
xCode 1
25 terms
·
StudBud Administration
·
3 plays
xCode and Programming Concepts
Flashcards
25 cards
F
Practice quiz
P
Host live
L
Questions
25
Answers
1
What
type
of variable will be initialised here?
Boolean
Integer
String
Double
2
Which of the following would be assigned a
Double
data type?
var state = "Rhode Island"
let speedLimit = 75.0
let country = "Belgium"
let population = 142000
3
To write a comment in Xcode, the symbol the line needs to start with is:
??
//
\\
**
4
Which of the following is immutable?
let
var
5
Int
stores an integer, or whole number
has only two possible values: true and false
a number with a decimal point
allows you to write text
6
Double
stores an integer, or whole number
allows you to write text
has only two possible values: true and false
a number with a decimal point
7
What
type
of variable will be initialised here?
Boolean
Integer
String
Double
8
Which of the following values would be best represented with a constant?
Player Score
Player Location
Player Level
Player Name
9
What
type
of variable will be initialised here?
Double
String
Boolean
Integer
10
A variable is mutable
True
False
11
What
type
of variable will be initialised here?
String
Double
Integer
Boolean
12
What will the following code print to the console?
"Hello, world!"
"Goodbye, playground!"
"Testing, testing, 1-2-3"
"Hello, playground!"
13
What is the value of myNumber at the end of the following code?
10
12
6
4
14
What
type
of variable will be initialised here?
Double
Boolean
String
Integer
15
Which keyword is used to declare a constant?
let
var
dec
const
16
Which of the following would best represented by a variable?
Birthday
Age
Name
Home Address
17
Boolean:
allows you to write text
has only two possible values: true and false
stores an integer, or whole number
a number with a decimal point
18
Which of the following is mutable?
let
var
19
Which symbol assigns a value?
+
*
-
=
20
A constant is mutable
True
False
21
What is the value of myNumber at the end of the following code?
42
24
36
12
22
What
type
of variable will be initialised here?
Integer
Boolean
String
Double
23
What
type
of variable will be initialised here?
Integer
String
Double
Boolean
24
Which keyword is used to declare a variable
const
dec
let
var
25
String
a number with a decimal point
allows you to write text
stores an integer, or whole number
has only two possible values: true and false