100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COP 2258 EXAM 1 Questions with complete solution 2024 $13.49   Add to cart

Exam (elaborations)

COP 2258 EXAM 1 Questions with complete solution 2024

 5 views  0 purchase
  • Course
  • COP
  • Institution
  • COP

COP 2258 EXAM 1 Questions with complete solution 2024 COP 2258 exam 1 What is computer programming? - correct answer The process of specifying the data types and the operations for a computer to apply to data in order to solve a problem. Programming Life Cycle Phases - correct answer 1.P...

[Show more]

Preview 3 out of 21  pages

  • September 6, 2024
  • 21
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COP
  • COP
avatar-seller
flyhigher329
COP 2258 exam 1
What is computer programming? - correct answer ✔The process of
specifying the data types and the operations for a computer to apply to data in
order to solve a problem.


Programming Life Cycle Phases - correct answer ✔1.Problem Solving
2.Implementation
3.Maintenance


Class Vs. Object - correct answer ✔Class: a description of the
representation of a specific kind of object, in terms of data and behavior.
Object: an instance of a class.


What is a byte code? - correct answer ✔


What is an algorithm? - correct answer ✔instructions for solving a problem in
a finite amount of time using a finite amount of data.


A __________ is a text parser that can get numbers, words, or phrases from
an input source such as a keyboard.


Scanner
Method
Print
System.out - correct answer ✔Scanner

,Which of the following statements will allow you to print the name Mary Smith
to the screen?


Input("Mary Smith");
Scanner name.next("Mary Smith");
System.out.print("Mary Smith");
System.in("Mary Smith"); - correct answer ✔System.out.print("Mary Smith");


The code below outputs Jane Williams on different lines and then starts a new
output line.


Code Example:


System.out.println("Jane");


System.out.print("Williams");




Output:


Jane


Williams


T or F - correct answer ✔False

, What will the following code output?


Code:


int feet = 5;


int inches = 3;


System.out.print("Mary you are " + feet + " feet " + inches + " inches tall.");


Mary you are 5 feet 3 inches tall.
Mary you are feet inches tall.
Mary you are feet feet inches inches tall.
"Mary you are " + 5 + " feet " + 3 + " inches tall."
"Mary you are " + feet + " feet " + inches + " inches tall." - correct answer
✔Mary you are 5 feet 3 inches tall.


Which of the following is are incorrect ways to include multi-line comments in
your code?


/*Declare all variables/*
*/Declare all variables*/
*/Declare all variables/*
/*Declare all variables*/ - correct answer ✔/*Declare all variables/*
*/Declare all variables*/
*/Declare all variables/*

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 flyhigher329. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73918 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.49
  • (0)
  Add to cart