Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COSC 110 Exam 1 with all Correct & 100% Verified Answers |Actual Complete Exam |Already Graded A+

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
20-06-2026
Written in
2025/2026

COSC 110 Exam 1 with all Correct & 100% Verified Answers |Actual Complete Exam |Already Graded A+

Institution
Cosc
Course
Cosc

Content preview

COSC 110 Exam 1 with all Correct & 100% Verified
Answers |Actual Complete Exam |Already Graded A+

____________ is the physical aspect of the computer that can be seen. ✔Correct Answer-
Hardware

____________ is referred to as the brain of a computer. ✔Correct Answer-CPU

Why do computers use zeros and ones? ✔Correct Answer-because digital devices have two
stable states and it is natural to use one state for 0 and the other for 1.

One byte has ________ bits. ✔Correct Answer-8

____________ is a device to connect a computer to a local area network (LAN). ✔Correct
Answer-NIC

Computer can execute code in __________. ✔Correct Answer-machine language

___________ translates high-level language program into machine language program.
✔Correct Answer-A compiler

___________ is an operating system. ✔Correct Answer-Windows XP

_____________ is a program that runs on a computer to manage and control a computer's
activities. ✔Correct Answer-Operating system

Java was developed by _____________. ✔Correct Answer-Sun Microsystems

The main method header is written as: ✔Correct Answer-public static void main(String[] args)

Which of the following statements is correct? ✔Correct Answer-Every statement in a program
must end with a semicolon.

The JDK command to compile a class in the file Test.java is: ✔Correct Answer-javac Test.java

Which JDK command is correct to run a Java application in ByteCode.class? ✔Correct Answer-
java ByteCode

Java compiler translates Java source code into _________. ✔Correct Answer-Java bytecode

Suppose you define a Java class as follows:

, public class Test {

}

In order to compile this program, the source code should be stored in a file named ✔Correct
Answer-Test.java

The extension name of a Java bytecode file is ✔Correct Answer-.class

The extension name of a Java source code file is ✔Correct Answer-.java

Every statement in Java ends with ________. ✔Correct Answer-a semicolon (;)

A block is enclosed inside __________. ✔Correct Answer-braces

Suppose a Scanner object is created as follows:

Scanner input = new Scanner(System.in);

What method do you use to read an int value? ✔Correct Answer-input.nextInt();

If you enter 1 2 3, when you run this program, what will be the output?

import java.util.Scanner;

public class Test1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Enter three numbers: ");
double number1 = input.nextDouble();
double number2 = input.nextDouble();
double number3 = input.nextDouble();

// Compute average
double average = (number1 + number2 + number3) / 3;

// Display result
System.out.println(average);
}
} ✔Correct Answer-2.0

What is the exact output of the following code?

double area = 3.5;

Written for

Institution
Cosc
Course
Cosc

Document information

Uploaded on
June 20, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
Stuvia2026 Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
24
Member since
1 year
Number of followers
1
Documents
5748
Last sold
2 weeks ago
\"Your trusted Hub for Academic Excellence\"

Stuvia 2024 is your trusted destination for top-tier study materials, including high-quality exams, assignments, and verified answer keys. Our content is crafted for excellence thorough, up-to-date, and tailored to help students succeed in their academic journey. Whether you\'re preparing for a final exam or need support with coursework, every document in our store is designed to provide clarity, accuracy, and confidence. At Stuvia 2024, academic success starts with the right resources.

Read more Read less
2.3

3 reviews

5
0
4
0
3
2
2
0
1
1

Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions