100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 Test Questions with Revised Answers $13.09   Add to cart

Exam (elaborations)

COSC 1436 Test Questions with Revised Answers

 11 views  0 purchase
  • Course
  • COSC 1436
  • Institution
  • COSC 1436

COSC 1436 Test Questions with Revised Answers What is the output of the following code? Let text = "hello" Print ("text") - Answer-Text When creating macOS or IOS swift projects, the code is written in plain text files with what file extension? - Answer-.swift What is the name of the defa...

[Show more]

Preview 2 out of 5  pages

  • August 29, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
Scholarsstudyguide
COSC 1436 Test Questions
with Revised Answers
What is the output of the following code?
Let text = "hello"
Print ("text") - Answer-Text

When creating macOS or IOS swift projects, the code is written in plain text files with
what file extension? - Answer-.swift

What is the name of the default swift source code file (if you do not change the name)? -
Answer-Main.swift

What does it mean to "declare" something in programming? - Answer-To give name to
something for the first time.

This is an example of // print (name) - Answer-A comment

Spaces are allowed when naming constants. For example let Number of Lost Dogs =
100 - Answer-False

What is the output of the following statement. Let x = "He said, \"hi there!\"" - Answer-He
Said, "Hi there!"

In swift, a names is formally called an ______________. - Answer-Identifier

Xcode keeps track of all the names you've defined; therefore, when you start typing,
you'll see a menu of suggested names (the names it knows about). This is called
___________________ - Answer-Auto completion

The following message is using___________. Let message = "Hello\(first name)" -
Answer-String interpolation

Let num = 10. When you define a constant in Swift, as in the example above, you are
____________ a constant: - Answer-Declaring

The answer to the following. 1000/0 - Answer-Error. In math you cannot divide by zero.

The \ in the following code is being used as an _________. Let startOfPoem = "roses
are red.\ nViolets are blue." - Answer-Escape character.

, In the statement below, the word let is an. Let num = 10 - Answer-Interger

The = is referred to as an ___________ operator. - Answer-Assignment

True - Answer-Unicode is an international standard that can represent almost any
character from any language in a standard way. Strings in swift are fully Unicode-
compliant.

A " line of code" is more formally known as a ___________ - Answer-Statement

Which indemnified uses listed below uses camel case naming - Answer-Answer:
numberLostDogs

Why is there an error in the following code?

Let myFirstName= "\Frank\""
Print (myFirstName) - Answer-The constant myFirstname does not exist (it needs a
capital N)

What is the result of this expression "10"+"2" - Answer-"102"

What is the purpose of the escape character? - Answer-Treating the character
imminently following the escape in a special way

What is the escape character in swift? - Answer-\

What is a character in swift programming? - Answer-Any of the 128,000+ Unicode
symbols that make up a string
(Letter, number,accents, emojis, punctuation, etc)

Which of these are strings - Answer-"99%" "99" "98.02" "happy birthday, my friend!"
"2014"

Imagine you're writing a program for a local dealership to calculate car loan information.
The program can be reused with different customers. Which of the following would best
represent the variable? - Answer-Customer salary

What is the file extension of Xcode playground files? - Answer-.playground

Xcode is an interactive environment that can be used to learn, test, and evaluate swift
code - Answer-True

On which of these operating systems can you install Xcode? - Answer-OS X (MAC OS)

Another name for computer error is insect. - Answer-False (bug)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.09. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62890 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.09
  • (0)
  Add to cart