Программирование для Windows Phone для начинающих - ответы
Количество вопросов - 129
static void Main(string[] args) { Console.WriteLine("Console"); Console.ReadLine(); return; }
static void Main(string[] args) { int k=0; for (int j = 0; j < 11; j++) { if (j > 3) k = k + 2; else k = k - 2; } Console.WriteLine(k); Console.ReadLine(); return; }
private void Browser_Click(object sender, RoutedEventArgs e) { string site = textBox1.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название кнопки, нажатие на которую он обрабатывает (имя события нажатия не переопределялось). Ответ - слово (на английском языке)
using System;namespace Hello_world{ class Program { static void Main(string[] args) { int k=11; int h = 14; int j=k+h; int m = h - 3; Console.WriteLine(m); Console.ReadLine(); return; } }}
<StackPanel> <HyperlinkButton Content="Автомобили" NavigateUri="/Page1.xaml"/> <HyperlinkButton Content="Техника" NavigateUri="/Page2.xaml"/> <HyperlinkButton Content="Мебель" NavigateUri="/Page3.xaml"/> <HyperlinkButton Content="Электроника" NavigateUri="/Page2.xaml"/> <HyperlinkButton Content="Продукты питания" NavigateUri="/Page5.xaml"/> <HyperlinkButton Content="Другое" NavigateUri="/Page9.xaml"/></StackPanel>Ответ - целое число
private void Load_Click(object sender, RoutedEventArgs e) { string site = textBox3.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название строковой переменной, содержимое которой передаётся элементу “веб браузер” методом Navigate. Ответ - слово (на английском языке)
…static void Main(string[] args) { int k=0; for (int j = 0; j < 7; j++) { k = k + 1; } k = k * 2; Console.WriteLine(k); Console.ReadLine(); return; }…
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="Margin" Text="Grid" VerticalAlignment="Top" /> </Grid>
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); segoe36 = this.Content.Load<SpriteFont>("Segoe36"); textSize = segoe36.MeasureString(text); Viewport viewport = this.GraphicsDevice.Viewport; textPosition = new Vector2((viewport.Width - textSize.X) / 2, (viewport.Height - textSize.Y) / 2); TouchPanel.EnabledGestures = GestureType.HorizontalDrag; }Ответ - слово (на английском языке)
public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Random rand = new Random(); string text = " Windows Phone 7"; SpriteFont segoe36; Vector2 textSize; Vector2 textPosition; Color textColor = Color.White;… }Напишите название используемого шрифта. Ответ - слово (на английском языке)
static void Main(string[] args) { Console.WriteLine("Write line"); Console.ReadLine(); return; }
using System;namespace Hello_world{ class Program { static void Main(string[] args) { int k=10; int h = 15; int j=k*h; int m = h * 2; Console.WriteLine(m); Console.ReadLine(); return; } }}
…static void Main(string[] args) { int k=0; for (int j = 4; j < 11; j++) { k = k + 1; } k = k + 5; Console.WriteLine(k); Console.ReadLine(); return; }…
static void Main(string[] args) { int k=0; for (int j = 1; j < 9; j++) { if (j < 5) k = k + 1; else k = k + 2; } Console.WriteLine(k); Console.ReadLine(); return; }
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBlock1" Text="Text" VerticalAlignment="Top" /> </Grid>
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="Name" Text="Grid" VerticalAlignment="Top" /> </Grid>
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { NavigationService.Navigate(new Uri("/page4.xaml", UriKind.Relative)); e.Cancel = true; }Обеспечивает:
private void Do_Click(object sender, RoutedEventArgs e) { string site = textBox1.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название кнопки, нажатие на которую он обрабатывает (имя события нажатия не переопределялось). Ответ - слово (на английском языке)
private void Do_Click(object sender, RoutedEventArgs e) { string site = textBox3.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название элемента “веб браузер”, содержимое которого изменяется данным кодом. Ответ - слово (на английском языке)
… spriteBatch.Begin(); spriteBatch.Draw(helloTexture,position, Color.White); spriteBatch.End(); …Последний аргумент Draw – это цвет, который может использоваться для _______ существующих цветов растрового изображения. Выберите пропущенное слово
<StackPanel> <HyperlinkButton Content="Огурцы" NavigateUri="/Page6.xaml"/> <HyperlinkButton Content="Томаты" NavigateUri="/Page5.xaml"/> <HyperlinkButton Content="Зелень" NavigateUri="/Page3.xaml"/> <HyperlinkButton Content="Картофель" NavigateUri="/Page8.xaml"/> <HyperlinkButton Content="Баклажаны" NavigateUri="/Page8.xaml"/> <HyperlinkButton Content="Перец" NavigateUri="/Page5.xaml"/></StackPanel>Ответ - целое число
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBlock1" Text="Grid" VerticalAlignment="Top" /> </Grid>
private void Load_Click(object sender, RoutedEventArgs e) { string site = textBox1.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название кнопки, нажатие на которую он обрабатывает (имя события нажатия не переопределялось). Ответ - слово (на английском языке)
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { NavigationService.Navigate(new Uri("/navigate.xaml", UriKind.Relative)); e.Cancel = true; }Обеспечивает:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" /> </Grid>
static void Main(string[] args) { int k=0; for (int j = 4; j < 10; j++) { if (j == 7) k = k * 2; else k = k + 1; } Console.WriteLine(k); Console.ReadLine(); return; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); segoe36 = this.Content.Load<SpriteFont>("Segoe36"); textSize = segoe36.MeasureString(text); Viewport viewport = this.GraphicsDevice.Viewport; textPosition = new Vector2((viewport.Width - textSize.X) / 2, (viewport.Height - textSize.Y) / 2); TouchPanel.EnabledGestures = GestureType.Hold; }Ответ - слово (на английском языке)
static void Main(string[] args) { Console.WriteLine("Program write"); Console.ReadLine(); return; }
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <TextBlock Height="30" HorizontalAlignment="Left" Margin="10,10,0,0" Name="textBlock15" Text="Grid" VerticalAlignment="Top" /> </Grid>
private void Browser_Click(object sender, RoutedEventArgs e) { string site = textBox3.Text; Navigator.Navigate(new Uri(site, UriKind.Absolute)); }Введите название элемента, содержимое которого присваивается строковой переменной site. Ответ - слово (на английском языке)
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) { NavigationService.Navigate(new Uri("/page2.xaml", UriKind.Relative)); e.Cancel = true; }Обеспечивает:
… spriteBatch.Begin(); spriteBatch.Draw(helloTexture,position, Color.White); spriteBatch.End(); …Последний аргумент Draw – это цвет, который может использоваться для _______ существующих цветов растрового изображения. Выберите пропущенное слово
using System;namespace Hello_world{ class Program { static void Main(string[] args) { int k=7; int h = 9; int j=k*h; int m = h + 5; Console.WriteLine(m); Console.ReadLine(); return; } }}
…static void Main(string[] args) { int k=0; for (int j = 1; j < 10; j++) { k = k + 1; } k = k - 3; Console.WriteLine(k); Console.ReadLine(); return; }…
<StackPanel> <HyperlinkButton Content="Стекловолокно" NavigateUri="/Page1.xaml"/> <HyperlinkButton Content="Древесина" NavigateUri="/Page5.xaml"/> <HyperlinkButton Content="Фанера" NavigateUri="/Page4.xaml"/> <HyperlinkButton Content="Битум" NavigateUri="/Page9.xaml"/> <HyperlinkButton Content="Стекло" NavigateUri="/Page2.xaml"/> <HyperlinkButton Content="Бетон" NavigateUri="/Page1.xaml"/> <HyperlinkButton Content="Лакокрасочные материалы" NavigateUri="/Page6.xaml"/></StackPanel>Ответ - целое число
… spriteBatch.Begin(); spriteBatch.Draw(helloTexture,position, Color.White); spriteBatch.End(); …Последний аргумент Draw – это цвет, который может использоваться для _______ существующих цветов растрового изображения. Выберите пропущенное слово
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); segoe36 = this.Content.Load<SpriteFont>("Segoe36"); textSize = segoe36.MeasureString(text); Viewport viewport = this.GraphicsDevice.Viewport; textPosition = new Vector2((viewport.Width - textSize.X) / 2, (viewport.Height - textSize.Y) / 2); TouchPanel.EnabledGestures = GestureType.Flick; }Ответ - слово (на английском языке)
public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Random rand = new Random(); string text = " Windows Phone 7"; SpriteFont segoe36; Vector2 textSize; Vector2 textPosition; Color textColor = Color.White;… }Напишите цвет выводимой строки. Ответ - слово (на английском языке)
public class Game1 : Microsoft.Xna.Framework.Game { GraphicsDeviceManager graphics; SpriteBatch spriteBatch; Random rand = new Random(); string text = "Windows Phone 7"; SpriteFont segoe36; Vector2 textSize; Vector2 textPosition; Color textColor = Color.White;… }Напишите выводимую строку. Ответ - фраза (на английском языке)