Science and Technology Quiz
A comprehensive quiz covering computer keyboard shortcuts, C programming concepts, and basic science topics in chemistry, physics, and biology.
Questions
Gingivitis would affect what part of your body
- Lips
- Toes
- Fingernails
- Gums
Which is the lightest element
- Sodium
- Lithium
- Sulphur
- Potassium
What is the crystalline form of silica better known as
- Diamond
- Ruby
- Quartz
- Emerald
Which of the following measures how quickly an object moves over a certain distance
- Speed
- Velocity
- Force
- Energy
What does pH measure of the concentration of
- Hydrogen Ions
- NaOH
- HCL
- Oxygen
What are proteins composed of
- Lipids
- Proteins
- Fatty Acids
- Amino Acids
void main() { i=50; printf("%d",i); } What should be added to this file, so that the program is compiled.
- int i; /*above main() */
- extern int i; /*inside main() */
- Both 1 & 2
- option 3 if i is defined elsewhere.
struct io { int i=0; int j; }; void main() { io op; op.j=20; printf("i = %d",op.i); printf("j= %d",op.j); }
- output i=0 j=20
- output j=20
- compiler error starting from "printf("i = %d",op.i);"
- compiler error starting at the end of struct io
struct vg { int cry; int cop; int count; struct vg *next; }; void append(struct vg **q,int cry, int cop) { struct vg *temp,*r; temp = *q; if(*q==NULL) { temp = (struct vg *)malloc(sizeof(struct vg)); temp->cry=cry; temp->cop=cop; temp->count = 0; temp->next=NULL; *q=temp; } else { temp = *q; while(temp->next !=NULL) { temp=temp->next; } r = (struct vg *)malloc(sizeof(struct vg)); r->cry=cry; r->cop = cop; r->count = 0; r->next=NULL; temp->next=r; } } void main() { int cry=0,cop=0; struct vg *p; p=NULL; printf(" Enter the Crystal and coupler number"); scanf("%d %d",&cry, &cop); How the append function should be called.
- append(*p,cry,cop);
- append(&p,cry,cop);
- append(**p,cry,cop);
- append(p,cry,cop);
void main() { int i=0; int j = ++i; if(j>i) main(); } the program compiles. }
- True
- False
A dangling pointer cannot be used as a data structure
- True
- False
struct vg { int cry; int cop; int count; struct vg *next; }; void append(struct vg **q,int cry, int cop) { struct vg *temp,*r; temp = *q; if(*q==NULL) { temp = (struct vg *)malloc(sizeof(struct vg)); temp->cry=cry; temp->cop=cop; temp->count = 0; temp->next=NULL; *q=temp; } else { temp = *q; while(temp->next !=NULL) { temp=temp->next; } r = (struct vg *)malloc(sizeof(struct vg)); r->cry=cry; r->cop = cop; r->count = 0; r->next=NULL; temp->next=r; } } boolean is_exist(struct vg **q,int cry, int cop) { boolean result = false; struct vg *temp=NULL,*r; temp = *q; if(*q==NULL) { result = true; } else { while(temp!=NULL) { n = (struct node *)malloc(sizeof(struct node)); if(temp->cry == cry && temp->cop == cop) { result = true; } else { result = false; } temp = temp->next; } } } void main() { int cry=0,cop=0; struct vg *p; p=NULL; printf(" Enter the Crystal and coupler number"); scanf("%d %d",&cry, &cop); printf("\n"); if(!is_exist(&p,cry,cop)) append(&p,cry,cop); if(can_send_info(&p,cry,cop)) { printf(" Data sent to couplers"); } else { printf(" Data NOT sent to couplers"); } } compilation fails ???
- True
- False
in Text Editing what is the shortcut key for "end of doucment"
- End
- Ctrl + End
- Home
- Ctrl + Home
URL Shortcut (Adds www. + .net)
- Ctrl + Enter
- Ctrl + Shift + Enter
- Shift + Enter
- Ctrl + D
Make selected text subscript
- Ctrl + '+'
- Ctrl + S
- Ctrl + *
- Ctrl + Shift + '+'
"Ctrl + space" is for 'pop up window menu'
- True
- False
Close dialog
- space
- Enter
- Esc
- Backspace
Ctrl + W
- minimize current tab
- close all tabs
- Create new tab
- Close current tab
- minimize all tabs
Task Manager
- Ctrl + Alt + Delete
- Ctrl + Shift + Esc
- both of above
- none
Rename file
- F1
- F2
- F5
- F9
- F10