Safcode | Code Your Ideas by Sir Safder
+923132835245
safcode3@gmail.com
SAFCODE
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Safcode
Home
(current)
About
Courses
CIT
Web Designing
Office Automation
Graphics Designing
Web Development
Software Development
Digital Marketing
App Development
Tutorials
Softwares
Programming Notes
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. Which of the following is incorrect data type in swift?
Optional
UInt
Double
Char
View Answer
2. First version of IOS released was _______
2009
2010
2007
2005
View Answer
3. Which method is used to check if a value in a set?
contains()
includes()
exists()
excludes()
View Answer
4. Which of the following will be executed. If no matches occurs in switch statement?
Case 0
Continue
Break
Default
View Answer
5. IOS stands for?
None of these
Internet Operating System
Iphone Operating System
Internet Object Security
View Answer
6. Which of the following is the default access level of an object?
Private
File Private
Public
Internal
View Answer
7. Object is _________ of a class.
a duplicate
the opposite
a declaration
an instance
View Answer
8. Which of the following classes is used to encode a JSON string?
JSONDecoder
JSONString
JSONEncoder
None of these
View Answer
9. _________ are a collection of different values of the same type in an unorder list.
Sets
Groups
Collections
Values
View Answer
10. Which keyword does in function start?
var function
function_name
function
func
View Answer
11. Lazy properties are declared by using the _________ keyword before the property declaration.
weak
Lazy
Slow
None of these
View Answer
12. How is an external parameter used with a function?
When the parameter is used in the function body
When calling the functions
None of these
When return value are not required
View Answer
13. The building blocks using object, variables and structures are known as _______
objects
properties
methods
classes
View Answer
14. To use a function we call that function name with its name and what will be passed as input values?
Expressions
variables
Arguments
parameters
View Answer
15. Which of the following will be executed, if no matches occur in switch statement?
default
switch
continue
break
View Answer
16. The IDE used in swift is
Dreamweaver
All of them
Swiftc
XCODE
View Answer
17. _________ are collection of key-value pairs, where all keys are of same type and all values are of same type.
Dictionaries
Properties
Classes
Arrays
View Answer
18. To Create Mutable Object __ Is Used?
var
Both A & B
let
None of them
View Answer
19. First IOS was written In
1996
1986
2006
2010
View Answer
20. What is a closure Expression?
Self-contained block of codes
Code that ends a function
None of these
A function that occurs within another function
View Answer