Tag: General

  • Java Quizs Question & Answers – Character and Boolean Data Types

    Q 1. What will be the output of the following Java program? class mainclass { public static void main(String args[]) { char a = ‘A’; a++; System.out.print((int)a); } } A. 64B. 65C. 67D. 66 Show Answer Answer:-D. 66 Explanation ASCII value of ‘A’ is 65, on using ++ operator character value increments by one. output:$…

  • C++ Programming Quizs Question and Answers – Basics

    C++ Programming Quizs Question and Answers – Basics

    Q 1.What are the formal parameters in C++?A. Parameters with which functions are calledB. Variables that are never used in the functionC. Variables other than passed parameters in a functionD. Parameters which are used in the definition of the function Show Answer Answer:-D. Parameters which are used in the definition of the function Explanation Formal…

  • CSS Quizs Question & Answers – Gradients without Images

    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…

  • CSS Quizs Question & Answers – Targeting Styles with Media Queries

    CSS Quizs Question & Answers – Targeting Styles with Media Queries

    Q1. Which of the following Media Query describe the ratio of the device width to the device height of the media?A. device-aspectB. device-aspect-query C. device-aspect-ratioD. none of the mentioned Show Answer Answer:-B. device-aspect-query Q 2. Which of the following Media Query determines if output is grid, like a simple terminal or phone, or bitmap, like…

  • Java Quizs Question & Answers – Integer and Floating Data Types

    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 – Styling Lists and Navigation Menus

    CSS Quizs Question & Answers – Styling Lists and Navigation Menus

    Q 1. Which of the following property defines labels for a list of items?A. list-shapeB. list-styleC. list-typeD. list-style-type Show Answer Answer:-D. list-style-type Explanation Syntax: list-style-type: disc | circle | square | decimal Q 2. Which of the following property defines in a shorthand form the width, style, and color for all four sides of an…

  • CSS Quizs Question & Answers – CSS Box Model

    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 – Embedding Web Fonts

    CSS Quizs Question & Answers – Embedding Web Fonts

    Q 1. Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite?A. gridB. monochromeC. resolutionD. orientation Show Answer Answer:-D. orientation Q 2. Which of the following media query describe the ratio of the width to the height of the media?A. aspect-ratioB. ratio…

  • CSS Quizs Question & Answers – Styling Texts

    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

    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…