
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
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);
Similar Resources on Wayground
10 questions
C#

Quiz
•
11th Grade
10 questions
python

Quiz
•
9th - 12th Grade
12 questions
Arrays Intro

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

Quiz
•
1st - 10th Grade
10 questions
Структуры (C#)

Quiz
•
10th Grade
10 questions
NTP-METOT

Quiz
•
11th Grade
10 questions
python ünite 1

Quiz
•
9th - 12th Grade
10 questions
Python-input-print-variables

Quiz
•
9th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

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

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade