Practice Test

Practice Test

University

40 Qs

quiz-placeholder

Similar activities

Arrays in C

Arrays in C

University

40 Qs

FINAL_EXAM (CFP_122)

FINAL_EXAM (CFP_122)

University

35 Qs

Quiz on Programming Basics

Quiz on Programming Basics

3rd Grade - University

43 Qs

Structures and Pointers in C

Structures and Pointers in C

University

35 Qs

Python

Python

KG - Professional Development

35 Qs

Tema 6 Programación Básica

Tema 6 Programación Básica

University

40 Qs

DSA QUIZ - 2 (17-06-23)

DSA QUIZ - 2 (17-06-23)

University

40 Qs

function in Python

function in Python

University

37 Qs

Practice Test

Practice Test

Assessment

Quiz

Computers

University

Hard

Created by

Chansreypich undefined

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which of the following is the first step in problem-solving?

a) writing code

b) testing and debugging

c) identifying the problem

d) creating an algorithm

2.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which data type is used to store a single character in Java?

a) double

b) char

c) int

d) String

3.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which operator is used to compare the equality of two values?

a) ==

b) =

c) !=

d) ===

4.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which loop construct is guaranteed to execute at least once, regardless of T/F?

a) for

b) while

c) if-else

d) nested-if

e) do-while

5.

MULTIPLE SELECT QUESTION

2 mins • 2 pts

Which of the following is NOT a valid variable name in Java?

a) _profit

b) #profit

c) profitCurrent

d) intProfit

6.

MULTIPLE SELECT QUESTION

2 mins • 2 pts

What is the output of the following code?

int x = 5;

System.out.println(x++);

a) 6

b) 5

c) 0

d) compilation error

7.

MULTIPLE CHOICE QUESTION

2 mins • 2 pts

Which access specifier has the widest scope?

a) public

b) private

c) default

d) protected

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?