NEW
Font size
WorksheetsConcepts in Neo4j Database
Total questions: 5
Worksheet time: 3mins
1. Question: In Neo4j, which of the following best describes the property graph model?
A. Nodes and relationships without properties, relying on external metadata
B. A schema-less model where both nodes and relationships can have properties
C. A schema-driven model where properties must be predefined
D. A document-oriented model similar to MongoDB
2. Question: Which of the following Cypher queries correctly retrieves nodes labeled 'Person' with the name 'Alice' and all their direct relationships?
3. Question: Which of the following operations in Neo4j benefits most from using indexes?
A. Full graph traversal to find shortest paths
B. Pattern matching across multiple node types
C. Finding nodes by a specific property value
D. Aggregating relationship counts between node pairs
4. Question: How does Neo4j handle ACID (Atomicity, Consistency, Isolation, Durability) properties in transactions?
A. Neo4j only ensures Consistency and Durability, leaving Atomicity and Isolation to the application layer
B. Neo4j fully supports ACID properties in all transactions
C. Neo4j provides eventual consistency with relaxed ACID compliance
D. Neo4j does not support ACID properties, relying on BASE (Basically Available, Soft state, Eventually consistent)
15. Question: In Neo4j, which of the following is a correct way to create a relationship between two existing nodes with specific properties?
A. MATCH (a), (b) CREATE (a)-[:REL {prop: value}]->(b)
B. MATCH (a), (b) ADD (a)-[:REL {prop: value}]->(b)
C. FIND (a), (b) CONNECT (a)-[:REL {prop: value}]->(b)
D. SELECT (a), (b) LINK (a)-[:REL {prop: value}]->(b)
