Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1)
- Masz połączyć wszystkie słowa w słowniku w jedno długie słowo, której metody użyjesz?
- Uzasadnij
- odpowiedź.
- a)
- public static void SumOfStrings(ref string allWords, string wordToAdd)
- {
- allWords = allWords + wordToAdd;
- }
- b)
- public static void
- SumOfStrings(ref StringBuilder allWords, string wordToAdd)
- {
- allWords.Append(wordToAdd);
- }
- 2)
- Znajdź błąd w poniższym kodzie:
- public sealed class Vehicle
- {
- public int TopSpeed { get; set; }
- public virtual void Move()
- {
- /@ Interaction logic for Move @/
- }
- }
- public sealed class Bike : Vehicle
- {
- public int TopSpeed { get; set; }
- private override void Move()
- {
- base.Move();
- }
- }
- 3)
- Dlaczego poniższy kod nie skompiluje się? Co należy zrobić, żeby był poprawny?
- public static T GetObjectOrNull<T>(bool getNull)
- {
- if (getNull)
- {
- return null;
- }
- else
- {
- return new T();
- }
- }
- 4)
- Jakie warunki musi spełniać klasa MyClass, aby poniższa linijka kodu była poprawna?
- var myObject = new MyClass { 42 };
- 5)
- Czym różnią się zmienne poprzedzone słowem kluczowym var w języku JavaScript i C#?
- 6)
- W jaki sposób usunąć
- zduplikowane rekordy z tabeli?
- declare @t table (x int)
- insert into @t values (1)
- insert into @t values (1)
- insert into @t values (2)
- insert into @t values (2)
- insert into @t values (2)
- insert into @t values (3)
- 7)
- Jak wykorzystując jQuery można zliczyć liczbę lat po kliknięciu przycisku Sumuj i wyświetlić jako alert.
- <script src="https://code.jquery
- .com/jquery
- -
- 2.1.4.js"></script>
- <table id="usersTable">
- <tr>
- <th>#</th>
- <th>Name</th>
- <th>Age</th>
- </tr>
- <tr>
- <td>1</td>
- <td>Kowalski</td>
- <td><input type="text"/></td>
- </tr>
- <tr>
- <td>2</td>
- <td>Malinowski</td>
- <td><input type="text"/></td>
- </tr>
- </table>
- <button id="sum" type="button" >Sumuj</button>
- 8)
- Ja wygląda de
- finicja CSS, która poniższe bloki div
- <div class="
- wrapper
- ">
- <div class="
- left
- -
- top
- >Top
- </div>
- <div
- class="
- center”
- >Cente
- red
- </div>
- <div class="
- right
- -
- bottom">Bottom
- </div>
- </div>
- ułoży w ten sposób
- :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement