What strategies would you recommend that Apple pursue to assure widespread consumer adoption of Apple Pay?
Diamond
Given an integer value
N, write a program to print a number diamond of 2*N -1 rows as shown below.
Input
The first line of input is an integer
N.
Explanation
In the given example, the number of rows in the diamond is
5.
So, the output should be
. . . . 0 . . . .
. . . 0 0 0 . . .
. . 0 0 0 0 0 . .
. 0 0 0 0 0 0 0 .
0 0 0 0 0 0 0 0 0
. 0 0 0 0 0 0 0 .
. . 0 0 0 0 0 . .
. . . 0 0 0 . . .
. . . . 0 . . . .
First Prime Number
You are given
The first line of input is an integer
In the given example of
5 integers
W pattern with *
Write a program to print
The first line is an integer
For
N = 5The output should be
* * * * * * * * *
* * * * * * * *
* * * * * *
* * * *
* *18)IL stand for
A)Internal Language B)Intermediate Language C)International Language
19)Which of the following is a relational operator in VB.NET
A)<> B)() C)== D);
20)Out of the following Which is NOT a type of access modifier?
A)Protected B)Private C)Public D)Confidential
13)WHich of the following is not a keyword in Visual Basic?
A)Dim B)ReDim C)Start D)Next
14)Which syntax is used to add an item to listbox?
A)ListBox.Items.Add() B)ListBox.Items.Item.Insert() C)ListBox.selectedItem.Add() D)ListBox.Items.Index.Add()
15)Which function is used to execute an sql statement
and returns the number of row affected from an object of the sqlCommand?
A)ExecuteNonQuery() B)ExecuteQuery() C)Execute() D)ExecuteBegin()
16)Which of the following converts the expression to Char data type in VB.NET?
A)Convert.ToBool(expression) B)Convert.ToCharacter(expression) C)Convert.ToString(expression) D)Convert.ToChar(expression)
17)Which of the following is not string manipulation method?
A)RemoveAt() B)Remove() C)Substring() D)ItemOf()
7)Which of the following access modifier identifies a property as the default property of its class,structure,or interface?
A)ByRef B)ByVal C)Default D)Friend
8)Which property is used to disable a button VB.NET?
A)disabled = true B)disabled =false C)enabled = true D)enabled =false
10)VB.NET is
A)Platfrom Independent B)Compiler Language C)Forward compatible D)Backward compatible with previous versions
11)The __________ method is a method used to get the current data and time.
A)TimeToday B)Now C)TimeOfDay D)FromOAData
12)What is the size of a double datatype in VB.NET?
A)2 bytes B)4 bytes C)8 bytes D)10 bytes
4)Which are the standard prefixes for the textbox and label controls respectively?
A)txo and lbl B)txb and lbl C)txt and lbl D)tex and leb
5)A GUI
A)uses buttons,menus,and icons B)should be easy for a user to manipulate C)both (a) and (b) D)stands for Graphic Use Interaction
1)Which of the following in not a conversion specification in VB.NET?
A)CObj(expreession) B)CAarry(expreession) C)CShort(expreession) D)CSng(expreession)
2)Which is not a relational operator in Visual Basic?
A)<> B)!= C)= D)>=
3)Which of the following access modifier specifices that an argument is passed in such a way that the called procedure or property cannot
change the value of variable underlying the argument in the called procedure
A)ByRef B)ByVal C)Default D)Friend
Solid Right Angled Triangle - 2
Given an integer number
The first line of input is an integer
In the given example, the solid right-angled triangle of side
5. Therefore, the output should be
*
* *
* * *
* * * *