C# Operators

Quiz
•
Computers
•
10th Grade
•
Hard
Michael Atienza
Used 12+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You are writing a program to determine if a user's input int age is eligible for a senior discount (age 60 or older). Which of the following conditions would you use?
age > 59
age >= 60
age == 60
age < 60
2.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You have two variables int x = 10; and int y = 5;. You want to check if x is greater than twice the value of y. Which of the following expressions should you use?
x > 2 * y
x == 2 * y
x < 2 * y
x >= 2 * y
3.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You are developing a program to compare two strings string str1 and string str2. You want to check if str1 is lexicographically greater than str2. Which of the following expressions would you use?
str1 > str2
str1 == str2
str1 < str2
str1 != str2
4.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You have a boolean variable bool isRainy = true; and want to check if it's not raining. Which of the following expressions should you use?
isRainy
!isRainy
isRainy == true
isRainy != false
5.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You are validating user input for a positive integer int num. You want to ensure that num is greater than zero. Which of the following conditions would you use?
num >= 0
num == 0
num < 0
num > 0
6.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
In a game, you want to check if the player's score int playerScore is at least 100 points to qualify for the next level. Which of the following conditions should you use?
playerScore > 100
playerScore >= 100
playerScore == 100
playerScore < 100
7.
MULTIPLE CHOICE QUESTION
2 mins • 2 pts
You have two variables double price = 25.50; and double budget = 50.00;. You want to check if the price is within the budget. Which of the following expressions should you use?
price == budget
price >= budget
price > budget
price <= budget
Create a free account and access millions of resources
Similar Resources on Wayground
26 questions
AP CSP Unit 7: Parameters, Returns, and Libraries

Quiz
•
9th - 12th Grade
20 questions
Criação de Páginas Web (HTML/Wordpress)

Quiz
•
10th Grade
30 questions
การเขียนโปรแกรมคอมพิวเตอร์ (PHP)

Quiz
•
10th - 12th Grade
20 questions
JavaScript Basics Review

Quiz
•
7th - 12th Grade
20 questions
G10 IGCSE ICT Security of Data

Quiz
•
9th - 10th Grade
20 questions
POCS-Ch. 2 Review (Comprehension)

Quiz
•
7th - 12th Grade
27 questions
تمارين بايثون للمسار الفني والمهني تقن 806 / 804

Quiz
•
10th Grade - University
20 questions
LATIHAN SOAL INFORMATIKA

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade