100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

COP 2258 EXAM 1 Questions with complete solution 2024

Rating
-
Sold
-
Pages
21
Grade
A+
Uploaded on
06-09-2024
Written in
2024/2025

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.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 a

Show more Read less
Institution
COP
Module
COP

Content preview

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/*

Written for

Institution
COP
Module
COP

Document information

Uploaded on
September 6, 2024
Number of pages
21
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
flyhigher329 Liberty University
View profile
Follow You need to be logged in order to follow users or courses
Sold
355
Member since
3 year
Number of followers
175
Documents
17131
Last sold
1 week ago
STUDY GUIDES & ALL NURSING AND MORE EXAMS(RATED A+)

ARE YOU LOOKING FOR EXAMS!! MAY IT BE NURSING,EMT,REALTORS e.t.c WELCOME TO OUR SHOP FOR ALL YOU NEED TO PASS COZ WE ARE VERIFIED AND GUARANTEED TO PASS, DONT FORGET TO GIVE A REVIEW AFTER YOU HAVE PASSED THE EXAMS.........

3.7

59 reviews

5
25
4
10
3
14
2
4
1
6

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions