click below
click below
Normal Size Small Size show me how
CCS FINALS
CCS MIDTERMS
| Question | Answer |
|---|---|
| M1 | |
| What is FTP used for? | File transfer |
| What is a web browser used for? | Previewing websites |
| What does HTTPS use for encryption? | SSL/TLS |
| What is a server? | System providing services |
| What year was HTML introduced? | 1991 |
| What is bootstrap used for? | Responsive UI Design |
| What is Docker used for? | Containerized deployment |
| Which language is used in front-end? | Javascript |
| What is DNS? | A system that translates domain names to IP addresses |
| What is website content? | Text,images, videos |
| What is navigation in a website? | System to move through pages |
| What year was CSS introduced? | 1996 |
| What does a database do? | Stores and manages data |
| What is GitHub? | A platform for hosting Git repositories |
| What is version control? | Tracking code changes |
| What language is used to structure web pages? | HTML |
| What is cloud hosting? | Distributed server infrastructure |
| What is WordPress? | Content management system |
| What is responsive design? | Adapts to screen sizes |
| What is SSL used for? | Secure Communication |
| What is the most common version control system? | Git |
| Which website type uses server-side languages? | Dynamic |
| What is a CMS used for? | Managing website content |
| What is a website? | A collection of web pages |
| What is a popular code editor? | Visual Studio Code |
| What is front-end development? | User interface design |
| What is shared hosting? | Multiple sites on one server |
| What is CI/CD? | Continuous integration and deployment |
| What is a client? | A device requesting services |
| What is back-end development? | Server-side logic |
| What is front-end development? | User interface design |
| What is web hosting? | Storing website files |
| What is VPS? | Virtual private server |
| What organization sets web standards? | W3C |
| What is a website? | A collection of web pages |
| What is the homepage? | The main page of a website |
| What is the client-server model? | Client requests, server responds |
| What type of website displays fixed content? | Static |
| M2 | |
| What tag is used for inline styling or grouping? | Span |
| What tag is used to define a text input field? | Input |
| What tag is used to define the page title? | Title |
| Which tag is used to define a section of content? | section |
| What attribute stores custom data? | data- |
| What tag is used to define a button? | button |
| Which attribute specifies the destination of a hyperlink? | href |
| What tag is used to label form inputs? | Label |
| What tag is used to define a text input field? | input |
| Which tag is used to define a list item? | li |
| What tag is used to define the document type? | !DOCTYPE html |
| What tag is used to define a video? | Video |
| What tag is used to include JavaScript files? | script |
| What tag is used to define an unordered list? | ul |
| What tag is used to define a block container? | div |
| What tag is used for multi-line text input? | Textarea |
| What tag is used to embed external content? | Iframe |
| What attribute is used to apply styles directly to an element? | style |
| What tag is used to define a caption for a table? | caption |
| What tag is used to group form elements? | fieldset |
| What tag is used for emphasized text? | Em |
| What tag is used for strong importance? | strong |
| What attribute opens a link in a new tab? | _blank |
| What tag is used to define inline quotes? | Q |
| What tag is used to define a line break? | Br |
| Which tag is used to define a dropdown menu? | select |
| What tag is used to define a table data cell? | Td |
| What tag is used to define a table header cell? | th |
| What tag is used to define metadata? | Meta |
| What tag is used to define a citation? | cite |
| What attribute is used to apply styles directly to an element? | Style |
| What tag is used to link external stylesheets? | link |
| What tag is used to define a thematic break? | hr |
| What tag is used to define sample output? | samp |
| Which tag contains metadata and links to stylesheets? | Head |
| Which tag is used for paragraph text? | p |
| M3 | |
| Which property controls the font size? | Font Size |
| Which property sets the direction of flex items? | Flex-direction |
| What property sets the visibility of an element? | Visibility |
| What property sets the overflow behavior? | Overflow |
| What selector targets a unique element by ID? | #id |
| Which unit is relative to the font size of the element? | Em |
| What property aligns text horizontally? | Text align |
| What property sets the animation effect? | Animation |
| What property adds shadow to text? | Text shadow |
| Which property sets the background color of an element? | Background color |
| Which property sets the height of an element? | Height |
| What property sets the thickness of text? | Font Weight |
| What property rotates or scales elements? | Transform |
| Which property sets the width of an element? | Width |
| What position value keeps an element fixed on the screen? | Fixed |
| What position value places an element relative to its normal position? | Relative |
| What property adds shadow to elements? | Box shadow |
| What property sets spacing between words? | Word spacing |
| What color format uses red, green, and blue values? | RGB |
| What is the default position value in CSS? | Static |
| Which selector targets all elements of a specific type? | Element |
| What property sets the style of text (italic, normal)? | Font style |
| What color format uses hue, saturation, and lightness? | Hsl |
| What property sets the cursor style? | Cursor |
| Which property aligns items vertically in flexbox? | Align items |
| Which property sets the space inside an element? | Padding |
| Which unit is relative to the viewport height? | Vh |
| Adds or removes text styling like underline | text-decoration |
| Sets the vertical spacing between lines. | line-height |
| Which property aligns items vertically in flexbox? | Align-items |
| Which property aligns items horizontally in flexbox? | justify-content |
| a methodology for naming CSS classes | BEM(block element modifier) |
| Allows items to wrap onto multiple lines. | Flex-wrap |
| Which unit is relative to the viewport width? | vw |
| What property sets the transparency level? | Opacity |
| What property disables pointer events? | pointer-events |
| What property sets the stacking order? | z-index |
| What value makes an element display inline? | inline |
| What does CSS stand for? | Cascading Style Sheet |
| What property sets the cursor style? | cursor |
| What position value places an element relative to its parent? | relative |
| What property disables text selection? | user-select |
| What is the purpose of the class selector? | Targets multiple elements |
| What property sets the border around an element? | border |
| What value makes an element not display at all? | none |
| What value allows items to wrap in a flex container? | Wrap |
| What color format uses a six-digit code? | Hex |
| What position value places an element relative to its parent? | absolute |
| What property sets the font family? | font-family |
| What property sets the thickness of text? | font-weight |
| When was Javascript created? | 1995 |
| M4 | |
| What is the output of typeof “Hello”? | String |
| Which keyword declares a block-scoped variable? | Let |
| What does the typeof operator return for a boolean? | boolean |
| What is the purpose of the finally block? | Execute after try/catch |
| What is a callback function? | A function passed as an argument |
| What does the typeof operator return for undefined? | Undefined |
| What is the default scope of var? | Function |
| What is the role of the browser in the client-server model? | Send requests |
| What is a function that remembers variables from its outer scope? | closure |
| What does the getElementById method do? | Selects an element by ID |
| What does the typeof operator return for an array? | Object |
| What is a semantic tag in HTML? | Header |
| What is the purpose of the DOM? | Represent document structure |
| What is the scope of const? | Block |
| What is the purpose of the throw statement? | Generate error |
| What does the return keyword do? | Send value back |
| What is the purpose of the input type attribute? | Define input behavior |
| What does JSON.stringify do? | Converts an object to a JSON string |
| What does querySelectorAll do? | select all |
| What does the reduce method return? | Single value |
| What does the typeof operator return for a number? | String |
| What is the purpose of the switch statement? | Match specific values |
| What does setAttribute do? | Selects items by conditions |
| What does localStorage do? | Store data persistently in browser |
| What is the difference between == and ===? | === checks type and value |
| What does the typeof operator return for null? | Object |
| What does JSON.parse do? | Converts JSON string to object |
| What does querySelector do? | Select first match |
| What does the arrow function syntax look like? | () => {} |
| What does classList.add do? | Add class |
| What does textContent do? | Set plain text |
| What is the output of 2 ** 3 in JavaScript? | 8 |
| What is the purpose of the debugger statement? | Pauses execution |
| What does the map method return? | New array |
| What does the const keyword do? | Declares constant |
| What does addEventListener do? | Attach event |
| What is the role of the server in the client-server model? | Process and respond |
| What does the fetch API do? | Make http requests |
| What is the scope of let? | Block |
| What does the === operator check? | Strict equality |
| What is the purpose of the console.log function? | Output to console |
| What does the innerHTML property do? | Set html content |
| What does JavaScript primarily do in web development? | Add interactivity |
| Which loop guarantees at least one execution? | Do while |
| What is the purpose of form validation? | Check input correctness |
| What does the typeof operator return for a function? | Function |
| What is the purpose of the try…catch block? | Handle errors |
| What does removeAttribute do? | Remove attribute |
| What is the purpose of the event listener? | Respond to user actions |
| What does the filter method do? | Selects items by condition |
| M5 | |
| What class sets font to heading in Tailwind? | Font-heading |
| What class sets grid columns to 3 in Tailwind? | grid-cols-3 |
| What class sets background color to light? | bg-light |
| What class adds hover effect in Tailwind? | Hover:bg-blue-700 |
| What is the purpose of PurgeCSS in Tailwind? | Remove unused CSS |
| What is a breakpoint prefix in Tailwind? | md:text-lg |
| What class sets background color in Tailwind? | Bg-blue-500 |
| What is the default Tailwind breakpoint for extra large devices? | Xl |
| What does the mobile-first approach prioritize? | Small screens |
| What plugin maintains aspect ratio in Tailwind? | Aspect-ratio |
| What class aligns items to the center in flexbox? | Align-items-center |
| What class applies flexbox in Bootstrap? | D-flex |
| What class sets rounded corners in Tailwind? | Rounded |
| What class sets padding x-axis in Tailwind? | Px-4 |
| What class sets hover background in Tailwind? | Hover:bg-blue-700 |
| What class sets padding in Tailwind? | P-4 |
| What is a CSS framework? | A prewritten set of CSS styles and components |
| What class transforms text to uppercase? | Text-uppercase |
| What is the default Tailwind breakpoint for small devices? | Sm |
| What file configures Tailwind? | tailwind.config.js |
| What class creates a grid layout in Tailwind? | Grid |
| What is DaisyUI? | A UI component library for Tailwind |
| What CSS feature allows different styles based on screen size? | Media queries |
| What does the Bootstrap grid system use? | Containers, rows, and columns |
| What is Headless UI? | Unstyled accessible components for React and Vue |
| Which framework is component-based? | bootstrap |
| What class makes a navbar horizontal on desktop in Tailwind? | md:flex-row |
| What class sets text color in dark mode in Tailwind? | Dark:text-white |
| What class sets dark background in Tailwind? | Dark:bg-gray-900 |
| What is Tailwind CSS? | A utility-first CSS framework |
| What class makes a Bootstrap button blue? What class makes a Bootstrap button blue? | Btn-primary |
| What class adds margin in Bootstrap? | M-2 |
| What class hides an element in Bootstrap? | D-none |
| What is responsive design? | A web approach that adapts to different screen sizes |
| What class makes text bold in Bootstrap? | Fw-bold |
| What plugin improves form styling in Tailwind? | Form |
| What is the default number of columns in Bootstrap grid? | 12 |
| What class centers text in Bootstrap? | Text-center |
| What is the purpose of @apply in Tailwind? | Combine utility classes |
| What is Flowbite? | A UI kit for Tailwind |
| What is a CSS framework? | A prewritten set of CSS styles and components |
| What is the default Tailwind breakpoint for large devices? | Lg |
| What unit is 1 percent of the viewport width? | Vw |
| What class sets margin top in Tailwind? | Mt-4 |
| What class sets font size in Tailwind? | Text-xl |
| M6 | |
| What is GitHub? | A remote hosting service for Git |
| What command shows commit history? | Git log |
| What command discards changes? | Git checkout - file |
| What command deletes a tag? | git tag -d v1.0 |
| What is a tag in Git? | A label for a specific commit |
| What command saves changes locally? | git commit -m “message” |
| What is a fork in GitHub? | A copy of a repository |
| What is a pull request? | A request to merge changes |
| What is a fast-forward merge? | A merge with no divergence |
| What command shows all Git settings? | git config –list |
| What command lists all branches? | git branch |
| What command sets user email in Git? | git config –global user.email “you@example.com” |
| What command shows current branch? | git branch |
| What command deletes a branch? | git branch -d feature |
| What command switches branches? | git checkout new-feature |
| What command creates a new file? | Touch filename |
| What is GitLab? | A remote hosting service for Git |
| What is a detached HEAD? | A state where HEAD points to a commit |
| What command shows a visual commit tree? | git log –graph –oneline –all |
| What command connects to a remote repository? | git remote add origin |
| What command stages changes for commit? | Git add |
| What command merges branches? | git merge |
| What command shows the current status of the repo? | git status |
| What is a Git workflow? | A process for using Git |
| What is a merge conflict? | A disagreement between changes |
| What is a commit message? | A description of changes |
| What command renames a branch? | git branch -m old new |
| What command creates a new branch? | git branch new-feature |
| What is a commit in Git? | A saved checkpoint |
| What is Git used for? | Tracking changes in code |
| What is the benefit of Git? | Tracks changes and supports collaboration |
| What is a remote repository? | A hosted version of your repo |
| What command uploads local commits to remote? | git push |
| What command updates package list on Ubuntu? | sudo apt update |
| What command sets user name in Git? | git config –global user.name “Your Name” |
| What command resolves merge conflicts? | Manual editing of files |
| What command installs Git on Ubuntu? | sudo apt install git |
| What command creates a tag? | git tag v1.0 |
| What command initializes a new Git repository? | git init |
| What is a staging area? | A place to prepare changes |
| What is a branch in Git? | A separate line of development |
| What is a repository? | A project folder tracked by Git |
| What command shows differences? | git diff |
| What command checks if Git is installed? | git –version |
| What command clones a remote repository? | git clone |
| M7 | |
| What is the benefit of shared hosting? | Cost-effective for small websites |
| What is an application server? | A server that runs backend logic |
| What is the client-server model? | A computing model where clients request services from servers |
| What is the purpose of deployment scripts? | Automating deployment tasks |
| What is the purpose of authorization in deployment? | Controlling user access |
| What is a server? | A system that provides services or data to other systems |
| What is the benefit of VPS hosting? | More control than shared hosting |
| What is the role of a server in deployment? | Hosting the deployed application |
| What is a deployment script? | A script that automates deployment |
| What is the purpose of monitoring in deployment? | Tracking performance and errors |
| What is the purpose of hosting providers? | Offering server space |
| What is an example of a deployment tool? | Jenkins |
| What is an example of a web server? | Apache |
| What is shared hosting? | Multiple websites share the same server resources |
| What is CI/CD? | Continuous integration and delivery |
| What is the purpose of a database server? | Storing and managing data |
| What is the purpose of staging environments? | Testing before production |
| What is a database server? | A server that stores and manages data |
| What is automated deployment? | Using scripts or tools to deploy code |
| What is the purpose of security in deployment? | Protecting data and systems |
| What is the purpose of deployment pipelines? | Automating deployment steps |
| What is the purpose of domain names? | Identifying websites |
| What is the purpose of DNS? | Translating domain names to IP addresses |
| What is the purpose of an application server? | Running backend logic |
| What is the purpose of SSL certificates? | Securing websites |
| What is a web server used for? | Hosting websites and applications |
| What is an example of an application server? | Tomcat |
| What is the role of a client in the client-server model? | Requesting services |
| What is the benefit of cloud hosting? | Scalable and flexible hosting |
| What is the purpose of deployment? | Making a system live for users |
| What is VPS hosting? | A physical server divided into virtual servers |
| What is the purpose of authentication in deployment? | Verifying user identity |
| What is the purpose of HTTPS in deployment? | Securing web communication |