Tag: India
-
CSS Quizs Question & Answers – Gradients without Images
Q 1. Which of the following is not a browser-specific versions of linear-gradient()?A. -moz-linear-gradient()B. -mac-linear-gradient()C. -o-linear-gradient()D. -webkit-linear-gradient() Show Answer Answer:-B. -mac-linear-gradient() Q 2. Which of the following argument is not accepted by radial-gradient() function?A. ShapeB. PositionC. Color stopsD. Time Show Answer Answer:-D. Time Q 3. Which of the following function creates a CSS gradient image…
-
Java Quizs Question & Answers – Integer and Floating Data Types
Q 1. An expression involving byte, int, and literal numbers is promoted to which of these?A. longB. intC. byteD. float Show Answer Answer:-B. int Explanation An expression involving bytes, ints, shorts, literal numbers, the entire expression is promoted to int before any calculation is done. Q 2. Which of these literals can be contained in…
-
CSS Quizs Question & Answers – CSS Box Model
Q 1. Which of the following display property value is described by used internally by browsers to create list items. Of no practical value to web designers?A. inline-blockB. groupC. list-itemD. none Show Answer Answer:-C. list-item Q 2. Which of the following property controls the horizontal overflow of a block or inline block?A. overflow-xB. overflowC. overflow-yD.…
-
CSS Quizs Question & Answers – Styling Texts
Q 1. Which of the following property converts text to initial capitals, all uppercase, or all lowercase?A. textB. text-transformC. text-decorationD. text-uppercase Show Answer Answer:-B. text-transform Q 2. Which of the following font-variant property render text using the same letter case as in the underlying code? A. boldB. small-capsC. normalD. none of the mentioned Show Answer…
-
Python Quizs Question– String II
Q 1. What will be the output of the following Python code snippet? print(‘Ab!2’.swapcase()) A. AB!@B. ab12C. aB1@ D. aB!2 Show Answer Answer:-D. aB!2 Explanation Lowercase letters are converted to uppercase and vice-versa. Q 2. What will be the output of the following Python code snippet? print(‘ab cd ef’.title()) A. Ab cd efB. Ab cd…
-
Python Multiple Choice Quizs Question– String
Q 1. The output of executing string.ascii_letters can also be achieved by:A. string.ascii_lowercase_string.digitsB. string.lowercase_string.uppercaseC. string.lettersD. string.ascii_lowercase+string.ascii_uppercase Show Answer Answer:-D. string.ascii_lowercase+string.ascii_uppercase Explanation Execute in shell and check. Q 2 . What will be the output of the following Python code? A. ollehB. helloC. hD. o Show Answer Answer:-D. o Explanation 1 corresponds to the last index.…
-
Python Quizs Question and Answers – While and For Loops – 2
Q 1. What will be the output of the following Python code? x = “abcdef” while i in x: print(i, end=” “) A. a b c d e fB. abcdefC. i i i i i i …D. error Show Answer Answer:-D. error Explanation NameError, i is not defined. Q 2. What will be the output…
-
Python Multiple Choice Quizs Question – While and For Loops 1
Q 1. What will be the output of the following Python code? i = 1 while True: if i%3 == 0: break print(i) i + = 1 A. 1 2B. 1 2 3C. errorD. none of the mentioned Show Answer Answer:-C. error Explanation SyntaxError, there shouldn’t be a space between + and = in…
-
Python Quizs Question and Answers – Formatting – 2
Q 1. The output of which of the codes shown below will be: “There are 4 blue birds.”?A. ‘There are %g %d birds.’ %4 %blueB. ‘There are %d %s birds.’ %(4, blue)C. ‘There are %s %d birds.’ %[4, blue]D. ‘There are %d %s birds.’ 4, blue Show Answer Answer:-B. ‘There are %d %s birds.’ %(4,…