Docsity

CSCI 1 - Introduction to Computers, Programs, and Java: Solved Questions, Exams of Biology

Toggle sidebar
bg1
CSCI 1 - Chapter 1
Introduction to Computers,
Programs, and Java fully
solved 2025(graded A+)
Monitors, printers, status lights are all examples of __ devices. -
answer output
At each step of its operation, the input to a Central Processing Unit
is - answer an instruction
A binary digit - answer is zero or one
In modern computer systems, a byte consists of ____ bits. - answer 8
When a program runs on a computer, the part of the computer that
carries out the instructions is called the - answer CPU
When a program runs on a computer, it is stored in - answer RAM
What best defines a "programming language"? - answer It allows us
to express an algorithm.
Which of these is not a programming language? - answer HTML
Which statement is NOT true: - answer Machine languages can be
used to write programs that can run on any machine.
pf3
pf4

Partial preview of the text

Download CSCI 1 - Introduction to Computers, Programs, and Java: Solved Questions and more Exams Biology in PDF only on Docsity!

CSCI 1 - Chapter 1

Introduction to Computers,

Programs, and Java fully

solved 2025(graded A+)

Monitors, printers, status lights are all examples of __ devices. - answer output At each step of its operation, the input to a Central Processing Unit is - answer an instruction A binary digit - answer is zero or one In modern computer systems, a byte consists of ____ bits. - answer 8 When a program runs on a computer, the part of the computer that carries out the instructions is called the - answer CPU When a program runs on a computer, it is stored in - answer RAM What best defines a "programming language"? - answer It allows us to express an algorithm. Which of these is not a programming language? - answer HTML Which statement is NOT true: - answer Machine languages can be used to write programs that can run on any machine.

A compiler - answer translates source code into executable code The code that a programmer writes is called __ code. - answer source An operating system - answer allocates resources like memory to programs that are running. Rearrange the following code so that it forms a correct program that prints out the letter Q: - answer public class Q { public static void main(String[] a) { System.out.println("Q"); } } Write a statement that prints Hello, world to the screen. - answer System.out.println("Hello, world"); Write a complete main method that prints Hello, world to the screen. - answer public static void main(String [] args){ System.out.println("Hello, world"); } Suppose your name was Alan Turing. Write a statement that would print your last name, followed by a comma, followed by a space and your first name. - answer System.out.println("Turing, Alan"); Suppose your name was George Gershwin. Write a complete main method that would print your last name, followed by a comma,

The rules that govern the correct order and usage of the elements of a language are called the ___ of the language. - answer syntax Files containing Java code must end with what "extension"? - answer .java The standard name of the Java compiler is - answer javac To run a Java program from a command line, we use the ___ command. - answer java An error in a program that involves a violation of language rules will be detected at ___ time. - answer compile Division by zero when the program is executing is an example of a ___ error. - answer runtime In Java, an argument is - answer information provided to a method. The ______ class allows non-GUI applications to interact with users using dialog boxes. - answer JOptionPane The import statement needed to use JOptionPane is - answer import javax.swing.JOptionPane; A byte in memory is identified by a unique number called its - answer address A bit is - answer a binary digit, like 0 or 1.