
C# FONKSİYONLAR
Authored by Berkay Soysal
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1. Soru: Kullanıcıya ismini soran ve ekrana "Merhaba, [isim]!" şeklinde mesaj gösteren bir C# programı yazın.
A) Console.Write("Merhaba, [isim]!");
B) Console.Print("Merhaba, [isim]!");
C) Console.Display("Merhaba, [isim]!");
D) Console.WriteLine("Merhaba, [isim]!");
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
2. Soru: Kullanıcıdan iki sayı alan ve bu sayıların toplamını ekrana yazdıran bir program yazın.
A) int num1 = Convert.ToInt32(Console.ReadLine()); int num2 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine(num1 + num2);
B) int a = ReadInt(); int b = ReadInt(); Print(a + b);
C) input num1; input num2; ShowMessage(num1 + num2);
D) double x = Console.ReadDouble(); double y = Console.ReadDouble(); Console.WriteLine(x + y);
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
3. Soru: Kullanıcıya doğum yılını soran ve yaşını hesaplayıp ekrana yazdıran bir program yazın.
A) int birthYear = Convert.ToInt32(Console.ReadLine()); int age = DateTime.Now.Year - birthYear; Console.WriteLine("Yaşınız: " + age);
B) int birthYear = ReadInt(); int age = 2023 - birthYear; Print("Yaşınız: " + age);
C) input birthYear; int age = 2023 - birthYear; Show(age);
D) double birthYear = Console.ReadDouble(); double age = 2023 - birthYear; Console.Print("Yaşınız: " + age);
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
4. Soru: Kullanıcıdan bir sayı alan ve bu sayının karesini ekrana yazdıran bir program yazın.
A) input num; int square = num * num; Show(square);
B) int a = ReadInt(); int square = a * a; Print(square);
C) int num = Convert.ToInt32(Console.ReadLine()); int square = num * num; Console.WriteLine(square);
D) double x = Console.ReadDouble(); double square = x * x; Console.WriteLine(square);
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5. Soru: Kullanıcıdan bir kelime alan ve bu kelimenin harf sayısını ekrana yazdıran bir program yazın.
A) string word = Console.ReadLine(); int length = word.Length; Console.WriteLine(length);
B) string word = ReadString(); int length = word.Length; Print(length);
C) input word; int length = word.Length; Show(length);
D) string word = Console.Read(); int length = word.Length; Console.WriteLine(length);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
6. Soru: 1'den 10'a kadar olan sayıları ekrana yazdıran bir döngü oluşturan bir program yazın.
A) loop (int i = 1; i <= 10; i++) { Print(i); }
B) for (int i = 1; i <= 10; i++) { Console.WriteLine(i); }
C) iterate (int i = 1; i <= 10; i++) { Show(i); }
D) repeat (int i = 1; i <= 10; i++) { Console.Write(i); }
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
7. Soru: Kullanıcıdan bir sayı alan ve bu sayının karekökünü ekrana yazdıran bir program yazın.
A) int num = Convert.ToInt32(Console.ReadLine()); double squareRoot = Math.Sqrt(num); Console.WriteLine(squareRoot);
B) int a = ReadInt(); double squareRoot = Math.Sqrt(a); Print(squareRoot);
C) input num; double squareRoot = Math.Sqrt(num); Show(squareRoot);
D) double x = Console.ReadDouble(); double squareRoot = Math.Sqrt(x); Console.WriteLine(squareRoot);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Programming basics
Quiz
•
10th - 11th Grade
13 questions
LENGUAJE C
Quiz
•
11th Grade
11 questions
Programming Quiz 1
Quiz
•
11th Grade
10 questions
Introduction à la programmation
Quiz
•
10th - 11th Grade
13 questions
Java 1
Quiz
•
11th Grade
10 questions
Intro to MIL
Quiz
•
11th Grade
10 questions
Programming with C++
Quiz
•
9th - 12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade