1. Soru: Kullanıcıya ismini soran ve ekrana "Merhaba, [isim]!" şeklinde mesaj gösteren bir C# programı yazın.

C# FONKSİYONLAR

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Berkay Soysal
Used 2+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
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);
8.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
8. Soru: Kullanıcıdan bir cümle alan ve bu cümledeki kelime sayısını ekrana yazdıran bir program yazın.
A) input sentence; string[] words = sentence.Split(' '); int count = words.Length; Show(count);
B) string sentence = ReadString(); string[] words = sentence.Split(' '); int count = words.Length; Print(count);
C) string sentence = Console.ReadLine(); string[] words = sentence.Split(' '); int count = words.Length; Console.WriteLine(count);
D) string sentence = Console.Read(); string[] words = sentence.Split(' '); int count = words.Length; Console.WriteLine(count);
Similar Resources on Wayground
10 questions
Pyhton

Quiz
•
9th - 10th Grade
10 questions
Программирование C#

Quiz
•
1st - 10th Grade
11 questions
9-10 sene sonu

Quiz
•
9th - 10th Grade
13 questions
Python Loops

Quiz
•
9th - 11th Grade
10 questions
python

Quiz
•
9th - 12th Grade
10 questions
C# lesson10

Quiz
•
1st - 10th Grade
11 questions
deneme python

Quiz
•
9th Grade
10 questions
10. Sınıf 2.2 Yazılı Sınavı Öncesi Çalışma Soruları

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
Discover more resources for Computers
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade