Developed by Apple Inc. For iOS, macOS, Linux, watchOS, and tvOS, Swift is a multi-paradigm programming language. Take this basic programming test to assess your knowledge of Swift.
Questions and Answers
1.
Which keyword do you use to announce constants in Swift?
A. 
Var
B. 
Let
C. 
Con
D. 
Value
2.
How many types of integers are in Swift?
A. 
1
B. 
2
C. 
3
D. 
4
3.
Swift integers are presented in all of these bit forms except which of the following?
A. 
24
B. 
16
C. 
32
D. 
64
4.
What type of integer is denoted by “Int8”?
A. 
Open
B. 
Signed
C. 
Unsigned
D. 
Close
5.
What are numbers with fractional components called in Swift?
A. 
Sinking numbers
B. 
Decimals
C. 
Floating numbers
D. 
Fractional numbers
6.
How do you write comments in Swift?
A. 
*/ and */
B. 
/* and /*
C. 
/* and */
D. 
*/ and /*
7.
What are the collection types in Swift?
A. 
Dictionary and array
B. 
Array and library
C. 
Dictionary and library
D. 
Library, dictionary and array
8.
Which of these is not a control transfer statement in Swift?
A. 
Break
B. 
Continue
C. 
Change
D. 
Return
9.
What does the question mark (?) indicate?
A particular property is...
A. 
Necessary
B. 
Missing
C. 
Optional
D. 
Changed
10.
What should you use to provide a default value for a variable in Swift?
Are you ready for this Scratch quiz? It is a wonderful quiz on the free programming language, Scratch. There are easy, medium, and even hard-level questions in this quiz. These questions are not only going to test your knowledge...
Questions: 18 | Attempts: 51121 | Last updated: Mar 22, 2022
Sample Question
Which sprite does the script that is displayed affect?
Let's test your knowledge about 'Ínteger Programming and Goal Programming' with the help of this quiz. Try answering all the questions and see how good you score. Try sharing this quiz with your friends and...
Questions: 35 | Attempts: 22071 | Last updated: Mar 22, 2022
Sample Question
Mark the correct statement about integer programming problems (IPPs):
Are you ready to attempt these QBasic programming quiz questions and answers? Yes, this is a quiz which is about QBasic programming. Do you know a lot about this? This is the time to prove your understanding of it. Try to answer...
Questions: 15 | Attempts: 12294 | Last updated: Mar 22, 2022
Sample Question
What will the following code produce? PRINT "Afrikom Computer School"