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