C# Data Types

Quiz
•
Computers
•
11th Grade
•
Easy

Khaled Elsayed
Used 16+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which data type is used to create a variable that should store text?
str
string
myString
Txt
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you create a variable with the numeric value 5?
double x = 5;
num x = 5
int x = 5;
x = 5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
How do you create a variable with the floating number 2.8?
byte x = 2.8
double x = 2.8D;
int x = 2.8;
int x = 2.8D;
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which operator is used to add together two values?
The + sign
The * sign
The & sign
The & sign
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
The value of a string variable can be surrounded by single quotes.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a correct syntax to output "Hello World" in C#?
Console.WriteLine("Hello World");
print ("Hello World");
System.out.println("Hello World");
cout << "Hello World";
Similar Resources on Wayground
10 questions
Review Kotlin Day 1

Quiz
•
9th - 12th Grade
10 questions
Java Quiz 1: Introduction

Quiz
•
6th - 12th Grade
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
10 questions
Advanced Java Study Guide

Quiz
•
11th - 12th Grade
9 questions
Python Basics Quiz for KS3

Quiz
•
11th Grade - University
9 questions
Python Basics

Quiz
•
6th - 12th Grade
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
10 questions
Programação em C

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade