C# FONKSİYONLAR

C# FONKSİYONLAR

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

C# 12

C# 12

10th Grade

10 Qs

Unit 4 Quiz

Unit 4 Quiz

12th Grade

10 Qs

C# 101 Mid-Semester Review

C# 101 Mid-Semester Review

9th - 12th Grade

12 Qs

javascript diziler

javascript diziler

11th Grade

10 Qs

kur2-Mblok

kur2-Mblok

9th - 10th Grade

10 Qs

Algoritma ve Değişkenler

Algoritma ve Değişkenler

12th Grade

8 Qs

döngüler

döngüler

10th - 11th Grade

10 Qs

Karar Kontrol Deyimleri

Karar Kontrol Deyimleri

11th Grade

10 Qs

C# FONKSİYONLAR

C# FONKSİYONLAR

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Berkay Soysal

Used 2+ times

FREE Resource

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);

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);