CIS 106 Test 1 Review.ACTUAL QUESTIONS WITH COMPLETE SOLUTIONS|100% GUARANTEED PASS|RATED, Exams of Computer Science

www.cs.washington.edu is a(n): pathname protocol domain email address - ✔✔✔Domain Which of the following represents the correct order, from largest to smallest? LAN, WWW, Internet

Typology: Exams

2024/2025

Available from 04/11/2025

genius-works
genius-works 🇺🇸

540 documents

1 / 31

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download CIS 106 Test 1 Review.ACTUAL QUESTIONS WITH COMPLETE SOLUTIONS|100% GUARANTEED PASS|RATED and more Exams Computer Science in PDF only on Docsity!

CIS 106 Test 1 Review. ACTUAL QUESTIONS WITH COMPLETE SOLUTIONS|100% GUARANTEED PASS|RATED A+|LATEST UPDATE 2025 www.cs.washington.edu is a(n): pathname protocol domain email address - /V /Domain Which of the following represents the correct order, from largest to smallest? LAN, WWW, Internet WWW, Internet, LAN Internet, WWW, LAN Internet, LAN, WWW - V/V V Internet, WWW, LAN Key words are: symbols or words that perform operations on one or more operands. words or names defined by the programmer. the data names in your program. words that have a special meaning in the programming language. - /V /words that have a special meaning in the programming language. Which of the following is not part of the programming process? design/model debugging/correcting errors testing All these are parts of the programming process - /V VAIl these are parts of the programming process What is syntax? Rules that must be followed when writing a program. Words that have a special meaning in the programming language. Symbols or words that perform operations. Words or names defined by the programmer. - ///Rules that must be followed when writing a program. Variables are symbolic names made up by the programmer whose values cannot be changed. operators that perform operations on one or more operands. symbolic names made up by the programmer that represents locations in the computer's RAM. reserved words. - ///symbolic names made up by the programmer that represents locations in the computer's RAM. are used to indicate the end of a Java statement. Periods Asterisks Semicolons Colons - VV /Semicolons The data contained in an object is known as methods. attributes. classes. fields. - /V Vattributes cannot run on computers with different operating systems. - /VVare highly portable. Which of the following commands will run the compiled Java program named Readlt? run Readit java Readlt.java java Readlt go Readlt - /VVjava Readlt A computer program is a set of instructions that enable the computer to solve a problem or perform a task. main memory. pseudocode. a flow chart. - /V Va set of instructions that enable the computer to solve a problem or perform a task. is a cross between human language and a programming language. The compiler Pseudocode The Java Virtual Machine Java - /V/Pseudocode This is a named storage location in the computer's memory. Operator Constant Literal Variable - /V /Variable This statement tells the compiler where to find the JOptionPane class and makes it available to your program. import javax.swing.JOptionPane; import Java.Swing.JOptionPane; import JOptionPane; import javax.JOptionPane; - /V Vimport javax.swing.JOptionPane; Which of the following statements correctly creates a Scanner object for keyboard input? Scanner kbd = new Scanner(System.keyboard); Scanner keyboard = new Scanner(System.in); Scanner keyboard(System.in); Keyboard scanner = new Keyboard(System.in); - /V /Scanner keyboard = new Scanner(System.in); When saving a Java source file, save it with an extension of wjava. wjavac. -SIC. .class. - /VV java. Which of the following is not a valid Java comment? /** Comment 1 */ */ Comment 2 /* // Comment 3 /* Comment 4 */ - /V /*/ Comment 2 /* To print "Hello, world" on the monitor, use the following Java statement: System.out.printin("Hello, world"); System Print = "Hello, world"; SystemOutPrintin(‘Hello, world’); system.out.printIn{Hello, world}; - /V /System.out.printin("Hello, world"); "hens in the hen house."); There are 583 hens in the hen house. There are 5785 hens in the hen house. There are x5\nhens in the hen house. There are 5785 hens in the hen house. - /V/ There are 5785 hens in the hen house. An IDE is an Interpreter Design Engine Integrated Design Editor Integrated Development Environment Input Directed Editor - V/V V Integrated Development Environment Java bytecode files use the extension .code -byte .Class java - /VV.class A "setter" method is formally called a modifier accessor constructor mutator - /V / mutator The Java___ translates Java source code into Java bytecode. editor programmer compiler Virtual Machine - /V /compiler Which of the following types of software is considered system software? word processing spreadsheet operating system presentation - /V Voperating system The process of finding and removing errors in a program is known as analysis debugging compiling design - VV / debugging The method returns a pseudo-random number between 0.0 and 0.999999... Math.pseudo() Math.pick() System.rnd() Math.random() - /V/Math.random() What is the result of the evaluation of the following expression: 3+4*5 23 35 23.0 60 - VV V23 The Java keyword when preceding a constructor used to create an object allocates memory for the object. Comments can be created using any of the following except: I I**/ \ ln AAA Comments in Java can use any of the following except I I**/ \ el on A Which of the following is not a storage device? CD-RW HDD SSD CPU - V/V VCPU Which of the following has the highest operator precedence? + () * --VVV() To use the Scanner class, it must be imported from javax.swing java.util java.io java.lang - /V Vjava.util To use JOptionPane, it must be imported using import javax.util.JOptionPane; import java.swing.JOptionPane; import javax.swing.JOptionPane; import java.io.JOptionPane; - /VVimport javax.swing.JOptionPane; To a method is to cause it to execute. declare define invoke stack - VV Vinvoke JOptionPane includes the__—_—srmetthod to return user's input. showMessageDialog() showInputDialog() showConfirmingDialog() showScannerDialog() - /V /showlnputDialog() RAM stands for Read Accessible Memory Rewrite Advanced Memory Random Access Memory Rotating Attenuated Memory - /V /Random Access Memory A ____ error does not appear until after the program has start to run (i.e., execute). syntax debugging colon drive - V/V Vdrive Which of the following is not an input device? mouse keyboard web-cam printer - /V printer API stands for Asynchronous Programming Interaction Appilcation Programming Interface Automated Program Interpreter Application Processing Integration - /V VAppilcation Programming Interface The CPU typically runs a process that fetches the intruction executes the instruction fetches and then executes the instructions executes and then fetches the instructions - /V /fetches and then executes the instructions An is a sequence of steps that specifies how to solve a problem. algorithm byte loop decision - /V Valgorithm In Java, to raise a number toa power, use the. “ operation Math.exp() method ** operation Math.pow() method - /V/Math.pow() method A constructor method can be invoked exactly one time. zero times (it can never be invoked). no more then two times. any number of times. - /V Vexactly one time. A method header ends with a semi-colon ; True False - /VVFalse A method that is invoked to instantiate an object is known as a void method access method String method boolean method constructor method - /V ¥constructor method All if statements need a corresponding else statement True False - /V /False All subclasses of Object inherit the toString() method. True False - /V/True Indentation helps make the program more readable and helps the compiler match an else clause with its corresponding if clause. True False - /V/False Redundancy, such as providing more then one way to set the value of an instance variable, can be a useful and effective design practice. True False - /V/True That part of a method definition that serves as a place holder for data passed to the method is known as a parameter its name its return type an argument None of the above - /V Va parameter The body of a method definition is a block of Java statements enclosed in square brackets [ ] True False - /V/False The signature of a method consists of its name the type of its parameters the number of its parameters All of the above - /VVAIl of the above When a method that returns a value is invoked, the invocation expression takes on the value that is returned. True False - /V/True When a value of a primitive type -- boolean, int -- is passed to a method, its original value remains unchanged outside the method, even if it is changed inside the method. True False - /V/True When a value of a reference type -- String -- is passed to a method, its original value remains unchanged outside the method, even if it is changed inside the method. True False - /V /False Which of the following is true of a constructor method? If a class contains no constructor declarations, Java will automatically supply a default constructor. A constructor is one way to initialize an object's instance variables. A constructor method cannot have a result type. All of the above. None of the above. - /VVAIl of the above. Which of the following would be a correct use of the Test() constructor method? public Test (String s, boolean b) { name = s; isValue = b; } Test t = new Test("false", "true"); Test t = new Test("true"); Test t = new Test("true", true); Test t = new Test(); the central processing unit None of the above. - /V /secondary storage Which computer system component is responsible for the fetch-execute cycle? the central processing unit (CPU) the keyboard and mouse the disk drive the main memory the arithmetic-logic unit (ALU) - /VV Which protocol is used to govern the communication that takes place on the World Wide Web. HTML (HyperText Markup Language) SMTP (Simple Mail Transfer Protocol) FTP (File Transfer Protocol) IP (Internet Protocol) HTTP (HyperText Transfer Protocol) - /V /HTTP (HyperText Transfer Protocol) In tags enclosed within angle brackets are used to describe the appearance of a Web page. HTML (HyperText Markup Language) Javascript Java HTTP (HyperText Transfer Protocol) BASIC - /VVHTML (HyperText Markup Language) Which of the following is NOT an example of a high-level programming language? COBOL BASIC Java Machine language C++ -/¥V/Machine language A is a program that translates an entire source code file into an executable file. interpreter comparator compiler operating system transmuter - /V /compiler A(n) translates and executes a single line of source code. comparator transmuter operating system compiler interpreter - / VV interpreter The UML acronym stands for Universal Modeling Language Uniform Modeling Language Unified Modeling Language Unified Markup Language Uniform Markup Language - /V/ Unified Modeling Language An abstract representation of some real world object or situation is known as a program model