Skip to document

CSC1016S 2021 Theory Test 1

Computer Science Java Programming Test Paper
Course

Java programming (CSC1016S)

174 Documents
Students shared 174 documents in this course
Academic year: 2021/2022
Uploaded by:
0followers
2Uploads
0upvotes

Comments

Please sign in or register to post comments.

Preview text

Tests & Quizzes

Theory Test 1, 2021

Part 1 of 9 - Basics

Question 1 of 6 1 Points

The statement System.out("%3", 1234) outputs ____

Question 2 of 6 1 Points

public class _·est {

public static void n1 (String [] args) {

int X = 1;

}

}

int y = x++ + x;

System.out(u y is u + y);

What is displayed in the given code?

Question 3 of 6 1 Points

Every statement in Java ends with ___

• A. a semicolon (;)

• B. a period (.)

• C. a new line.

• D. an asterisk (*)

• E. a comma (,)

Reset Selection

Question 1 of 1 2 Points

Social issues and professional practice have as component computer ethics. While computer ethics does

not have a neat definition, it is clear what is, and is not, a topic of concern. For the following case, state

whether it belongs to computer ethics specifically or not, and explain in one short sentence why:

peer-to-peer software apps for distribution of softcopies of textbooks

Maximum number of characters (including HTML tags added by text editor): 32,

Show Rich-Text Editor (and character count)

Was this document helpful?

CSC1016S 2021 Theory Test 1

Course: Java programming (CSC1016S)

174 Documents
Students shared 174 documents in this course
Was this document helpful?
Tests & Quizzes
Theory Test 1, 2021
Part 1 of 9 - Basics
Question 1 of 6 1 Points
The statement System.out.printf("%3.1f", 1234.56) outputs ___ _
Question 2 of 6 1 Points
public class _·est {
public static void n1.ain (String [] args) {
int X = 1;
}
}
int y = x++ + x;
System.out.println(uy is u + y);
What is displayed in the given code?
Question 3 of 6 1 Points
Every statement in Java ends with __ _
A. a semicolon (;)
B. a period (.)
C. a new line .
D. an asterisk (*)
E. a comma (,)
Reset Selection