gs gs108 Data Types, Variables and Operators - Bit-wise and Conditional Operators - Quiz No.1
gs gs108 CSharp Quiz
This quiz belongs to book/course code gs gs108 CSharp of gs organization. We have 110 quizzes available related to the book/course CSharp. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Data Types, Variables and Operators. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
static void Main(string[] args) { byte b1 = 0 * AB; byte b2 = 0 * 99; byte temp; temp = (byte) ~b2; Console.Write( temp + " "); temp = (byte) (b1 << b2); Console.Write(temp + " "); temp = (byte)(b2 >> 2); Console.WriteLine(temp); Console.ReadLine(); }
static void Main(string[] args) { int x = 10, y = 20; int res; /*_______________*/ Console.WriteLine(res); }
public static void Main(string[] args) { int a = 4; int c = 2; bool b = (a % c == 0 ? true : false); Console.WriteLine(b.ToString()); if (a/c == 2) { Console.WriteLine("true"); } else { Console.WriteLine("false"); } Console.ReadLine(); }
True False
False True
True True
False False
!=, ?:, &, ++, &&