Search Header Logo

C# FONKSİYONLAR

Authored by Berkay Soysal

Computers

9th - 12th Grade

Used 2+ times

C# FONKSİYONLAR
AI

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?