Debug School

rakesh kumar
rakesh kumar

Posted on

Swift and Programming Foundations

swift_basic_syntax

1)semicolons after each statement are optional.
2)if you are using multiple statements in the same line then semicolon required or not
3)Space on both sides of an operator should be equal

swift_variables

4)syntax of multiple variables −
5) what is Type annotation

swift_constants

6)syntax to declare multiple constant

difference-between-let-and-var-in-swift

7)Difference between let and var

swift_data_types

difference-between-structclass-and-enum

data-type-in-swift

8)classify different kind of data type
9) what are the user defined data type, collective data type and derived data type
10.Difference between struct,class and Enum and When to Use Which to create project for developer
11) why init fun is need to declare in class compulsory but for struct not compulsory
12.swift is type safety programming language
13.Type inference is a special feature of Swift language

swift_strings

different way to create string 2 way
14.difference between mutable and immutable string
15.how to modify or concatenate two string
16.how to insert into string literal or meaning of string interpolation
17syntax to determine string length
18 string comparision operator syntax
19.how to get index of each char from given string using enumerated
20.difference between enumerated and foreach function
21.how to determine given string starts or ends with specified string
22.how to remove whole char of string,first char of string or last char of string, or range of specified char
23.how to reverse the char

  1. purpose of type alias

swift_tuples

Tuples can store multiple values of the same or different data types, separated by commas.
how to access and modify tuple value
how to Assigning tuple to a set of constants
syntax for assigning names to a tuples elements
what is named tuple and nested tuple
how to add or modify elements of named tuple
swift_arrays
how to adding new element in existing array
how to get index of each elements of array
how to adding two array

swift_sets

swift_dictionaries

how to accessing and modifying dictionary
how to removing key value pair
how to removing all at once
how to apply filter in existing dictionary

Top comments (0)