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